Agentic Security: A Systematization of Tools, Failure Modes, and Design Laws for LLM-Driven Penetration Testing
Organizations: Department of Computer Science and Engineering, Ahsanullah University of Science and Technology, Dhaka, Bangladesh · Department of Computer Science and Engineering, BRAC University, Dhaka, Bangladesh · Department of Electrical and Computer Engineering, North South University, Dhaka, Bangladesh · Department of Computer Science, Missouri State University, Springfield, MO 65897 USA ·
Abstract
Agentic security uses large-language-model (LLM) agents to plan, dispatch, and interpret security tools. As these systems move from demonstrations to deployed products, practitioners repeatedly encounter the same operational failures. We systematize these failures through a hands-on evaluation of ten widely used static, dynamic, cloud, orchestration, and AI red-teaming tools for unattended pipelines. We introduce a four-dimensional Integration Friction Index that separates one-time engineering cost from recurring organisational, legal, and maintenance cost. We then derive quantitative regularities that explain recurring failure modes. Modelling an agentic security system as stochastic LLM policies wrapped by a deterministic mediator, we show that long-lived sessions lose resident evidence with phase count, while short-lived sub-agents extend the usable horizon according to the compression ratio between raw evidence and its summary. We show that a two-stage verdict cascade multiplies scorer likelihood ratios, but provides little benefit when scorer errors correlate. We show that treating unevaluable outcomes as attack failures biases downstream measurements toward evasive and severe responses. We formulate planner-versus-worker model routing as a knapsack problem and derive a closed-form execution cap for heavy-tailed tools, eta* = alpha v/c. Finally, we show why scope and budget enforcement cannot be delegated to system prompts: prompts do not constrain what actually executes. Inspectra, our implemented platform, serves as a worked instantiation, with mechanisms labelled shipped, partial, or planned, including those that did not work.
Figures & tables
| Concern | What it does | Cost of skipping it |
|---|---|---|
| SAST | Reads source without executing it: injection sinks, weak crypto, hard-coded secrets, unsafe deserialisation. | Misses vulnerabilities visible only in code structure, and secrets sitting in Git history. |
| DAST | Exercises the running application: crawls, authenticates, fuzzes, observes. | Never confirms a static finding is reachable; misses auth bypass, IDOR, and runtime misconfiguration. |
| PT | Chains and escalates: turns low-severity findings into a demonstrated exploit with business impact. | Leaves a wall of severity scores with no narrative for a developer to act on. |
| AIRT | Attacks the model inside the product: jailbreaks, prompt exfiltration, indirect injection, tool abuse. | Leaves an injection surface invisible to a conventional web-application firewall. |
| Tool | Class | Licence / cost | Scores | Fit | Verdict and governing reason | |
|---|---|---|---|---|---|---|
| Gitleaks [ 19 ] | Secret scanning | MIT, free | 1/0/0/1 | 0.50 | Trivial to call; regex false positives need an allow-list from day one. Superseded here by content-level secret scoring. | |
| Semgrep [ 39 ] | SAST | LGPL core, paid cloud | 1/0/0/1 | 0.50 | Deterministic JSON output; default rule set is noisy. Complementary to, not replaced by, LLM triage. | |
| Playwright [ 26 ] | Browser automation | Apache 2.0, free | 2/0/0/2 | 1.00 | The default answer to authenticated crawling; the work is in making login agent-driven, not in installing it. | |
| sqlmap [ 12 ] | SQLi exploitation | GPLv2, free | 1/1/2/1 | 1.25 | Deterministic exit codes; one of the few tools whose output an agent can trust without an interpretation pass. Needs hard caps. | |
| Temporal [ 41 ] | Durable workflow | Apache 2.0 self-host; paid cloud | 3/1/0/1 | 1.25 | Not a security tool; supplies the durability that agent SDKs do not. Own database and mental model. | |
| Promptfoo [ 34 ] | LLM eval / red-team | OSS core; free tier capped | 1/3/1/2 | 1.75 | Free tier capped at probes/month; heavy catalogue overlap with PyRIT; ownership change is a neutrality consideration. |
| Role / tool | Tier | ||
| Orchestrator | 180 min (global) | 50 | planner |
| Pre-recon (target intel.) | 30 min | 60 | planner |
| Recon, per class ( ) | 30 min | 60 | planner |
| Exploit, per class ( ) | 30 min | 15 | worker |
| SQL-injection tool | 30 min | — | — |
| AI red-team, per attack call | 10 min | — | — |
LLM Agent Security
Large language model agent security studies attacks and safeguards for systems that plan, use tools, retain memory, and act across applications.
See all 327 papers