Docs · ← Home
Methodology: How Vibe-Code Audit Scans AI-Generated Code
Published: November 27, 2026 · Scanner version 2.5.0 · By the Ingenious AI team
What this page is
This is the method behind every Vibe-Code Audit report, documented in one place: what the scanner reads, the engines that judge it, how the score is calculated, how the scanner's own detection rate is measured, and what the whole instrument cannot do. If a claim about the product appears anywhere else on this site, it should be traceable to a section below. The companion cheat sheet is the same method compressed to a working reference.
Inputs: what the scanner reads
Two inputs. Pasted code, read as text: the scanner never executes what you paste. A live site URL, read with plain requests: security-header checks, probes for exposed .env and .git paths, and a same-domain broken-link crawl. Findings are computed from what those reads return; nothing else about your project is inferred.
The engines
Pattern engine. Named pattern families matched against the code: a secret-pattern set (the first 15 patterns run on the free tier, the full set on Pro), code patterns for injection shapes, XSS sinks, eval usage, hardcoded credentials, disabled auth checks, wide-open CORS, debug mode, missing webhook signature verification and SSTI, each carrying a severity and fix guidance. Pro adds the Advanced Patterns engine: 28 detector families covering JWT key confusion, deserialization gadget chains, second-order injection, DOM clobbering, advanced SSTI engines, GraphQL abuse, cache poisoning and deception, request smuggling, build-artifact secret leaks, TOCTOU races, LLM prompt-injection sinks, insecure LLM output handling, RAG poisoning, tool-call injection, advanced prototype pollution, and unguarded image-generation calls.
Taint engine. Where the pattern engine reads shapes, the taint engine follows flows: user-controlled data traced from source to sink, so an unescaped flow into a query, a template or an eval is reported as a flow, with a sanitised twin flow correctly producing no taint finding.
SlopSquat Shield. Every dependency named in pasted code is verified against the live npm and PyPI registries, catching hallucinated, newborn and typosquatted packages — the supply-chain failure models produce when they invent a plausible package name. Because it needs live registry access, this class has no offline fixtures and is reported as not measured in the self-test rather than scored.
Per-finding output. Every finding carries a severity, a plain-language explanation, fix guidance and a copy-paste fix prompt written for the AI builder that produced the code. Secret findings add a blast-radius note and a rotation runbook.
Scoring
The score starts at 100 and subtracts a fixed weight per finding: CRITICAL 25, HIGH 10, MEDIUM 4, LOW 1, floored at 0. Grades: A — clean at 90 or above, B — minor issues at 75, C — needs attention at 50, D — significant risk at 25, F — critical risk below 25. The maths is deliberately simple enough to recompute from a report by hand; a score you cannot recompute is a score you are being asked to trust, and this product's position is that trust should not be required.
How the scanner's own accuracy is measured
A detection-rate self-test ships with the scanner. Its fixtures are versioned files, each labelled demo test data, never imported and never executed; the self-test runs the real scanner (pattern engine plus taint engine, Pro tier) over every fixture and computes a hit rate per claimed class (detected ÷ vulnerable fixtures) and a false-positive rate (flagged ÷ clean fixtures). A claimed class with zero fixtures is reported as not measured, never given a fake score, and every miss or false positive links to the exact fixture file so anyone can verify the result. Results are computed live on every run — never cached marketing numbers. The claimed classes are secrets, injection, taint, crypto, web and packages; packages (SlopSquat) is the honestly unmeasured one, for the registry reason given above.
Limits, stated as method
- Pattern scanning is not a penetration test. The scanner does not attack a live system, chain exploits, or prove reachability. A clean score means none of the checked patterns were found in what was scanned.
- It reads what it is given. Code not pasted and pages not reachable are not judged. Partial input produces a partial verdict, and reports say what was scanned.
- Rescans show absence, not proof. A finding missing from a later scan is reported as no longer detected on rescan. That is evidence a fix landed, honestly labelled — the verification of a CRITICAL fix remains a human read.
- Severity weights are judgement, published. The 25/10/4/1 weights encode this team's triage opinion. They are printed here so a reader who disagrees can reweight a report for themselves.
Versioning
The scanner carries a version (2.5.0 at this page's publication) and its changelog is kept in the scanner's own header: v2.3 added the SlopSquat Shield and per-secret blast-radius runbooks, v2.4 the Advanced Patterns engine, v2.5 the sixteenth advanced family (unguarded image generation) — so a report can always be read against the instrument that produced it.