TL;DR
ABSENTIA is a new security framework that uses LLM agents to systematically detect Broken Access Control (BAC) vulnerabilities—a class of bugs that traditional tools like CodeQL and Semgrep almost entirely miss. By shifting the focus from data flow to "invariant falsification," ABSENTIA successfully identified 19 out of 30 real-world vulnerabilities in a new benchmark, while traditional static analyzers found none.
What Problem Does This Paper Address?
In the world of web security, "Injection" (like SQLi) is the classic villain. It’s easy to define: untrusted input shouldn't reach a dangerous sink. Because this rule is universal, static analysis security testing (SAST) tools can find these bugs by tracing data flows.
Broken Access Control (BAC) is different. It’s not about how data moves, but who is allowed to act on what. This relation is application-specific. For example, in one app, any user might be allowed to view any invoice; in another, viewing an invoice you don't own is a critical security flaw.
Because there is no "universal rule" for authorization, traditional tools fail. Developers are left with manual reviews or dynamic testing, both of which are expensive and often incomplete.
Methods
The authors introduce ABSENTIA, a "scaffolding" that directs LLM agents to audit code systematically. Instead of just asking an LLM "is this code vulnerable?", ABSENTIA follows a structured pipeline:
- Map the App: The system first builds a "Security-Aware Source Code Graph." It uses LLMs to profile the tech stack (e.g., Flask, SQLAlchemy) and extract the specific regex patterns needed to identify routes, handlers, and authentication guards across the codebase.
- Per-Route Invariant Falsification: This is the core innovation. For every route found in the graph, an agent:
- Infers Invariants: Determines what properties the route should guarantee (e.g., "Only the owner can read this invoice").
- Falsifies: Attempts to construct a hypothetical request that would violate that property. If the code doesn't block that request, it's flagged as a finding.
- Composition Across Findings: It looks for "chained" vulnerabilities where a capability in one route (like a file upload) combines with a flaw in another (like an unauthenticated file serve) to create a severe bug.
- Continuous Analysis: To make it practical for real-world development, ABSENTIA can reuse "verdicts" from previous commits if the underlying code for a route hasn't changed, significantly reducing costs.
Datasets
The researchers released BAC-BENCH, a high-quality benchmark consisting of 30 real-world broken access control advisories.
- Scope: 25 repositories, 3 languages (Python, TypeScript, JavaScript), and 9 frameworks.
- Recency: All advisories were published in 2025 or later to minimize the chance that the LLMs had seen them during training.
- Rigorous Scoring: It uses "paired credit"—a tool only gets a point if it flags the bug in the vulnerable version and stays silent on the fixed version.
They also evaluated ABSENTIA on the OWASP Benchmark (Java and Python) to see how it handles traditional injection vulnerabilities.
Key Insights and Ideas
- Structure > Raw Intelligence: An unstructured LLM agent (just given the code and asked to find bugs) only caught 3 vulnerabilities. ABSENTIA, using the same model but with systematic scaffolding, caught 19. This proves that the bottleneck isn't the LLM's reasoning ability, but its lack of a systematic procedure for coverage.
- Invariants are the Key: By forcing the agent to first state what a route should do before looking for bugs, the system creates a standard for judgment. This reduces the "hallucination" of bugs based on surface-level code features.
- Generalization: Because ABSENTIA recovers the "rules" from the code itself rather than relying on pre-written patterns, it works across different languages and frameworks without modification.
Key Results
- BAC Detection: ABSENTIA recalled 19 of 30 vulnerabilities (17 under the strict paired-credit rule). CodeQL and Semgrep recalled zero.
- Precision: An independent LLM verifier confirmed 51% of ABSENTIA's findings as legitimate security concerns.
- Injection Performance: On the OWASP Benchmark, ABSENTIA led all dedicated Python analyzers and was competitive with top-tier tools like CodeQL in Java.
- Efficiency: While a full run costs a median of $44 per repository, the re-analysis feature allows for a 37% median reuse of previous work, making it viable for CI/CD pipelines.
Limitations and Future Work
- Nondeterminism: Like all LLM-based tools, ABSENTIA is not perfectly reproducible. Different runs on the same code can yield slightly different results.
- Cost: While cheaper than a human auditor, $44 per run is significantly more expensive than traditional "free" static analysis.
- Graph Coverage: If the initial mapping stage misses a route (e.g., due to highly unusual framework usage), the system will never audit that route.
- Future Directions: The authors suggest better calibration of confidence scores to help human reviewers prioritize the most likely vulnerabilities.
Summary updated