AI Agents for Cybersecurity: What They Do and Where Humans Decide
An AI agent for cybersecurity clears the alert noise, gathers evidence and drafts reports, while people keep the decisions that can stop work or shut systems down.
On this page
Short answer
An AI agent for cybersecurity is software that works security tasks end to end: it reads alerts, gathers evidence from logs and systems, and takes routine actions such as isolating a device or drafting a report. People keep the decisions that carry real risk, such as shutting down a production system or judging a suspected insider.
What is an AI agent for cybersecurity?
An AI agent for cybersecurity is software that works security tasks end to end: it reads alerts, gathers evidence from logs and systems, decides what to do next, and takes the routine actions itself, while a person handles the decisions that carry real risk.
Unlike a dashboard that only shows alerts, the agent acts. It can query a firewall, check a user's recent activity, isolate a device, or draft an incident report, following rules a security team wrote in advance. Each action is logged, so the team can see exactly what the agent did and why.
The agent is not a replacement for the team. It clears the repetitive work — the hundreds of alerts that turn out to be nothing — so analysts spend their time on the few cases that need judgement. The table below shows the jobs that suit an agent best.
| Job | What the agent does | Human role |
|---|---|---|
| Alert triage | Sorts alerts by risk and clears false alarms | Reviews the cases the agent flags as real |
| Investigation | Pulls logs and timelines for an incident | Decides what the evidence means |
| Containment | Isolates a device or blocks an address | Approves containment of important systems |
| Patching | Finds missing patches and drafts the rollout | Approves changes to production systems |
| Reporting | Drafts incident reports from the logs | Checks and signs the report |
For the broader defender picture, AI against cyber attacks covers how machine learning detects and blocks attacks.
What security jobs suit an agent best?
The jobs that suit an agent best are high-volume, rule-based and reversible: sorting alerts, gathering evidence, checking patch status and drafting reports. These jobs follow patterns the team can write down, and a mistake is usually easy to undo.
Alert triage is the usual first job. A typical security team receives far more alerts than it can read, and most are false alarms or low-risk noise. An agent can check each alert against known patterns, look up the user and device involved, and clear the ones that match a benign explanation, leaving a short list for analysts.
Investigation suits agents too, because it is mostly gathering: pulling login records, network flows, file changes and email headers into one timeline. The agent does the fetching; the analyst reads the timeline and decides what happened.
Jobs that suit agents poorly are the ones needing judgement about people or business risk: deciding whether to shut down a production system, judging a suspicious insider, or negotiating with a vendor about a vulnerability. Those stay with people.
How does an agent investigate an alert?
An agent investigates an alert by following a playbook: a written sequence of checks that the security team defined in advance. The playbook says which sources to query, in what order, and what counts as evidence for or against a real attack.
A typical investigation starts with the alert itself, then pulls the user's recent logins, the device's patch state, network connections from the last hour, and any files the device touched. The agent compares what it finds with known attack patterns and with the normal behaviour of that user and device.
The agent then writes up what it found: a timeline, the evidence for and against an attack, and a recommended next step. The write-up matters as much as the checks, because the analyst who picks up the case needs to trust the work without redoing it.
If the evidence is thin or contradictory, the agent should say so and hand the case to a person, rather than guessing. A clear 'I cannot tell' is worth more than a confident wrong answer, and the playbook should make that the default.
What can an agent contain on its own, and what needs approval?
An agent can contain low-risk threats on its own when the playbook allows it: isolating a single workstation, blocking a known malicious address, or disabling a compromised account that is not used by any critical service. These actions are reversible and affect one machine or account, not the whole business.
Anything wider needs approval. Shutting down a server, blocking a whole network segment, or disabling an account used by a production service can stop work for many people, so a person must approve it first. The agent can prepare the action and explain why it is needed, but it should not take it alone.
Most teams use approval tiers. Tier one actions run automatically, tier two need one analyst to approve, and tier three need a senior person or the incident lead. The tiers are written down before the agent goes live, not decided during an incident.
Every containment action is logged with its reason, so the team can review it later and roll it back if it was wrong. If an agent isolates a device by mistake, the fix should take minutes, not hours. See generative AI in cybersecurity for how language models help with triage and incident response.
How do you keep a security agent from causing damage?
You keep a security agent from causing damage by limiting what it can reach, what it can change, and how far it can act without a person. The agent gets its own account with narrow permissions, not a shared admin account, and every action it takes is logged.
Permissions should follow the same least-privilege rule as for people: the agent can read logs and query systems, but write access is limited to the specific actions in its playbooks. It cannot change firewall rules it was not told about, and it cannot touch systems outside its scope.
A kill switch matters. One person should be able to stop all agents at once, and the agents should stop cleanly, leaving systems in a known state. The team should practise using it, because a switch nobody has tested is not a control.
Finally, watch the agent itself. Its logs should be reviewed weekly, its decisions sampled and checked, and its permissions reviewed whenever a playbook changes. An agent with stale permissions is a risk, not a helper. For the permission model in detail, how to secure AI agents covers scoped access and logging.
How do you start using a cybersecurity agent in five steps?
You start using a cybersecurity agent by giving it one narrow job, proving it handles that job well, and only then widening what it can do. A careful start looks like this:
- Pick one job. Alert triage is the usual first choice, because the work is repetitive and the result is easy to check.
- Write the playbook. The checks, the order, the evidence to gather and the point where the agent hands over to a person.
- Build an evaluation set. A sample of past alerts with known outcomes, so you can measure whether the agent clears the right ones.
- Run it in shadow mode. Let the agent work through real alerts for a few weeks without taking action, and compare its decisions with the analysts' decisions.
- Turn on tier-one actions. Only the reversible, low-risk actions, with logging and a kill switch in place.
Keep the agent's scope small for the first months. A team that trusts its agent on triage will widen it to investigation; a team that starts with containment usually regrets it. For the security foundations behind this, security for AI covers the controls that apply to AI systems generally.
Example (hypothetical): a security team clears its alert backlog
Example (hypothetical): a security team of four analysts faces 300 alerts a day, and each alert takes about 10 minutes to read and clear, which is 300 x 10 = 3,000 minutes, or 50 hours a day of work for a team that has 4 x 8 = 32 hours a day between them. The backlog grows every week.
The team gives an agent one job: triage. The agent checks each alert against known patterns and the history of the user and device, clears the ones that match a benign explanation, and passes the rest to the analysts with a short summary of what it found.
After a month of shadow running, the record shows the agent cleared 210 of the 300 daily alerts, and the analysts agreed with 204 of those, a 97% agreement rate. The 90 alerts that reach the analysts each take about 15 minutes with the agent's summary, which is 90 x 15 = 1,350 minutes, or 22.5 hours a day. The team now fits inside its 32-hour day, with time left for real investigations.
The team keeps the agent on triage only. Containment still needs a person's approval, and every week an analyst samples 20 of the agent's cleared alerts to check the agreement rate has not slipped.
What are the common mistakes?
The most common mistakes are giving the agent too much power too soon, skipping the evaluation set, and trusting its summaries without checking them.
- Too much power, too soon. An agent that can isolate servers or block networks on day one will eventually take an action the team regrets. Start with triage and read-only work.
- No evaluation set. Without past alerts with known outcomes, you cannot tell whether the agent is improving or just confident.
- Blind trust in summaries. An agent's write-up can sound convincing while missing the key fact. Analysts should spot-check the evidence, not just read the conclusion.
- Shared admin accounts. An agent running as an admin can do anything. Give it its own account with narrow permissions.
- No kill switch. If nobody can stop the agents quickly, a bad playbook can cause more damage than the attack it was fighting.
- Stale playbooks. Attack patterns change, and a playbook written a year ago will miss new ones. Review playbooks every quarter.
Start narrow, measure the agent against real alerts, and widen its job only when the record supports it. If you need help designing the guardrails, AI security covers the patterns for protecting LLM apps and agents.
Key takeaways
- Agents clear the repetitive alert work; analysts keep the judgement calls
- Investigations follow a written playbook, and the agent's write-up must show its evidence
- Low-risk containment can run alone; anything wider needs a person's approval
- Narrow permissions, full logging and a tested kill switch keep the agent safe
- Start with triage in shadow mode and widen scope only when the record supports it
Frequently asked questions
Can an AI agent replace a security analyst?
No. An agent handles repetitive work such as triage, evidence gathering and report drafting, but it cannot judge ambiguous cases, weigh business risk or take responsibility for a decision. Analysts spend their time on the cases the agent cannot resolve.
What is the first job to give a cybersecurity agent?
Alert triage. It is high-volume, rule-based and easy to measure: run the agent in shadow mode against past alerts and check whether it clears the right ones. Containment and patching come later, once the team trusts the agent's record.
How do you stop an agent from isolating the wrong machine?
Limit its permissions to the actions in its playbooks, require approval for anything beyond a single device or account, and keep a kill switch one person can use. Sample its decisions weekly so a drift in behaviour is caught early.
What data does a cybersecurity agent need?
Alerts, logs, asset and identity records, and the playbooks that say what to check and when to hand over. The agent also needs to know the normal behaviour of users and devices, or it cannot tell an anomaly from routine work.
How do you measure whether a security agent is working?
Track the share of alerts it clears correctly, the time analysts save, and the rate at which its decisions are overturned on review. Run it against a fixed set of past alerts so changes in its behaviour are comparable over time.
Do AI agents make phishing harder to stop?
They can help on both sides. Attackers use AI to write convincing messages, but defenders use agents to check links, headers and sender history at scale. The advantage goes to the side with better data and clearer playbooks.