LLM Security Scanning in Practice: 14 High-Severity Vulnerabilities in Two Weeks
This article reviews a real-world LLM-assisted security audit that scanned nearly 6,000 C++ source files in an open-source browser project within two weeks, producing 112 reports and confirming 22 genuine vulnerabilities, 14 of them high-severity. It explains why pattern-matching SAST misses memory lifecycle flaws, how semantic data-flow reasoning closes that gap, and how to operationalize the workflow through context supply, tiered verification, deduplication, and regression closure, along with the division of labor between machines and human reviewers.
1. A Real Bottleneck: Human Attention Gives Out Before Hundreds of Thousands of Lines Do
Anyone who has worked on a large client-side project has probably seen this scenario: a C++ module crashes on a specific input, the stack trace stops somewhere in a third-party rendering path, and the only diagnostic is a segmentation fault. With six thousand source files and hundreds of thousands of lines, call relationships spanning the engine, the rendering layer, and script bindings, reading file by file means attention collapses by day three. The problem is not a lack of engineering skill; it is the order-of-magnitude gap between human short-term memory capacity and codebase size.
The typical root cause here is a memory lifecycle error: an object has already been freed, but another path still holds the pointer and keeps writing through it; or an error-handling branch returns early, so a resource never goes through the normal reclamation flow. These flaws do not belong to any fixed syntactic pattern, which is why they have long been a blind spot for automated auditing.
2. What Happened: Two Weeks, Six Thousand Files, Fourteen High-Severity Findings
A recent public LLM-assisted security audit produced a sample worth studying closely: an AI coding tool scanned nearly six thousand C++ source files in an open-source browser project over two weeks, filed 112 vulnerability reports, and ended with 22 confirmed real vulnerabilities — 14 high-severity, 7 medium, and 1 low. The first exploitable use-after-free was located roughly 20 minutes after the run started.
A few numbers stand on their own:
- Coverage: findings were spread across the script engine, the WebAssembly compilation and execution layer, and the rendering pipeline, rather than repeatedly mined from a single directory, which indicates cross-module breadth.
- Severity: 14 high-severity findings is close to one-fifth of that project’s total high-severity fixes for the previous year — and this is a mature codebase that has undergone decades of security auditing and repeated scrutiny by researchers worldwide.
- Confirmation rate: 22 of 112 reports were confirmed, about 20%. For fully automated output with no human pre-filtering, that ratio is already substantial; by comparison, raw reports from human researchers typically land in the 30% to 50% range.
- Process change: early in the audit, every finding was manually reviewed before submission; later, the maintainers asked for batch submission and self-classification. That shift means report quality had already earned trust during the initial samples.
The most severe case scored 9.8 out of 10: a use-after-free in the WebAssembly JIT compiler that allows an attacker to achieve arbitrary code execution while a victim browses a web page.
3. Why Rule-Based Matching Never Sees These Flaws
Traditional static application security testing rests on pattern matching: dangerous constructs are abstracted into rules, then retrieved over the syntax tree. Tell it that string concatenation into SQL is risky and it goes looking for concatenation sites; vulnerability classes absent from the rule library are simply invisible to it. That produces three structural limits:
- Rule lag. There is a time gap between a new vulnerability pattern becoming public and entering the rule library.
- Missing context. A rule inspects only a local fragment; it does not understand who created an object, who is responsible for freeing it, or on which branch it gets rewritten.
- High false-positive governance cost. Continuously adding allowlists to suppress false positives eventually turns the rule library into an unmaintainable historical burden.
The LLM approach differs in that it does not retrieve rules; it reads code semantics and builds an understanding of the chain — where data enters, what transformations it passes through, and which dangerous operation it finally reaches — then judges whether that chain contains a missing check or a wrong lifecycle assumption. Cross-function, cross-file data-flow reasoning is exactly what fills the rule-based blind spot.
To be objective, the two routes are not substitutes. Rule-based solutions are deterministic, cheap, and suited to pipeline gates; semantic solutions excel at logic-level defects, but their results are probabilistic and must be paired with a verification mechanism.
4. A Reusable Engineering Workflow
To actually wire this capability into a development process, a five-layer design is recommended:
Layer 1, scope partitioning and context supply. Even with million-token context as a premise, tasks should still be partitioned along module boundaries, while build configuration, interface headers, and caller information are supplied so the model can reason about ownership semantics. For example:
// Dangerous pattern: ownership and release responsibility are unclearvoid OnFrameReady(Buffer* buf) {Release(buf);buf->offset = 0; // use-after-free write}
Layer 2, semantic clues first. Have the model output a data-flow summary (source, transformations, sink) before the conclusion; this markedly reduces speculation about what merely “looks like a vulnerability.”
Layer 3, tiered verification. High-severity items must be reproducible: construct the input, enable memory error detection tooling, and capture the crash stack — only when all three are present does an item enter human review.
Layer 4, deduplication and clustering. The same root cause often recurs across different paths; clustering by root cause suppresses large volumes of duplicate reports and raises effective information density beyond the raw confirmation rate.
Layer 5, fix closure and regression. A fix submission should include the triggering test case and be brought into continuous integration for long-term regression, preventing the same class of problem from being reintroduced.
5. Conclusion
The real value of this exercise is not “AI beats humans,” but the validation of a new division of auditing labor: machines handle breadth of coverage and candidate defect generation, while humans handle reproduction, severity assignment, and fix design. For engineering teams, the priorities are context supply quality, verification pipeline completeness, and deduplication. When running this on the cloud, container platforms can host scanning tasks, object storage can hold code snapshots and reports, and logging plus monitoring and alerting services can track task status and failure retries. Get those three things solid, and semantic security scanning can move from demo to an everyday pipeline gate.
