All guides

    Guide

    How do I defend my organization against intrusions run by autonomous AI agents?

    Updated

    Short answer

    Use the controls you already know, but tune them for machine speed. Unit 42 documented an AI-assisted intrusion that packed about two weeks of human operator work into less than 10 hours. Scope and shorten credentials, protect your pipelines with multi-party review, contain everything at once, and hunt for behavior instead of single tools. Then apply the same checks to the coding agents inside your company, because they hold your developers' credentials.

    What's actually changed#

    Attacker agents mainly change the schedule. Unit 42 investigated an AI-assisted intrusion where work that would normally take human operators around two weeks took less than 10 hours and used more than 50 MITRE ATT&CK techniques.

    Most detection and response is tuned to a human pace. Humans get tired, sleep and follow one thread at a time. An agent doesn't do any of that.

    What the public cases show#

    Three recent reports from security researchers. Each is their reading of an investigation or of exposed attacker infrastructure, so treat the details as theirs.

    • Unit 42 (Palo Alto Networks): about two weeks of operator work done in under 10 hours, across 50+ ATT&CK techniques. Their recommendations shape the checklist below.
    • A jailbroken agent that kept going: eSecurityPlanet covered an exposed attacker workspace with more than two weeks of activity, where the agent kept hacking after antivirus blocked its tools. The line to remember: "Stopping one malicious tool may interrupt an individual action without ending the intrusion."
    • Silent Lynx: CloudSEK found an exposed server where the operator "runs much of the work through Hermes". The agent did reconnaissance, collection and log cleanup, "with destructive commands pre-approved."

    That last detail should look familiar. Pre-approved destructive commands are the attacker's version of the "allow, allow, allow" habit developers fall into (Anthropic found people approve 93% of permission prompts).

    Controls that matter, in order#

    Patch what faces the internet. A faster attacker leaves less time between a known flaw and its use. Start with CISA's Known Exploited Vulnerabilities catalog.

    Get secrets out of code and scope what's left. An agent combing repos for tokens never gets bored. Move hard-coded secrets into a secrets manager, use short-lived credentials, and make sure each credential opens one door.

    Protect the pipeline. Unit 42 recommends multi-party review and immutable branch protection on DevOps pipelines. A single stolen developer token shouldn't be enough to change infrastructure code.

    Treat AI as core infrastructure. That's Unit 42's phrase. Inventory model endpoints, AI API keys, MCP servers and tool integrations as you would any privileged system, then log their use.

    Contain as one move. Unit 42 calls for synchronized containment. Revoke credentials, end OAuth sessions, freeze pipelines and isolate cloud accounts together, because cutting one route leaves the agent the rest.

    Hunt for behavioral loops. This is Unit 42's advice too. Look for a machine working a problem: fast repeated retries and many parallel attempts from one identity, not just one known-bad file.

    What signature-based tools miss#

    In the jailbroken-agent case, endpoint protection did its job and blocked the tools. The agent kept going. Blocking a file stops one action, but the agent is working toward a goal and will try another route.

    So pair endpoint tools with scoped credentials, behavior hunting and coordinated containment. Keep logs somewhere the attacker's credentials can't reach, since the Silent Lynx agent's job included log cleanup. See whether a coding agent can delete backups and logs.

    Your own agents carry the same reach#

    Coding agents on your developer laptops already hold developer credentials, read untrusted content (repo files, tickets, web pages, dependencies) and run shell commands. If someone steers one with injected content, they get all of that access.

    Start with the basics: a sandbox, short-lived scoped credentials, controlled egress, and agent config files set to read-only. Then read how to govern coding agents in an enterprise and Harden's threat model for coding agents.

    Where Harden fits#

    Harden Agentic Integrity Foundation (AIF) covers the coding agents on your own laptops. It runs outside the agent, at the agent's pre-execution hook, and checks every command, file edit and push against the session's intent before it runs. Decisions are made locally in milliseconds, under one policy across agents, and it starts watch-only.

    It's a layer, not a perimeter. It doesn't replace least privilege, scoped credentials or egress policy, and it doesn't defend your internet-facing servers.

    A decision rule#

    Ask two questions about every credential and every agent. What's the most it can reach? Who finds out when it does something unusual?

    If you can't answer both, fix that next.

    FAQ

    Related questions

    What's different about intrusions run by AI agents?

    Mostly speed and persistence. Unit 42 described about two weeks of human operator work done in less than 10 hours, across more than 50 MITRE ATT&CK techniques. Plan your response for that pace.

    Will endpoint protection stop an AI agent attacker?

    It can block individual tools, but in one reported case a jailbroken agent kept hacking after antivirus blocked them. Pair endpoint protection with scoped credentials, behavior hunting and coordinated containment.

    What should I contain first during an agent-driven intrusion?

    Contain everything at once. Unit 42 recommends synchronized containment, so revoke credentials, end OAuth sessions, freeze pipelines and isolate cloud accounts together instead of one at a time.

    Does this cover the coding agents my own developers run?

    Partly. The same hygiene applies, but your own agents also need each action checked before it runs, because they act with developer credentials. A pre-execution check on the developer machine covers that.

    Sources

    1. An AI-Assisted Cyber Attack: Inside a Unit 42 Investigation
    2. Jailbroken DeepSeek Agent Kept Hacking After Antivirus Blocked Its Tools
    3. Off the Rails: Inside an Exposed Silent Lynx Server

    Start free at harden.run

    Full Enterprise access, free for 60 days: unlimited developers, custom policies, centralized visibility, no commitment.