LLM agent automatically discovers log file exposures in 62 popular WordPress plugins
The authors claim their LLM-based framework can automatically detect potential log file exposures in CMS plugins.
Security & privacy arXiv 15 Sep 2026 Method Prototype evidence
Published as “Plug 'n' Pray: Agentic LLM-based Detection of Potential Log File Exposures in Third-Party Content Management System Plugins”
Why it matters
The results show that LLM agents can reliably surface hidden log-file exposures, but developers still need layered defenses because analysis gaps and misconfigurations can leave sites vulnerable.
Summary
The study found that 62 of the 300 most-installed WordPress plugins create 81 potential log file exposures, and the authors manually reproduced and validated 79 of those findings, achieving 98% precision and 98% recall on the successfully analyzed plugins. Their agentic LLM-based framework combines static and dynamic analysis to detect these exposures, and they derived a taxonomy of path and protection patterns. However, the analysis missed some plugins due to timeouts and the baseline AST script produced many false positives, indicating the approach is not flawless.
What they found 1
- The LLM-based approach achieved 98% precision, validating 79 of 81 reported log files.
“The precision of our approach is 98% with 79/81 identified log files manually validated, and a recall of 98% (62/63) for the successfully analyzed plugins by our framework.”
Caveats 5
- Six plugins were missed because the analysis timed out, lowering overall recall to 90% when including the baseline findings.
- The AST-based baseline over-reported, flagging 165 plugins but only 7 were confirmed to actually write log files.
- 13 did not produce a finding (see Section 5.5)
- Six of these were not identified by our framework because the analysis timed out
- Only two files have no protection, but one file is written outside the DocumentRoot and the other to a user-supplied location (likely to be outside the DocumentRoot), thus remain unexposed.
What’s new here 4
- Applies an agentic LLM to automatically detect log file exposure in WordPress plugins, a problem not previously studied with LLMs.
- Combines static code analysis with dynamic execution to locate actual log-writing behavior.
- Provides a taxonomy of log file path and protection mechanisms specific to CMS plugins.
- Derives best-practice recommendations based on empirical findings.