Nguyen Le Phong

AI in Cybersecurity, on Both Sides of the Alert

How AI helps security teams triage alerts, review code and run incidents, how attackers use it as of November 2026, and how to keep the AI tool from becoming the hole.

It's 4:40 p.m. You have a dozen tabs open, a release is waiting for review, and an alert fires. The log line looks normal at first, then a little off: a service account that usually reads from one storage bucket just listed six. You paste it into your team's AI assistant and ask what's going on. A few seconds later you have a summary, three similar events from last month and a suggested next query.

That moment shows both sides of AI in security work. Security teams have too many signals and too little time, and AI is good at sorting, summarizing and connecting them. Security is also a field where a confident wrong answer costs a lot. A polished summary can close a ticket that should have stayed open if nobody checks the evidence behind it.

Two security analysts review clusters of related alerts across several monitors in an operations room.
AI earns its place when it helps people spot a pattern sooner and the raw events stay one click away.

Where AI helps defenders today

Alert triage is the obvious one. A modern system produces logs, metrics, traces, endpoint events, cloud audit records, sign-in events and alerts from a pile of vendors. AI can group related signals, say what changed, point out unusual access and draft an investigation path. The analyst still makes the call. They just spend less time rereading the same raw lines and more time on the part that needs judgment.

Secure code review is another. An assistant can explain why a query is open to injection, suggest stricter input validation, compare two auth flows or spot a missing authorization check. It can turn a vague "this looks unsafe" comment into a concrete patch plan. The code still needs tests, review and threat modeling, and the team still owns the risk.

Automated vulnerability finding is the area moving fastest. In the final round of DARPA's AI Cyber Challenge (results announced in August 2025), the competing systems found 54 synthetic vulnerabilities across 63 challenges, patched 43 of them, and also turned up 18 real vulnerabilities nobody had planted. Patches came in after 45 minutes on average, at about $152 per competition task. Those are competition numbers on selected open-source projects. They show where things are heading, and they won't tell you how a tool will do on your codebase.

Incident response fits well too. During an incident, people need a timeline, open hypotheses, a list of affected systems, status updates and next actions. AI can build a first-draft timeline from logs, write the stakeholder update or recap a long thread so the incident commander doesn't lose context. It takes load off people at the exact moment their attention is stretched thin.

An incident response team stands around a table, talking through a shared timeline and a system diagram on the wall screen.
During an incident, a shared timeline keeps everyone working from the same facts when decisions have to be fast.

Attackers use it too (as of November 2026)

Google's Threat Intelligence Group (GTIG) publishes a regular AI Threat Tracker, and the picture has moved fast this year. In May 2026, GTIG reported the first threat actor it had seen using a zero-day exploit it believes was developed with AI, and described attackers using models to map out company org charts for tailored phishing. Its November 2026 report goes further: "In the past quarter, GTIG identified threat actors using LLM frameworks to fully automate vulnerability discovery and exploitation without a human in the loop for the first time." The same report says LLMs are "shrinking the patch window for organizations."

Two details from that report are worth knowing. First, cheap tooling cuts both ways: GTIG describes a wave of "LLM-generated exploits that are claimed to work but don't, creating additional verification work for defenders." Second, AI developer tools are now targets. In one intrusion, the attacker edited .claude/settings.json files in internal repositories so that starting Claude Code would download a backdoor. Your coding agent's config is part of your attack surface.

What to do with that: expect more attempts, more varied phishing and less time between a patch and a working exploit. Patch faster, and treat agent configs and hooks like any other code that runs on developer machines: reviewed, versioned and monitored.

The AI tool is attack surface too

The OWASP Top 10 for LLM Applications (the 2025 edition, still the latest listed as of November 2026) puts prompt injection first. Direct injection is a user typing instructions that change the model's behavior. Indirect injection is sneakier: the model reads a web page, an email, a ticket or a log line with instructions hidden inside, and follows them. For a security assistant that reads attacker-controlled data all day, that second kind is a real risk. OWASP is frank about it: "it is unclear if there are fool-proof methods of prevention for prompt injection."

