4lbert Logo~/4lbert
HomeProfileSkillsPortfolioBlogGalleryContact
VG9yc3RlbiBBbGJlcnQgwrcgU29mdHdhcmUgdGhhdCBsYXN0cw==v2.0 · Made in Germany. With Love.
$ echo "© 2026 Torsten Albert · 4lbert.com"
ImpressumDatenschutz
Back to blog

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
  • TL;DR
  • This was predictable
  • Attacks are speeding up
  • Safety won't stop everyone
  • The defender's advantage
  • Beyond signature-based antivirus
  • Don't make the LLM root
  • What vendors are building
  • Developer checklist
  • References

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:

MilestoneWhat happened
Google Big Sleep, 2024An LLM agent found a stack buffer underflow in SQLite before it reached a release.
Big Sleep, 2025Google says Big Sleep and threat intelligence identified SQLite CVE-2025-6965 before attackers could exploit it.
DARPA AIxCC finals, 2025Teams 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.

LayerQuestionExample
Normal behaviorIs 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 treesDoes this parent-child chain make sense?Defender blocks threats based on behavior and process trees, even after they start running.
Known attack behaviorDoes this resemble a known technique?MITRE describes server modules that spawn shells or open outbound connections.
Full contextDoes 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]

ApproachWhat it evaluates
File signaturesKnown malicious files or recognizable file patterns
Behavioral detectionActions, process chains and known attack techniques.[^17]
Environment baselinesWhether 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

ProblemWhy it matters
Prompt injectionMalicious instructions can arrive through data the agent reads, including tool output and external content.
Excessive agencyToo many tools, permissions or autonomous actions increase the impact of a model error.
AuthorizationOWASP recommends enforcing authorization in downstream systems, not relying on the LLM to decide what is allowed.
DeterminismAWS recommends deterministic execution logic unless AI is actually needed.
Enforcement integrityKernel-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

ProductDirection
Palo Alto CortexAgentic Response is documented as a preview capability for agent-driven security workflows.
CrowdStrike Charlotte AIConfigurable autonomy, from human approval to fully autonomous workflows.
Microsoft Defender XDRCopilot 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.

References

Google Project Zero. From Naptime to Big Sleep: Using Large Language Models to Catch Vulnerabilities in Real-World Code. Simon Willison. Commentary on Big Sleep. Berkeley RDI. Code Agents and AI for Vulnerability Detection. Google. A summer of security: empowering cyber defenders with AI. DARPA. AI Cyber Challenge results. Cloudflare. Cloudflare deploys protections against php2shell vulnerability. BleepingComputer. PHP warns admins of two critical flaws, emergency patches coming tomorrow. UpGuard. PHP2Shell: A Clear Explanation and Response Framework. CodingCat. PHP2Shell: How AI Found a Decade-Old Bug. The Next Web. Cloudflare sees millions of attempts to exploit critical PHP vulnerabilities. Anthropic. Detecting and countering misuse of AI: August 2025. NCSC. The research problem book: AI in cyber security. Microsoft Learn. Behavioral blocking and containment. Microsoft Learn. Endpoint detection and response in block mode. Elastic. Unusual Process For a Linux Host. Elastic. Anomalous Process For a Linux Population. MITRE ATT&CK. T1505: Server Software Component. OWASP. LLM06:2025 Excessive Agency. AWS. Mapping to OWASP top 10 for LLM applications. Tetragon. Threat Model. Palo Alto Networks. Agentic Response (Preview). CrowdStrike. Charlotte Agentic SOAR. Microsoft Research. AI-Driven Guided Response for Security Operation Centers with Microsoft Copilot for Security. CISA. New Guidance Released for Reducing Memory-Related Vulnerabilities. CISA. The Case for Memory Safe Roadmaps. CISA. Secure by Demand Guide.

PreviousToo Expensive to Rewrite Is Expiring

On this page

  • TL;DR
  • This was predictable
  • Attacks are speeding up
  • Safety won't stop everyone
  • The defender's advantage
  • Beyond signature-based antivirus
  • Don't make the LLM root
  • What vendors are building
  • Developer checklist
  • References