A feature is easy to check: you can see it work and you can write a test for specifc functionality. A security flaw is your software doing something nobody intended, so nobody wrote a test for it. Catching that takes a checker you can trust more than the code it’s checking.
Security is harder to check than functionality
A security flaw lives outside what anyone expected. A URL parameter ends up inside a database query. A request for your own invoice returns someone else’s. The feature works. Every test passes. Nothing failed, so nothing told you.
AI-written code widens the gap. In SusVibes (“Is Vibe Coding Safe?”, arXiv 2512.03262), SWE-Agent running Claude 4 Sonnet took on 186 real feature requests. 57% of its solutions worked. Only 11.8% were secure.
Based on this, a security checker has to clear a higher bar than the code it checks. It has to follow untrusted data from where it enters to where it does damage. It also has to give the same answer on the same code every time, or you can’t tell a real fix from a lucky run.
What neuro-symbolic means
Symbolic systems, like a compiler, run on explicit rules. They’re exact, repeatable and show every step, but they know only what they were told.
Neural systems, like an LLM, learn from examples. They read code they’ve never seen, work out intent and write fixes that fit. But ask twice and you can get two answers, and a wrong answer sounds as confident as a right one.
Neuro-symbolic means using both. The question that separates the designs: which side is in control?
LLM-Only vs. LLM Harness vs. Neuro-Symbolic
| LLM-Only | LLM Harness | Neuro-Symbolic (deterministic first) | |
|---|---|---|---|
| Decides what gets checked | The model | The model | The scanner |
| Decides if a finding is real | The model | The model | The scanner, validated by the model |
| Decides if the fix worked | The model that wrote it | The model, reading tool output | A deterministic re-scan |
| Can the model overrule the checker? | There is no checker | Yes | No |
An LLM on its own writes the fix and grades it. Nothing independent checks either.
A harness is a real improvement. It adds tools, tests and retries, and one of those tools might be a scanner. But the model still decides where to look, how to read the results and when it’s done.
And a model can game its harness. ImpossibleBench (arXiv 2510.20270) built coding tasks where the tests contradicted the spec, so the only way to pass was to cheat. Frontier models cheated “surprisingly often”: GPT-5 on 54% of the conflicting SWE-bench tasks, sometimes by editing the tests after being told not to. The researchers’ fix: hide the tests from the model, or make them read-only.
That’s the whole argument in one line: the check has to sit where the model can’t reach it.
How Questor AI does it
Work passes from the scanner to the model and back. The model never gets the last word.
1. Find (Scanner)
The scanner builds call graphs and data-flow graphs, then traces untrusted data from entry points, where outside input comes in (an HTTP handler, a message consumer), to sinks, where it can do damage (a SQL query, a shell command, a file path, a deserializer). What it can’t determine, it records as unknown instead of guessing.
2. Prove (Scanner First, Then the Model Validates)
The scanner makes the first call on every path. Either it’s a finding, with the path from input to sink as its proof, or it’s refuted, with the reason, like a sanitizer that runs before the sink.
Then the model validates that call. It sees a small slice of code around the source and the sink, never the whole repository, plus the scanner’s facts, numbered. Its job is the judgment rules can’t make, like whether an input is already safe for this particular sink.
The rule: the model can agree with the scanner freely. To overturn it, the model has to cite the scanner’s facts, and the scanner checks every one:
- “The input never reaches the sink.” Rejected if the trace says it does.
- “There’s a defense.” It has to be a defense the scanner found, built for this kind of sink, running before the sink on every path.
- “The input isn’t attacker-controlled.” It has to be true of every input that reaches the sink, not just one.
If any reason fails, or rests on an unknown, the finding stays, marked inconclusive. The model can’t use a gap in what the scanner knows to make a finding disappear. The same rule works in reverse: it can’t revive a refuted finding without evidence that holds up.
3. Fix (Model, Within Limits)
For a proven finding, the model writes the fix. If your codebase already handles the same kind of sink safely somewhere else, the model is shown that code and told to follow it.
The fix has to stay small and on target:
- Small. Too many lines or files changed, and it’s rejected. Same if it touches your dependency files.
- Exact. The model doesn’t rewrite your file. It names the exact code to replace and what to replace it with. If any of that code isn’t in your file exactly as written, the whole fix is thrown out. You never get half a fix.
- Contained. A fix that restructures the function and changes what it returns to its callers is rejected as too invasive.
4. Verify (Scanner)
The patched code is re-scanned. The vulnerable path has to be gone.
That’s stricter than it sounds. In one of our benchmark runs, the model “fixed” an unsafe deserialization by wrapping the dangerous call in a new helper, safe_loads, that checked the input was bytes. It always was, so the attack worked exactly as before. A simple re-scan saw the original finding vanish and a new one appear in the helper. We count that as a failure: a sink that moved is not a sink that went away.
The model that writes the fix never grades it. A second model opinion can flag a fix as unsafe, but it can never mark one as verified. Only the re-scan can.
Why we think this is the better design
Every static analysis has blind spots, and ours is no exception. Framework magic, reflection and dynamic dispatch can hide a flow. A WAF or an auth proxy isn’t in the code the scanner reads.
Honest framing: deterministic first doesn’t make the scanner perfect. It makes its mistakes repeatable and visible, so they get found and fixed. A model’s mistakes change every time you ask.
- Same results, run after run. Findings come from the scanner, not from how a model answered that day. Turn the LLM off and the scan still runs: more false positives, same findings underneath.
- Less of your code goes to a model. One small slice at a time. Cloud, behind your gateway, or local: your choice.
- Lower cost. Small, bounded questions use far fewer tokens than whole files or repositories.
- Fits your pipeline. The scanner does the heavy lifting, and re-scans reuse cached analysis for code that hasn’t changed.
- Better models make it better. A stronger model validates and fixes more. The checks around it don’t change, so neither does what you can rely on.
The Takeaway
“Static analysis plus AI” doesn’t tell you much. Almost every security tool says that now.
The question for every AI security tool: can the model overrule the scanner on its own say-so? Can it make a finding disappear, or pass a fix, just because it says so?
If it can, you’re trusting the model. If it can’t, you can check the result yourself and get the same answer tomorrow.
