Artificial intelligence defence has moved from a marketing promise to something with documented results. In July 2025, Google said its Big Sleep agent had found a critical flaw in the SQLite database engine before attackers could exploit it. A month later, AI systems in a US government competition found and patched dozens of software bugs with no human help.
The same technology is now in attackers’ hands. Anthropic reported in November 2025 that a state-sponsored group had used its Claude Code tool to automate most of an espionage campaign. That leaves artificial intelligence defence in an unusual position, because the technology protecting a network is also being turned against it.
This guide explains how AI detects and contains threats and where human judgement still has to sit. Later sections cover the UK and Irish rules on automated security tools, followed by the questions to put to a supplier before you buy one.
Table of Contents
What Artificial Intelligence Defence Means in Practice
Artificial intelligence defence means using machine learning and related techniques to detect and respond to attacks faster than people can alone. Older security tools compare files and traffic against signatures of known threats, so they struggle with anything new or slightly altered.
AI models take a different approach by learning what normal activity looks like on a network, a device or an account. They then flag departures from that pattern, which lets them catch attacks that have no known signature. Our guide to machine learning use cases covers the wider applications of the same techniques outside security.
Two ideas in this area are often confused. AI for cyber defence uses models to protect ordinary systems, while securing AI protects the models themselves from tampering. A company that runs its own AI chatbot needs both, because the chatbot can be attacked even while other AI tools guard its network.
Each main technique suits a different job and has a known weakness. The table below sets out where each one fits best.
| AI technique | Defensive job | Main limitation | Recommendation |
|---|---|---|---|
| Supervised machine learning | Classifying files and emails as malicious or safe | Needs large labelled datasets and can miss new attack types | Use for high-volume filtering such as email and malware scanning |
| Unsupervised anomaly detection | Learning normal behaviour and flagging departures from it | Raises false alarms when the business changes | Pair with analyst review and regular retraining |
| Natural language processing | Reading threat reports and spotting phishing wording | Can be fooled by carefully written messages | Use alongside sender and link checks |
| Large language model agents | Finding software flaws and drafting fixes | Open to prompt injection and can make mistakes | Keep a human approval step before changes go live |
How AI Detects and Contains Threats
Most artificial intelligence defence tools carry out a handful of jobs inside a security operation. The three covered below are learning normal behaviour, filtering malicious email and acting on confirmed threats, and each deserves a different level of trust.
Behaviour Baselines and Anomaly Detection
User and entity behaviour analytics, usually shortened to UEBA, builds a profile of how each person and device normally behaves. It records typical login times, locations, file access and data volumes. When an account suddenly downloads thousands of files at 3am from a new country, the model raises its risk score.
The approach works well against insider threats and stolen passwords, which signature tools rarely catch. Its main weakness is a lack of business context. A finance team working late at year end looks unusual to a model that has never seen it, so baselines need regular review.
Filtering Phishing Before It Reaches Staff
Email is one of the most common routes into an organisation, and it is where many people meet AI security without realising it. Modern filters examine the wording, sender history, links and attachments of each message, then score how likely it is to be a phishing attempt. Our email phishing scams statistics show how often these attacks reach their targets.
Generative AI has made phishing harder to spot by removing the spelling mistakes and clumsy phrasing that people were trained to look for. Filters that rely on wording alone are weaker as a result. The better artificial intelligence defence products combine language analysis with technical checks on the sender’s domain and the links inside each message.
Automated Containment and Response
Detection only helps if someone acts on it quickly. Orchestration tools can isolate an infected laptop, disable a compromised account or block a malicious domain within seconds of an alert. Our guide to cybersecurity automation explains how these response playbooks are built and measured.
Speed brings its own risk, because an automated rule that isolates the wrong server can disrupt a business as badly as an attack. Most teams start by automating low-impact actions and keep a person involved for anything that touches critical systems. The wider costs of a badly handled incident appear in our data breach aftermath statistics.
AI That Finds and Fixes Software Flaws
The strongest recent evidence for artificial intelligence defence comes from vulnerability research. Two projects in 2025 showed AI agents finding real flaws in widely used software. In one case, the work stopped an attack before it began.
Google’s Big Sleep and the SQLite Flaw
Big Sleep is an AI agent built by Google DeepMind and Google’s Project Zero security team to search for unknown flaws in software. In November 2024 it found its first real-world vulnerability, a memory bug in a version of SQLite that had not yet been released.
In July 2025, Google reported a more significant result. Its threat intelligence team had spotted signs that attackers were preparing a zero-day attack but could not identify the flaw they planned to use. Big Sleep was used to isolate it, and the bug, tracked as CVE-2025-6965, was fixed in SQLite version 3.50.2.
Kent Walker, Google’s President of Global Affairs, said it was the first time an AI agent had been used “to directly foil” a planned exploit. SQLite is built into web browsers, phones and many other applications, although Google has not said who the attackers were.
What DARPA’s AI Cyber Challenge Showed
DARPA, the US military’s research agency, ran the AI Cyber Challenge over two years with the health research agency ARPA-H. Teams built automated systems that had to find and fix flaws in open-source code used by critical infrastructure. The results were announced at the DEF CON conference in Las Vegas in August 2025.
In the final round, the competing systems worked through 54 million lines of code across 63 challenges. They discovered 54 of the planted vulnerabilities and patched 43 of them, according to DARPA. The teams also uncovered 18 real flaws that the organisers had not planted.
Team Atlanta, drawn from Georgia Tech, Samsung Research, KAIST and POSTECH, won the US$4 million first prize. DARPA released several finalist systems as open-source software. MeriTalk reported that each automated task cost an average of US$152, well below the sums typically paid to human researchers through bug bounty schemes.
Attackers Are Using the Same Technology
Every capability that helps defenders also helps attackers, and 2025 produced the first documented case of AI running most of an intrusion. Artificial intelligence defence now has to account for attacks that move at machine speed and for attacks aimed at AI tools themselves.
The First AI-Orchestrated Espionage Campaign
In mid-September 2025, Anthropic detected a campaign that it attributes, with high confidence, to a Chinese state-sponsored group it calls GTG-1002. The group manipulated Claude Code into acting as an automated penetration tester against around 30 organisations. Targets included technology companies, financial institutions, chemical manufacturers and government agencies.
According to Anthropic’s November 2025 report, the AI carried out 80 to 90 per cent of the tactical work. Human operators stepped in mainly to approve key decisions, such as moving from reconnaissance to active exploitation. A small number of the intrusions succeeded before Anthropic banned the accounts involved and notified those affected.
The main lesson for defenders concerns pace, because the AI issued several requests per second, far faster than any analyst can follow. The types of hackers behind such campaigns have not changed, but their tools now work at far greater scale.
Prompt Injection and Attacks on AI Models
Securing AI is a separate problem from using it. Prompt injection hides instructions inside content that an AI system reads, such as a web page, an email or a document. The model can then follow the attacker’s instructions instead of its owner’s.
In December 2025, the NCSC’s technical director for platforms research, known publicly as David C, warned that this threat may never be fully mitigated. Large language models do not separate data from instructions, so the fix that works for SQL injection does not carry across. He wrote that prompt injection “will remain a residual risk” and urged designers to reduce the damage a successful attack can cause.
Other attacks target how a model learns. Data poisoning slips misleading examples into training data so that the model learns to ignore a particular attack. Evasion attacks alter malware just enough for a classifier to label it safe, and MITRE’s ATLAS knowledge base catalogues these techniques for security teams.
Keeping Humans in Control of Automated Defence
Handing every security decision to a model is an operational risk in its own right. The practical question for any team running artificial intelligence defence is which actions a tool may take alone.
Setting Autonomy Tiers by Business Impact
A simple way to set limits is to grade each automated action by the harm it could cause if the model is wrong. Teams can adapt the approach below to their own systems.
| Tier | Example actions | Who decides | Recommendation |
|---|---|---|---|
| Tier 1: automatic | Quarantining a suspicious email or resetting one user’s password | The tool acts and logs the action | Automate once false alarms are rare |
| Tier 2: supervised | Isolating a single server or blocking a supplier’s domain | An analyst approves with one click | Set a short approval window with an escalation route |
| Tier 3: human only | Changes to domain controllers, payment systems or production databases | The security lead and the system owner | Do not automate, and use AI only to prepare the evidence |
The UK’s Code of Practice for the Cyber Security of AI makes a similar point through its principle on enabling human responsibility for AI systems. Whatever tiers you choose, write them down and review them after every significant incident.
Model Drift and False Positives
An AI model is trained on a snapshot of how a network behaved at one point in time. When a business moves to new cloud services, changes its working patterns or merges with another firm, that snapshot goes out of date. The model then misses real threats or floods analysts with false alarms, a problem known as model drift.
Teams can limit drift by retraining models on a fixed schedule and after any major change to their systems. They should also track the false positive rate each month, because a sudden rise is often the first sign of drift. Our article on big data cybersecurity explains how the quality of logs and telemetry shapes what any model can detect.
UK and Irish Rules That Apply to AI Defence
Organisations in the UK and Ireland face guidance and law that most international guides on artificial intelligence defence leave out. Some of it covers the security of AI systems, while other rules govern how automated tools may treat staff and customers.
The UK Code of Practice and ETSI EN 304 223
The UK government published its Code of Practice for the Cyber Security of AI on 31 January 2025, after developing it with the NCSC. The code is voluntary and sets out 13 principles covering how AI systems are designed, built, deployed, maintained and retired.
The code then became the basis for a European standard. ETSI EN 304 223 now sets baseline security requirements for AI models and systems across five lifecycle phases. Buyers of artificial intelligence defence tools can ask suppliers whether their products follow it.
Automated Decisions About Staff Under UK GDPR
Behaviour analytics tools process personal data about employees, so UK data protection law applies to them. From 5 February 2026, the Data (Use and Access) Act 2025 replaced Article 22 of the UK GDPR with new Articles 22A to 22D.
The new articles allow solely automated decisions with significant effects on ordinary personal data, provided safeguards are in place. People must be told about the decision and be able to make representations. They must also be able to obtain human review and contest the outcome, while decisions using special category data remain more tightly restricted.
In practice, an AI alert about an employee should trigger an investigation by a person who reviews the evidence before any action. Organisations planning anything more automated should take legal advice first.
The Cyber Security and Resilience Bill and NIS2 in Ireland
The UK’s Cyber Security and Resilience Bill will update the NIS Regulations 2018 and bring managed service providers and data centres into scope. It passed the House of Commons in June 2026, and Lords Report Stage is scheduled for 26 October 2026. Royal Assent is expected between late 2026 and spring 2027, with most duties arriving later through secondary legislation.
The Bill proposes an initial incident report within 24 hours and a full report within 72 hours. Its higher band of penalties reaches £17 million or 4 per cent of global annual turnover, whichever is greater. Peers raised the Bill’s silence on AI during its Lords Second Reading in July 2026.
Ireland has still not transposed the EU’s NIS2 Directive, which was due by 17 October 2024. On 8 July 2026, the European Commission referred Ireland to the Court of Justice of the EU over the delay. Ireland’s National Cyber Security Centre published governance guidance for company boards a day earlier, and in-scope Irish firms can use it to prepare now.
Questions to Ask Before Buying an AI Security Tool
Many security products now carry an AI label, and the claims are hard to test from a brochure. The questions below help separate artificial intelligence defence tools that can explain their decisions from those that cannot. Ask them during procurement and keep the answers on file.
- Which tasks does the model perform alone, and can we change those limits ourselves?
- How does the tool explain why it flagged an event, in terms an analyst can check?
- How often is the model retrained, and on whose data?
- Is any of our data used to train models for other customers, and where is it stored?
- What false positive rate should we expect in the first three months?
- How does the product protect its own AI components against prompt injection and data poisoning?
- Does the supplier follow the UK Code of Practice for the Cyber Security of AI or ETSI EN 304 223?
- What happens to our protection if the AI features fail or are switched off?
A supplier that claims its product stops every attack, or cannot answer the second question, deserves closer scrutiny. If you are reviewing protection against ransomware in particular, ask the supplier to show how its tool performed during a recent real incident.
Frequently Asked Questions
These answers cover common questions about artificial intelligence defence tools for organisations. The sections above give fuller detail on each point.
How Does Artificial Intelligence Strengthen Cyber Defence?
AI learns what normal activity looks like and flags departures from it, which catches attacks with no known signature. It also filters phishing and can contain simple threats automatically, while newer tools search software for unknown flaws.
What Is the Difference Between AI for Cyber Defence and Securing AI?
AI for cyber defence uses models to protect ordinary systems such as networks, laptops and user accounts. Securing AI means protecting the models themselves from attacks such as prompt injection and data poisoning. Any organisation that deploys its own AI tools needs to plan for both.
Can Artificial Intelligence Defence Work Without Human Oversight?
It can handle low-risk actions alone, such as quarantining an email or resetting a single password. Decisions that could disrupt critical systems or affect an employee should still go to a person. The UK Code of Practice for the Cyber Security of AI includes a principle on human responsibility for AI systems.
Do UK Data Protection Rules Apply to AI Monitoring of Staff?
UK data protection law applies because behaviour analytics processes personal data about employees. Since 5 February 2026, Articles 22A to 22D of the UK GDPR permit significant automated decisions only with safeguards, including human review on request. Having a person review each alert before any action is a sensible starting point.
Can Attackers Fool AI Security Tools?
Attackers can alter malware slightly so that a classifier labels it safe, or poison training data so that a model ignores certain activity. Tools built on large language models also face prompt injection, which the NCSC says may never be fully mitigated. Layered defences and human review limit the damage when one model is fooled.
Where Should a Small Organisation Start With AI Security?
Start with the AI features already in your email filtering and endpoint protection, and check that they are switched on and monitored. Then decide which automated actions may run without approval, or ask a managed security provider to run the tools for you.