Attackers Use AI to Find Exploits. Defenders Use AI to Find Exceptions.
TorstenNovember 4, 20267 min read
AI-assisted vulnerability discovery was predictable. LLMs can recognize bug patterns and verify them through debugging and execution.
Attacks will accelerate, and regulation will not stop everyone. Defenders still have an edge because they know their own systems: normal behavior, process trees, known attack patterns and context.
Signatures alone are outdated. The future is behavior and correlation—not only known files.
On this page
AI finds exploits. Defenders can still win.
TL;DR
AI that finds vulnerabilities has been a real capability since 2024, not a future scenario.
Attacks keep getting faster, and regulation won't stop people who ignore the rules.[^11]
Defenders have an edge because they know their own systems and can model normal behavior and known attack patterns.[^15]
An LLM shouldn't be the component that enforces security. Use it to observe, correlate and recommend. Keep enforcement deterministic.[^19]
This was predictable
LLMs work with code, so finding bugs in code was an obvious next step. The evidence:
Milestone
What happened
Google Big Sleep, 2024
An LLM agent found a stack buffer underflow in SQLite before it reached a release.
Big Sleep, 2025
Google says Big Sleep and threat intelligence identified SQLite CVE-2025-6965 before attackers could exploit it.
DARPA AIxCC finals, 2025
Teams collectively found 54 of 63 planted vulnerabilities (86%), patched 68% of the discovered ones and found 18 real, previously unknown vulnerabilities.
A correction to the claim that AI finds bugs because it understands syntax: Big Sleep worked by variant analysis. It started from a known patch, investigated where a similar bug might hide, then checked with a code browser, a debugger and real execution.[^3]
The strength is pattern recognition plus verification, not syntax alone.
The Big Sleep team also called its results highly experimental. At the time, it said a target-specific fuzzer would probably be at least as effective.
Attacks are speeding up
PHP2Shell (CVE-2026-109618 and CVE-2026-109619), October 2026:
What it is: Memory and error-handling bugs inside the PHP runtime. Updating plugins or application code doesn't fix the vulnerable runtime.[^7]
Timeline: Details leaked before the planned disclosure. After the early leak, probes reportedly went from thousands to tens of thousands within 45 minutes.[^9]
Attackers adapting: Cloudflare saw attackers mutate their payloads to get around its WAF rules.[^8]
Part of this speed came from the leak and the disclosure process, not only from AI. The timeline alone does not establish how much AI contributed.[^7]
Safety won't stop everyone
Anthropic documented a criminal who used Claude Code to automate reconnaissance, credential theft and network intrusion against at least 17 organizations.
It also describes a low-skill actor who built and sold ransomware with AI help.
The UK's NCSC identifies both offensive uses of AI and research opportunities for autonomous cyber defense.
Safety measures can reduce misuse. They are not a substitute for securing the systems being targeted.[^18]
The defender's advantage
Defenders can use knowledge of their own systems. Don't model only "what is allowed." Combine normal behavior, known attack behavior and context.
Layer
Question
Example
Normal behavior
Is this process normal on this host or across the fleet?
Elastic's ML rules flag processes that are rare on a single Linux host or across a fleet.[^16]
Process trees
Does this parent-child chain make sense?
Defender blocks threats based on behavior and process trees, even after they start running.
Known attack behavior
Does this resemble a known technique?
MITRE describes server modules that spawn shells or open outbound connections.
Full context
Does the response provide evidence of exploitation?
Cloudflare combines request and response signals for PHP2Shell detection.
Consider this illustrative sequence:
Web server writes a file into the web root
-> php-fpm starts sh
-> sh connects to an external address
The individual tools may be legitimate. The sequence, destination and workload context make the activity suspicious. This is the kind of correlated behavior that MITRE's detection guidance describes.
A known program is not automatically a trusted action.
Beyond signature-based antivirus
The industry has already moved past signatures as the only method. Behavioral detection and endpoint detection and response (EDR) already evaluate actions and process relationships.[^14]
Approach
What it evaluates
File signatures
Known malicious files or recognizable file patterns
Behavioral detection
Actions, process chains and known attack techniques.[^17]
Environment baselines
Whether activity is unusual for a particular host or population.[^16]
The next step is better correlation: assess how closely a sequence resembles malicious behavior, rather than relying only on exact file matches.
Things to watch:
False positives: New installs, patches and unusual servers can look anomalous.
Baseline is not authorization: "Seen often" must never automatically mean "allowed." Keep learned behavior separate from access policy.
Detection is not prevention: Behavioral blocking can stop a running attack, but some damage may already have happened.
WAF rules are temporary protection: Patching the vulnerable runtime is still required.[^7]
Don't make the LLM root
Problem
Why it matters
Prompt injection
Malicious instructions can arrive through data the agent reads, including tool output and external content.
Excessive agency
Too many tools, permissions or autonomous actions increase the impact of a model error.
Authorization
OWASP recommends enforcing authorization in downstream systems, not relying on the LLM to decide what is allowed.
Determinism
AWS recommends deterministic execution logic unless AI is actually needed.
Enforcement integrity
Kernel-level enforcement still has a threat model. A sufficiently privileged attacker can threaten the enforcement mechanism itself.
A proposed architecture:
Host, application, identity and network telemetry
|
Rules + specialized ML
|
LLM triage and correlation
|
Proposed action
|
Policy validation + least privilege
|
EDR / eBPF / WAF / IAM
|
Logged and auditable enforcement
High-impact actions should require approval where appropriate. Preapproved, narrowly scoped containment can remain automatic. OWASP recommends both least privilege and human approval for high-impact actions.
Use AI to reason about evidence. Don't make its judgment the security boundary.
What vendors are building
Product
Direction
Palo Alto Cortex
Agentic Response is documented as a preview capability for agent-driven security workflows.
CrowdStrike Charlotte AI
Configurable autonomy, from human approval to fully autonomous workflows.
Microsoft Defender XDR
Copilot Guided Response supports incident triage and recommends containment actions.
These examples demonstrate AI-assisted investigation and response. They do not establish that an LLM directly mediates individual kernel operations.[^22]
Developer checklist
Remove bug classes: Prefer memory-safe languages for new code where practical.[^25]
Use secure defaults: Reduce the amount of security configuration customers must get right.
Verify findings: Combine AI-assisted review with tests, fuzzing and reproducible evidence.
Model the environment: Build host- and workload-specific process baselines.[^16]
Model the attacker: Map detections to known attack techniques.
Correlate signals: Connect application events to process trees and network activity.[^17]
Constrain the agent: Expose narrow tools with minimal permissions.
Separate policy from prediction: Validate actions outside the model.[^19]
Make responses auditable: Log agent actions and retain evidence for review.
Patch anyway: A compensating control is not a permanent fix.[^7]
The practical position is not "AI makes defense impossible" or "an LLM should control everything."
It is this: Combine knowledge of normal systems with knowledge of malicious behavior. Let AI help connect the evidence. Keep authority explicit, limited and independently enforced.