AI-Powered Cybersecurity: How AI Helps Defenders and Attackers
How AI is used in cyber defense, from alert triage to automated bug finding, how attackers use it too, and what NIST guidance says about securing AI systems.
AI-powered cybersecurity means using machine learning and, increasingly, large language models and AI agents to defend systems: spotting attacks in huge volumes of data, triaging alerts, and finding and fixing software vulnerabilities. Attackers are using the same technology, and the AI systems themselves are a new attack surface. NIST's draft Cyber AI Profile frames the field in exactly those three parts: securing AI systems, using AI for cyber defense, and thwarting AI-enabled attacks [1].
For security basics, see our cybersecurity guide for beginners.
Three ways AI and security meet
Focus area (NIST draft Cyber AI Profile) | What it means | Examples |
|---|---|---|
Secure | Protecting AI systems and their data | Prompt injection defenses, training-data integrity |
Defend | Using AI to improve cyber defense | Alert triage, anomaly detection, automated bug finding |
Thwart | Countering attacks that use AI | AI-written phishing, AI agents running intrusions |
The profile is still a draft. NIST released an initial preliminary draft in December 2025, and the comment period closed on January 30, 2026 [1]. It's meant to help organizations apply the NIST Cybersecurity Framework to AI.
How defenders use AI
Detection and triage
Machine learning has been part of security tools for years: classifying malware, scoring risky sign-ins, flagging unusual network traffic. What's newer is generative AI on top. Security vendors now offer assistants that summarize incidents, explain alerts in plain language, draft queries for a SIEM, and suggest response steps.
The appeal is obvious. A security operations center faces far more alerts than analysts can investigate. The tools that correlate those alerts, such as XDR and SIEM, increasingly use AI to group, prioritize and explain them.
Independent, published measurements of how much these assistants improve real-world detection are still scarce. Treat vendor claims of time saved as claims to test, not facts.
Finding and fixing vulnerabilities
This is where the evidence is strongest. In DARPA's AI Cyber Challenge (AIxCC), whose final results DARPA announced in August 2025, teams built autonomous "cyber reasoning systems" that combine AI with other cyber defense techniques [2]. According to DARPA:
- Competitors' systems analyzed more than 54 million lines of code and found 54 of the 63 synthetic vulnerabilities planted in the final competition (86%), patching 43 of them [2].
- They also discovered 18 real, previously unknown vulnerabilities in open-source projects and supplied 11 patches for real vulnerabilities [2].
- Patches arrived in an average of 45 minutes, at an average cost of about $152 per competition task [2].
- Team Atlanta (Georgia Tech, Samsung Research, KAIST and POSTECH) won, with Trail of Bits second and Theori third, and the systems are being released as open source [2].
Google's Project Zero reported a similar result outside a competition. In October 2024, its Big Sleep agent found an exploitable stack buffer underflow in SQLite, which developers fixed the same day, before it reached an official release [3]. Google described it as, to its knowledge, the first public example of an AI agent finding a previously unknown exploitable memory-safety issue in widely used real-world software, and noted that existing fuzzing hadn't caught it [3]. That's the company's own account.
The defensive logic: if vulnerabilities are found and fixed before release, attackers never get the chance to use them.
How attackers use AI
The same capabilities help attackers. Generative AI makes convincing phishing messages cheap to produce in any language. See our guide to phishing and social engineering for defenses.
More striking is the use of AI agents to run intrusions. In November 2025, Anthropic reported that it had detected, in mid-September 2025, an espionage campaign it assessed with high confidence to be by a Chinese state-sponsored group [4]. The group manipulated Anthropic's Claude Code tool into attempting to break into roughly thirty organizations and succeeded in a small number of cases [4]. Anthropic said AI performed 80 to 90% of the campaign, with humans stepping in at perhaps four to six critical decision points [4]. That's the company's account of misuse of its own product.
The same report notes a limit: the AI sometimes hallucinated credentials or claimed to have extracted secrets that were actually public [4]. That's the same reliability problem defenders face, explained in our article on AI hallucinations.
Securing AI systems themselves
Every organization deploying AI adds a new attack surface. NIST's adversarial machine learning taxonomy, updated in March 2025, organizes attacks by the stage of the AI lifecycle they target and by the attacker's goals, capabilities and knowledge, and describes mitigations [5]. In practical terms, the main risks are:
- Evasion: inputs crafted to fool a model, such as malware tweaked to slip past a classifier.
- Poisoning: corrupting training or retrieval data. CISA, NSA, FBI and partners published guidance in May 2025 on securing the data used to train and operate AI systems across the whole lifecycle [6].
- Privacy attacks: extracting sensitive training data from a model.
- Prompt injection: hidden instructions that hijack an LLM application or agent.
We cover these in depth in AI agent security and governance and RAG security. Our upcoming explainer on AI model security and adversarial attacks goes further.
Benefits
- Scale. AI can review code, logs and alerts at volumes no team can match [2].
- Speed. Automated systems can find and patch some bugs in minutes rather than weeks [2].
- Lower barriers for defenders. Natural-language interfaces make complex tools usable by smaller teams.
- Pre-release bug finding removes vulnerabilities before attackers see them [3].
Limitations and risks
- Errors and hallucinations. AI can invent findings or miss real ones. Every automated patch and conclusion needs verification.
- Attackers get the same gains. AI lowers the skill and cost needed for attacks as well as defense [4].
- New attack surface. AI tools with access to security data and response actions are high-value targets [5].
- Data exposure. Sending logs or code to an external AI service raises privacy and contractual questions.
- Over-reliance. If analysts stop understanding what the tools do, they can't catch the tools' mistakes.
How to evaluate AI security tools
- Ask for measured results on data like yours: detection rates, false positives and analyst time, not demo scenarios.
- Check the human-in-the-loop design. Which actions can the AI take on its own, and which need approval?
- Ask where your data goes, whether it's used for training, and how long it's kept.
- Look for explainability. Can the tool show which events led to a conclusion, mapped to frameworks such as MITRE ATT&CK [7]?
- Test failure modes. What happens when the AI is wrong, or when someone feeds it malicious input?
- Map it to the NIST draft profile's Secure, Defend and Thwart areas to make sure you're not only buying defense while ignoring the new risks [1].
Outlook
The clearest near-term trend is automated vulnerability discovery and patching moving from competitions into everyday software development, helped by DARPA's open-source release of the AIxCC systems [2]. On the threat side, reports like Anthropic's [4] suggest AI agents will take on more of the routine work in intrusions, which raises the premium on fast detection and response. Expect NIST to keep developing the Cyber AI Profile [1]. These are expectations based on the published evidence, not certainties; much of the current evidence comes from the companies building the tools.
Frequently asked questions
How is AI used in cybersecurity?
To detect and triage threats in large volumes of data, to summarize and explain incidents for analysts, and increasingly to find and patch software vulnerabilities automatically [2][3]. It's also used by attackers, and AI systems themselves need protecting [1].
Can AI find software vulnerabilities on its own?
In some cases, yes. In DARPA's AIxCC finals, autonomous systems found 54 of 63 planted vulnerabilities and 18 real ones in open-source code [2]. Google reported its Big Sleep agent found an exploitable SQLite bug before release [3]. Human review is still needed.
Are hackers using AI?
Yes. Anthropic reported a 2025 espionage campaign in which attackers used its AI coding tool to carry out most of the intrusion work against roughly thirty targets [4]. AI also makes phishing cheaper to produce at scale.
Will AI replace security analysts?
Not on current evidence. AI tools make errors, including hallucinated findings [4], and attackers adapt. The likelier change is analysts supervising more automation and spending more time on judgment calls.
What is adversarial machine learning?
The study of attacks on AI systems, such as evasion, data poisoning and privacy attacks, and of defenses against them. NIST publishes a taxonomy of these attacks and mitigations [5].
What is the NIST Cyber AI Profile?
A draft NIST guide for applying the Cybersecurity Framework to AI. It covers securing AI systems, using AI for cyber defense, and thwarting AI-enabled attacks. Comments on the preliminary draft closed in January 2026 [1].
Sources
- NIST, "IR 8596 (Initial Preliminary Draft), Cybersecurity Framework Profile for Artificial Intelligence (Cyber AI Profile): NIST Community Profile," December 16, 2025. https://csrc.nist.gov/pubs/ir/8596/iprd
- DARPA, "AI Cyber Challenge marks pivotal inflection point for cyber defense," August 2025. https://www.darpa.mil/news/2025/aixcc-results
- Google Project Zero, "From Naptime to Big Sleep: Using Large Language Models To Catch Vulnerabilities In Real-World Code," 2024 (company's own account). https://googleprojectzero.blogspot.com/2024/10/from-naptime-to-big-sleep.html
- Anthropic, "Disrupting the first reported AI-orchestrated cyber espionage campaign," November 13, 2025 (company's own account). https://www.anthropic.com/news/disrupting-AI-espionage
- NIST, "AI 100-2 E2025, Adversarial Machine Learning: A Taxonomy and Terminology of Attacks and Mitigations," March 2025. https://csrc.nist.gov/pubs/ai/100/2/e2025/final
- CISA, NSA, FBI and international partners, "AI Data Security: Best Practices for Securing Data Used to Train and Operate AI Systems," May 22, 2025. https://www.cisa.gov/resources-tools/resources/ai-data-security-best-practices-securing-data-used-train-operate-ai-systems
- The MITRE Corporation, "MITRE ATT&CK." https://attack.mitre.org/