Security teams used to argue about whether AI would matter. That argument is over. Criminals now use it to write phishing that reads like a colleague wrote it and to clone voices for fake phone calls, and one state-linked group has used an AI model to run most of an intrusion campaign. Defenders, meanwhile, use AI to catch odd logins, triage alerts and find bugs in code before anyone exploits them.
This guide sorts what is real from what is marketing. You get the current research on AI-powered attacks, where AI actually helps defense, a small tested Python example of AI-style anomaly detection, the main cyber security AI tools, an honest look at what AI means for security jobs, and a checklist you can act on this week.
How AI and cybersecurity fit together
"AI and cybersecurity" covers three different relationships, and most confusion comes from mixing them up.
| Relationship | What it means | Examples |
|---|---|---|
| AI for attackers | Criminals and state groups use AI to make attacks cheaper, faster and more convincing | AI-written phishing, deepfake voice calls, AI-assisted malware, automated reconnaissance |
| AI for defenders | Security teams use AI to detect, investigate and fix problems faster | Anomaly detection, alert triage, AI security assistants, automated bug finding |
| Security of AI | The AI systems a company deploys become new things to protect | Prompt injection, data leaking into chatbots, attacks on models and AI apps |
The first two are an arms race. The third is a new attack surface. We cover all three below, with a deeper treatment of the third in our guide to agentic AI security.
How attackers use AI: the AI threat to cyber security
The clearest numbers come from IBM's Cost of a Data Breach Report 2026 (opens in a new tab), based on breaches at 602 organizations between March 2025 and February 2026. According to IBM's release on the study (opens in a new tab), one in four malicious breaches was AI-enabled, a 56% increase over the previous year, and those breaches cost an average of $6 million, roughly $1 million more than the global average of $4.99 million. IBM says the AI-enabled attacks were mostly deepfake impersonation and AI-enabled malware, and that 62% of AI-driven attacks hit critical infrastructure.
Practitioners see the same pattern. In the 2025 ISC2 Cybersecurity Workforce Study (opens in a new tab), 40% of security professionals said their organization had faced AI-optimized social engineering in the past year, and 23% reported suspected AI-powered cyberattacks.
Phishing and deepfakes
Generative AI removes the old warning signs of phishing: clumsy grammar and generic wording. It also makes voice cloning cheap. In May 2025 the FBI warned (opens in a new tab) that since April 2025, malicious actors had been sending text messages and AI-generated voice messages that claimed to come from senior US officials, to build rapport before sending links that stole login credentials. The FBI's advice is low-tech: verify the person through a number you look up yourself, check addresses and links for small differences, and never share a one-time code. Our guide to two-factor vs two-step verification explains which second steps stand up to that kind of phishing.
Automated intrusion
The most significant documented case so far came from Anthropic. In November 2025 the company reported (opens in a new tab) that it had detected, in mid-September 2025, a campaign it assessed with high confidence was run by a Chinese state-sponsored group. The attackers used Anthropic's Claude model to target roughly thirty organizations, including tech companies, financial institutions and government agencies, and succeeded in a small number of cases. Anthropic says AI performed 80% to 90% of the campaign, with humans stepping in at perhaps 4 to 6 critical decision points per campaign.
The same report notes the limits. The model sometimes hallucinated credentials or claimed to have extracted secret information that was actually public, which Anthropic says remains an obstacle to fully autonomous attacks.
What government assessments expect
The UK's National Cyber Security Centre, in its assessment of AI's impact on the cyber threat to 2027 (opens in a new tab), judges that AI will almost certainly keep making parts of intrusion more effective and efficient, increasing the frequency and intensity of threats. It also expects a growing divide between organizations that keep pace with AI-enabled threats and a large group that become more vulnerable.
How defenders use AI in cybersecurity
AI's defensive value is less dramatic but well documented. IBM's 2026 report found organizations that used AI and automation extensively in security saved $1.93 million per breach on average compared with organizations that used none. IBM's release also says more than half of organizations reported using AI agents for threat detection and containment, but only 18% applied them to vulnerability management.
The main defensive uses today:
- Anomaly detection. Machine learning models learn what normal looks like for users, devices and networks, then flag what does not fit, such as a login at 3 a.m. followed by a huge download.
- Alert triage and investigation. AI assistants summarize alerts, pull related evidence and suggest next steps, so analysts spend time on the cases that matter.
- Writing queries and rules. Generative AI turns a plain-English question into a search query or detection rule an analyst can review.
- Finding and fixing vulnerabilities. AI systems now find real bugs in real code, and some can propose patches.
- Phishing analysis. Models classify reported emails and pull out suspicious links and attachments faster than manual review.
Vulnerability discovery is where the progress is most measurable. In DARPA's AI Cyber Challenge (opens in a new tab), whose final results were announced in August 2025, the finalists' automated systems found 54 of 63 synthetic vulnerabilities in the final competition's challenges and patched 43, at an average cost of about $152 per competition task. They also found 18 real, previously unknown vulnerabilities. Team Atlanta won, and DARPA says all seven finalist systems will be released as open source.
Google reported (opens in a new tab) in July 2025 that its Big Sleep agent, using intel from Google Threat Intelligence, discovered an SQLite flaw (CVE-2025-6965) that was known only to threat actors and at risk of being exploited.
We believe this is the first time an AI agent has been used to directly foil efforts to exploit a vulnerability in the wild.
A tested example: how AI spots an unusual login
Most "AI-powered" detection rests on a simple idea: learn normal behavior and score how far each event is from it. The short Python script below uses scikit-learn's Isolation Forest on made-up login data. It is a teaching example, not a production detector. We ran it with scikit-learn 1.9.1 and NumPy 2.5.3.
import numpy as np
from sklearn.ensemble import IsolationForest
rng = np.random.default_rng(42)
# 500 normal logins: office hours, few failed attempts, small downloads
normal = np.column_stack([
rng.normal(13, 2, 500), # hour of day
rng.poisson(0.3, 500), # failed attempts before success
np.clip(rng.normal(40, 15, 500), 1, None), # MB downloaded
])
# 3 suspicious logins: 3 a.m., many failures, large downloads
suspicious = np.array([
[3, 9, 900],
[2, 6, 650],
[4, 12, 1200],
])
X = np.vstack([normal, suspicious])
model = IsolationForest(contamination=0.01, random_state=42)
model.fit(X)
labels = model.predict(X) # -1 = anomaly, 1 = normal
scores = model.decision_function(X) # lower = more unusual
flagged = np.where(labels == -1)[0]
print(f"Flagged {len(flagged)} of {len(X)} logins")
for i in flagged:
hour, fails, mb = X[i]
print(f"row {i}: hour={hour:.0f} fails={fails:.0f} MB={mb:.0f} score={scores[i]:.3f}")Running it produced this output:
Flagged 6 of 503 logins
row 71: hour=11 fails=2 MB=74 score=-0.000
row 302: hour=15 fails=4 MB=57 score=-0.026
row 479: hour=18 fails=0 MB=84 score=-0.040
row 500: hour=3 fails=9 MB=900 score=-0.204
row 501: hour=2 fails=6 MB=650 score=-0.192
row 502: hour=4 fails=12 MB=1200 score=-0.219Two lessons hide in that output. First, the three planted attacks (rows 500 to 502) get by far the lowest scores, so the model finds them without anyone writing a rule like "block 3 a.m. logins". Second, it also flags three ordinary logins with scores near zero. That is a false positive, and it is the everyday reality of AI detection. Real tools tune thresholds, combine many more signals and route borderline cases to a person. If you are new to these ideas, our machine learning for beginners guide explains models, training data and scoring in plain English.
Generative AI in cybersecurity: where it helps and where it fails
Generative AI is the newest layer in security tools. It is strong at language tasks and weak wherever a confident wrong answer is dangerous.
| Task | Good fit? | Why |
|---|---|---|
| Summarizing an incident for a manager | Yes | Turns logs and alerts into readable prose quickly; a person checks it |
| Drafting a search query or detection rule | Yes, with review | Saves time, but rules must be tested before they go live |
| Explaining an unfamiliar alert or malware sample | Yes, with review | Good starting point; may be wrong about specifics |
| Deciding to isolate a server or disable an account | Only with approval | Mistakes cause outages; keep a human in the loop for disruptive actions |
| Proving a system is secure | No | Models can miss things and can state false conclusions confidently |
Anthropic's own report shows the risk in both directions: the same model that hallucinated credentials for attackers can mislead a defender. Treat generative AI output as a fast first draft, and keep verification and approvals in place, a design pattern we cover in AI agentic workflows.
Cyber security AI tools
Almost every security vendor now markets AI features. Three of the most widely used platforms show the range. Descriptions come from each vendor's own product pages at the time of writing, so treat performance claims as vendor claims.
| Tool | What it does | Notes |
|---|---|---|
| Microsoft Security Copilot (opens in a new tab) | Generative AI assistant and agents across Microsoft's security stack: summarizing signals, response guidance, phishing and alert triage agents | Billed in security compute units; Microsoft says it is being included in Microsoft 365 E5 |
| Google Security Operations (opens in a new tab) | Cloud SIEM, SOAR and threat intelligence platform with Gemini for natural-language search, case summaries and an investigation assistant | Gemini features are listed in the Enterprise and Enterprise Plus packages |
| CrowdStrike Charlotte AI (opens in a new tab) | Described as an agentic AI security analyst on the Falcon platform for triage, investigation and query writing | CrowdStrike says it does not take automated response actions by default; teams choose what runs automatically |
When you evaluate any of these, ask four questions: what data the tool sends to the vendor's models, which actions it can take without approval, how it logs what the AI did, and how you measure whether it cut response time or false positives in your environment. For a broader map of agent platforms, see our roundup of the best AI agents.
Will cybersecurity be replaced by AI?
This is the question people search most, and the evidence leans clearly one way, with caveats.
The case that jobs will grow. The US Bureau of Labor Statistics projects (opens in a new tab) employment of information security analysts to grow 21% from 2025 to 2035, against 3% for all occupations, with about 14,100 openings a year. The median annual wage was $129,180 in May 2025. In ISC2's study, 73% of professionals said AI will create more specialized cybersecurity skills, and AI topped the list of skills needs at 41%.
Far from reducing cybersecurity functions, participants believe AI will create the need for new types of roles
The case for caution. Security teams are not immune to cuts. The same ISC2 study found 24% of respondents' organizations had layoffs and 36% had budget cuts in the past year, though it did not attribute these to AI. And the Anthropic case shows AI doing most of the hands-on work in an intrusion, which suggests the routine, repetitive parts of defense, such as first-pass alert triage, will also be automated.
The balanced reading: AI is changing what security people do more than whether they are needed. Attackers using AI create more work, and someone has to supervise, tune and take responsibility for the AI on defense. The roles most exposed are narrow, repetitive ones. If you are building a career, pair security fundamentals with practical AI skills; our how to learn machine learning path is a good place to start.
Cybersecurity for AI: securing the AI you deploy
Cybersecurity for AI, often just called AI security, is the other half of the topic: protecting AI systems themselves rather than using AI to protect everything else. Microsoft draws the line (opens in a new tab) the same way. AI security protects the models, data and algorithms, while AI for cybersecurity uses AI tools to spot, respond to and reduce threats across the rest of your technology.
The closest thing to an official rulebook is the Guidelines for secure AI system development (opens in a new tab), published in November 2023 by the UK's National Cyber Security Centre, the US Cybersecurity and Infrastructure Security Agency and 21 other international agencies. They split the work into four stages of an AI system's life cycle:
- Secure design: understand the risks and threat-model the system before you build it.
- Secure development: secure the supply chain, document models and data, and manage technical debt.
- Secure deployment: protect infrastructure and models from compromise, and plan incident management before launch.
- Secure operation and maintenance: log and monitor the system, manage updates and share what you learn.
Every chatbot, copilot and agent a company rolls out is also something to protect. IBM's 2026 release says more than 20% of organizations reported a breach targeting AI models or applications, with compromised APIs, apps or plug-ins and cloud misconfigurations each cited in 27% of those cases. The main risks are prompt injection, sensitive data pasted into AI tools, and agents that hold too many permissions.
The short version of the fix: inventory every AI tool in use, limit what data and permissions each one has, and require human approval for risky actions. Our agentic AI security guide goes deeper, including the OWASP risks for agents and a tested policy gate.
A practical AI cybersecurity checklist
Whether you run security for a company or just your own household, these steps address the AI-era threats above. Most cost little or nothing.
- Turn on multi-factor authentication everywhere, preferring passkeys or authenticator apps over SMS, and never read a code to anyone who calls you.
- Agree a verification step for money and access requests. Call back on a number you already have before acting on any urgent voice, video or text request. For families, the FBI suggests a shared secret word.
- Retrain staff on phishing without the grammar tip. AI-written emails are fluent, so teach people to check the request, the sender address and the link destination instead.
- Patch quickly, starting with internet-facing systems. Exploiting known flaws is a core intrusion step, and the NCSC expects AI to keep making intrusion more efficient.
- List every AI tool in use, including browser extensions and features built into existing software, and decide what data each may see.
- Give AI agents the least access possible and require human approval for anything that deletes, pays, sends or changes permissions.
- Pilot one defensive AI use case and measure it, such as alert triage or phishing report analysis, tracking response time and false positives before and after.
- Log what your AI tools do so you can investigate when something goes wrong.
The bottom line
AI has made attacks faster and more convincing, and the research shows it is already raising breach costs. It has also given defenders real gains, from cheaper breaches for heavy AI users to automated systems that find and patch bugs. Neither side has a permanent edge, so the winners will be organizations that pair AI tools with strong fundamentals and human judgment. For more plain-English guides on how AI works and where it fits, browse our AI hub.



