AI in Cyber Defense

A school district's network logs millions of events a day: every sign-in, every connection, every file opened, every name looked up. On a bad day, a few of them are an adversary's work. The figure follows one school day for a district whose monitoring tool uses AI to look for them.
A funnel titled One school day on the district network (not to scale), with four tiers from widest to narrowest. 9,400,000 events logged: sign-ins, connections, file opens, lookups. 2,100 flagged as unusual by the AI-powered tool. 35 rated likely malicious, sent to the analyst as alerts. 3 real problems, confirmed by the analyst.
One school day on a district network, from logged events to real problems.
At one second each, how long would one person need to read the day's 9.4 million events?
One person would need roughly 109 days, reading without sleep, for a single day's events. The district's one analyst reads 35 alerts instead, and three of them turn out to be real.
The narrowing in the middle of the funnel is the AI tool's work, and it usually takes two passes. From months of the district's past events, the tool has a picture of an ordinary school day: which printers get jobs at what hour, which machines talk to which servers, how much data flows overnight. Events that don't fit are flagged as unusual. A second model, trained on examples of real attacks and of harmless oddities, then rates how likely each unusual event is to be malicious. Each rating takes a fraction of a second.

Alerts at Target

Target began installing a 1.6 million dollar system from the security company FireEye about six months before the 2013 holiday shopping season. It ran suspicious files in a sealed-off test computer to see whether they behaved like malware, software built to do harm. On November 30 the system raised an alert. Target's security team in Bangalore, India, saw it and passed it to the security center at headquarters in Minneapolis. More alerts came on December 2, and those were passed on too. The team in Minneapolis looked at them and decided they needed no immediate follow-up. The system could also delete malware on its own, but that setting had been turned off.
Downtown office towers before sunrise, with lit windows against a deep blue sky. The tower in the center has a band of bright green light across its top floors, and a sign reading Hyatt Regency glows on a lower building in front of it.
Target Plaza South, the tower with green light on its top floors, is Target's corporate headquarters in downtown Minneapolis. The alerts from Bangalore were passed to the security center at headquarters. Photo: Tony Webster, CC BY 2.0, via Wikimedia Commons.
Other malware was already collecting the card numbers swiped at Target's registers. The files FireEye flagged were there to carry those numbers out of Target's network. Card numbers had been leaving for ten days when the U.S. Department of Justice told Target about the theft on December 12. In all, about 40 million were taken. The detection system had flagged the attack, so look for the step that failed.
The people who got the alerts chose to wait, so the step that failed was the response. An alert is worth only what someone, or something, does with it. The alerts carried a generic name, and a report written for the chairman of a Senate committee suggested the staff may have taken them for false alarms. It concluded that Target had likely missed a number of chances to stop the attackers. Target announced the breach on December 19. Its chief executive resigned the following May, and in 2017 the company paid 18.5 million dollars to settle with 47 states and the District of Columbia.
Target, 2013. Nov 30: first alert. Dec 2: more alerts; no follow-up. From Dec 2 to Dec 15: card numbers leaving. Dec 12: Justice Dept. tells Target. Dec 19: Target announces the breach.
Target's alerts and the theft on one timeline, November 28 to December 21, 2013. Target had removed most of the malware by December 15.
Target's system wasn't AI. It was automated detection from before AI tools were common, but it had the same two ways to respond. It sent alerts to people, and it could have deleted the malware itself.

Reviewing settings and code

The same kind of tool can work before anything goes wrong, by reading a district's settings and code and suggesting changes. Each suggestion should go to a person who knows the system before it is used. The settings include those of the district's firewall, the equipment that decides which traffic may enter or leave its network.
The third kind of suggestion is aimed at the monitoring tool itself, the one that sorted the district's 9.4 million events.
The district's tool suggests this rule for its detection system.
Alert whenever one device contacts more than 50 other devices within a minute.
A detection engineer, the person who writes and tunes those rules, would turn it down. Why?
The rule looks safe, since no ordinary laptop contacts 50 devices in a minute, so it won't raise false alarms, but it is easy to slip under. Malware on a student laptop that reaches 40 devices a minute, or a few hundred spread over an hour, never sets it off. Before adding anything, the engineer would check how attacks have spread on networks like the district's, then set the count and the time window to catch that.

Big Sleep

Big Sleep is an AI agent, a program that works through a task in steps on its own. Two Google teams, Project Zero and DeepMind, built it to read and test program code, looking for security flaws. Its first find, late in 2024, was a flaw in SQLite, a small database program built into phones, web browsers, and countless other programs. The flaw was in code that hadn't been released yet, so it was fixed before anyone could use it. That is the code analysis described above, and Google keeps a person in the loop: someone on its team confirms each flaw Big Sleep finds before it is reported to the program's developers.
Google said in July 2025 that its threat intelligence team had seen signs that attackers were preparing to use a flaw nobody else knew about, but couldn't yet tell which flaw it was. Using those clues, Big Sleep found it, another bug in SQLite. Google reported it, and the SQLite developers released a fix in late June. Google said it believed this was the first time an AI agent had directly stopped an attempt to exploit a flaw.
Sources: Bloomberg Businessweek, "Missed Alarms and 40 Million Stolen Credit Card Numbers: How Target Blew It" (March 13, 2014); U.S. Senate Committee on Commerce, Science, and Transportation, majority staff report for Chairman Rockefeller, "A 'Kill Chain' Analysis of the 2013 Target Data Breach" (March 26, 2014); Google Project Zero, "From Naptime to Big Sleep: Using Large Language Models To Catch Vulnerabilities In Real-World Code" (November 1, 2024); Kent Walker, "A summer of security: empowering cyber defenders with AI," Google (July 15, 2025); TechCrunch, "Google says its AI-based bug hunter found 20 security vulnerabilities" (August 4, 2025).