Other risks to plan for:

  • Sensitive data. Logs often hold secrets, tokens and personal data that shouldn't go to an external model unless a policy says it can.
  • Wrong answers. A model can invent a vulnerability, miss a real one or suggest a fix that sounds right and does nothing.
  • Excessive agency. That's OWASP's name for a system with more tools, permissions or autonomy than it needs. If the assistant can lock accounts or change firewall rules, its permission model is now part of your security boundary.
Assume the input is hostile

A triage assistant reads text written by attackers by design: phishing emails, user agents, file names, error messages. Give it read-only access by default, and never let text it just read decide what it's allowed to do next.

Keep AI on a short leash

The safest uses share one shape: AI speeds up attention, and people plus controls keep the authority. In practice:

  • Let AI summarize alerts, and always show the source events next to the summary.
  • Let it draft a remediation note, and require a person to approve it.
  • Let it suggest suspicious queries, and run deterministic checks before anyone gets blocked.
  • Let it help write secure code, and keep tests and static analysis in the pipeline.
  • Give each tool the minimum permissions it needs, and enforce authorization in the downstream system, as OWASP recommends, instead of trusting the model to decide.
Two security reviewers compare an AI recommendation with source events and permission boundaries on two screens before acting.
With the suggestion sitting next to the raw evidence, the check is much harder to skip.

Why a fluent answer gets trusted too early is its own topic, covered in The cost of trusting a fluent AI answer.

Measure it like any other control

Measure an AI tool the way you'd measure a WAF rule or a detection. Which false positives did it remove? Which incidents did it help close faster? Which known test cases did it miss? How often do analysts override it? Keep a small set of past incidents and planted test cases, and rerun it whenever the model, the prompt or the vendor changes. Without that set, the team is going on a nice demo and recent memory. With it, you can improve the tool, narrow its scope or switch it off when it hasn't earned trust.

Try this week

  • List every AI tool that touches security data, and write down what each one can read and what it can change.
  • Check that every AI-written summary links back to its raw events.
  • Review the config files and hooks of your team's coding agents the way you review CI config.
  • Pick five past incidents and ask whether your AI tooling would have helped or sent you the wrong way.

What you want from AI here is a faster first look for careful people, so they catch the odd log line sooner and still check it before they act.

What did you think?

Frequently asked questions

How is AI used in cybersecurity today?
Mostly to speed up human work: grouping and summarizing alerts, explaining risky code during review, drafting incident timelines and status updates, and finding and patching vulnerabilities automatically. In DARPA's AI Cyber Challenge final (August 2025), competing systems found 54 synthetic vulnerabilities across 63 challenges and patched 43. Analysts still make the decisions.
Are attackers using AI?
Yes. Google's Threat Intelligence Group reported in May 2026 the first zero-day exploit it believes was developed with AI, and in November 2026 said it had, for the first time, seen threat actors fully automate vulnerability discovery and exploitation without a human in the loop. Expect more phishing variety and less time between a patch and a working exploit.
What is prompt injection and why does it matter for security tools?
It's when instructions hidden in input change what a model does. Indirect prompt injection comes from content the model reads, such as a web page, email or log line. Security assistants read attacker-controlled text all day, so they're exposed by design. OWASP ranks prompt injection first in its 2025 LLM Top 10 and says it's unclear whether any method prevents it completely.
Should an AI security tool be allowed to take actions automatically?
Start read-only. OWASP's guidance on excessive agency is to give tools the minimum permissions they need, enforce authorization in downstream systems instead of trusting the model, and require human approval for high-impact actions such as blocking accounts or changing firewall rules.
How do you evaluate an AI security tool?
The way you'd evaluate any control: track false positives removed, incidents closed faster, known test cases missed and how often analysts override it. Keep a small set of past incidents and planted cases, and rerun it whenever the model, prompt or vendor changes.