What Happened
Security research groups and vendors have converged on a new reality: large language models (LLMs) and specialized agent workflows materially amplify both offensive and defensive vulnerability discovery. Independent projects show LLM-driven workflows can reproduce historic bugs, find new high‑severity issues, and produce actionable PoCs at scale when paired with tailored infrastructure.
A concrete example: the Patch the Planet effort used Codex’s /goal primitive across multiple audited codebases (Rust, curl, zlib, Keycloak) and produced high‑impact findings — it reproduced every audited Rust bug (including a soundness/miscompilation issue later patched), converted past CVEs into Semgrep rules that matched 11 variants, and found two potential high‑severity privilege‑escalation issues in Keycloak’s SAML component. Their effective workflow combined threat model context, iterative goal prompts, model read tracking (aicov), single‑outcome agents, and a two‑pass false‑positive filtering gate before human confirmation and disclosure [1].
Why It Matters to Businesses
Three operational impacts matter for executives and security leaders:
- Scale and speed: AI agents greatly increase the volume of potential findings and variants, shortening discovery timelines and expanding attack surface coverage (including subtle compiler/soundness and auth‑flow bugs) [1].
- Dual-use acceleration: The same techniques that find bugs for defenders lower the barrier for adversaries to discover and weaponize vulnerabilities. Automation reduces expert time per finding, so novel exploit chains and pivot opportunities appear faster.
- Tooling and process risk: LLMs are outcome‑driven and will “cheat” toward a prompt unless constrained. Exposure of proprietary code to external models, over‑automation without human triage, and poor disclosure practices create legal, IP and operational risks. Patch the Planet’s approach shows how tooling and governance are required to avoid those pitfalls [1].
Kimbodo Engineering Perspective
From building and operating production AI systems, we see these practical trade‑offs and judgments:
- Automation accelerates discovery, not trust: LLMs can find candidate issues at scale, but model outputs require deterministic verification (compile, fuzz, symbolic check) before treating them as vuln confirmations.
- Split responsibilities across agents: Organize automated workflows so each agent has a single, auditable outcome (identify surfaces, fuzz, generate PoCs, verify exploitation). This reduces cascading errors and simplifies human review [1].
- Design prompts as contracts, not scripts: Define precise success criteria and threat model context without prescribing internal tactics. Overly narrow prompts miss classes of bugs; overly vague ones run indefinitely [1].
- Measure and constrain model knowledge access: Track model reads (e.g., aicov) and limit which artifacts models can access. Treat third‑party models as high‑risk sandboxes for proprietary code unless you host models yourself.
- Balance in‑house vs third‑party models: Hosted, private models reduce IP leakage but increase ops cost. Public models may offer superior capability early; use them only behind strict disclosure and minimization controls.
How We Would Implement It
Concrete architecture and stepwise implementation for an enterprise-ready AI‑assisted security pipeline:
Architecture overview
- Orchestrator: workflow engine (Temporal, Airflow, or Kubernetes operators) that spawns agents with single, auditable outcomes.
- Threat model repository: THREAT_MODEL.md per repo/component; machine‑readable metadata that agents use to scope work and define valid findings [1].
- Agent layer: lightweight sessions per surface using LLM endpoints (self‑hosted or vendor) with a /goal‑like API to persist goal state and success criteria.
- Execution sandbox: isolated build/test environment for deterministic verification (compilation, unit tests, fuzz harnesses, symbolic execution). No secrets or production data allowed.
- Triage and security gate: two‑pass FP gauntlet — one model focused on risk/impact classification, a second on PoC construction, then human reviewer and upstream verification before disclosure [1].
- Observability and audit: aicov‑style trackers for model reads, immutable logs, RBAC for findings, and integration with ticketing (Jira, GH issues) and CVE/DVCS workflows.
Implementation steps
- 1) Create or augment THREAT_MODEL.md for each target component (acceptable findings, sensitive areas, test harness locations).
- 2) Build an orchestrator template that launches one goal session per top attack surface and one roaming session for cross‑surface linkage (pattern used successfully in Patch the Planet) [1].
- 3) Instrument model interactions (aicov) and restrict data exposure. Default to local models for proprietary code where feasible.
- 4) Integrate deterministic verification: compile/test pipelines, Semgrep rules for pattern detection (convert PoCs into rule sets), fuzzers for variants discovered by agents, and symbolic checks for soundness claims [1].
- 5) Implement a two‑pass security gate: model A classifies risk/duplicates; model B creates focused PoC artifacts; then human security engineers perform upstream confirmation before disclosure [1].
- 6) Feed confirmed findings into CI/CD policy enforcement (block merges), pentest schedules, and supply‑chain monitoring.
- 7) Run periodic red‑team exercises where attackers emulate agentized discovery techniques to validate defenses and detection capabilities.
Risks, Costs and Security
Key hazards and mitigation tactics every program must budget for:
- IP and data leakage: Sending code or secrets to third‑party LLMs risks exfiltration. Mitigation: minimize shared context, use self‑hosted models for sensitive projects, redact secrets, and log all exchanges.
- Model hallucination and false positives: LLMs invent plausible but incorrect vulnerabilities. Mitigation: require deterministic verification (builds, fuzz, exploit tests) and a human prover before remediation or CVE filing [1].
- Adversary amplification: The same workflows aid attackers. Assume capability parity and prioritize hardening of highest‑impact flows (auth, privilege escalation, compiler/toolchain) and accelerate patching for issues discovered by agents [1].
- Operational cost: Running many agent sessions, fuzzers and sandboxes consumes compute and engineering time. Mitigation: prioritize surfaces by risk, reuse Semgrep rules and harnesses, and auto‑prune low‑value finds.
- Legal and disclosure risk: Automated discovery may cross licensing/disclosure boundaries. Mitigation: embed legal checks into the security gate and follow maintainers’ disclosure policies before public reports [1].
- Supply chain and model integrity: Poisoned models or compromised dependencies can inject vulnerabilities. Mitigation: track provenance (model and package), apply SBOMs, and map techniques to frameworks like MITRE ATLAS / OWASP AI to maintain detection coverage.
In short: AI agents are a force multiplier for both defenders and attackers. The correct enterprise response is not to ban AI tooling, but to build an auditable, sandboxed, verification‑first pipeline (threat model, single‑outcome agents, model read tracking, deterministic verification, and human gates) and to treat LLM‑based findings as inputs that require the same rigor as traditional vuln discovery [1].
Where Kimbodo Comes In
Kimbodo builds and operates this in production for businesses — see our AI Security & Guardrails practice. Wondering what it would cost for your organization? Get a preliminary range, timeline and architecture in about a minute.