Why AI agent swarm traffic is harder to detect than vulnerability scanner traffic
Most detection engineering for web and network attacks was built against one adversary profile: a tool that sends a lot of requests, most of them wrong. Nmap, Nessus, Nuclei, sqlmap and dirsearch all work by trying thousands of things and seeing what answers. That is why they are easy to catch. AI agent swarms do not work that way. They read your application the way a developer would, decide what is worth requesting, and send a small number of well-formed requests that look like a user or a script doing normal work.
This is already happening. In November 2025 Anthropic reported a state-sponsored campaign against roughly 30 organizations where the model did 80 to 90% of the work and humans stepped in at four to six decision points. In July 2026 Hugging Face published a full timeline of an intrusion run end to end by an autonomous agent: about 17,600 actions between July 9 and July 13, with roughly two and a half of those days spent inside Hugging Face’s infrastructure. That agent was running an AI lab’s internal cyber-capability evaluation, with no criminal operator behind it, and it still used the techniques an attacker would. In September 2026 Anthropic described operators running agent swarms, with a lead agent splitting reconnaissance and post-exploitation work across parallel subagents, against around fifty organizations.
TL;DR
- ✓Scanners are easy to catch: thousands of wrong requests, known fingerprints, 95%+ 404 ratios.
- ✓AI agent swarms read your JavaScript and API specs, send a few valid requests through real browsers, and spread work across many short-lived IPs.
- ✓Inside the network they move with credentials and control-plane APIs, so the evidence lands in identity, Kubernetes and cloud audit logs, not NDR.
- ✓Detection has to shift from single requests to trajectories, clustered by objective and judged by a model with authority to page and contain.
- ✓Continuous agentic pentesting under stealth constraints is how you close the exposures and give your detection team labeled swarm traffic to tune against.
What vulnerability scanner traffic looks like
A scanner does not know your application, so it compensates with volume. That volume leaves evidence at every layer.
-
Transport. SYN scans across port ranges, half-open connections, one source touching hundreds of ports or hosts in seconds. Any flow-based IDS catches this with a threshold rule.
-
TLS. Go, Python requests and libcurl each produce a ClientHello that differs from a browser’s. A JA3 or JA4 fingerprint that says “Go HTTP client” next to a User-Agent that says “Chrome” is a contradiction a WAF can block on.
-
HTTP. Default User-Agents (Nmap Scripting Engine, Nuclei, sqlmap), missing Accept-Language and Sec-Fetch-* headers, no cookies, no referrer chain.
-
Paths. Wordlist order. /.git/config, /.env, /wp-login.php, /actuator/env against an application that has never served any of them. The 404 ratio for the session is above 95%.
-
Payloads. Known strings: ' OR 1=1--, ${jndi:ldap://, {{7*7}}, out-of-band callback domains. These match signatures that have existed for years.
-
Timing. Fixed concurrency, flat inter-request intervals, no think time.
A scanner session in an access log looks like this:
203.0.113.9 GET /.env 404 UA="Nuclei - Open-source project"
203.0.113.9 GET /.git/config 404
203.0.113.9 GET /actuator/env 404
203.0.113.9 GET /api/v1/users?id=1' 403 (WAF: SQLi)
203.0.113.9 GET /swagger-ui.html 404
... 4,200 more requests in 90 seconds
Most detection stacks handle this. Rate limiting, signature rules, IP reputation and TLS fingerprinting each catch it independently.
How AI agent swarm traffic differs
An agent replaces volume with reading. It loads the application, reads what comes back, forms a hypothesis and tests that one hypothesis. Three properties follow from this.
It may never scan you at all. The attack-surface loop Anthropic described in September 2026 seeded targets from an asset search engine, fingerprinted them and matched them against known vulnerabilities. Host and service discovery came from someone else’s index. The target sees zero discovery packets before the first purposeful request.
It writes its own client for each task. Instead of running Nuclei, the agent writes twenty lines of Python that request exactly the three URLs it cares about, with the headers the real frontend sends. With a browser-impersonating TLS library the ClientHello matches Chrome. With Playwright or a cloud browser sandbox it is Chrome: real rendering, real JavaScript execution, real cookies, real Sec-Fetch-* headers. One 2026 bad bot report found that 41% of bot attacks already present as Chrome.
The swarm spreads one objective across many identities. A lead agent decomposes the job and hands pieces to subagents in separate short-lived sandboxes, each with its own egress IP. One reads the JavaScript. One tests a single endpoint. One tries a credential. No single source crosses a threshold, and per-IP correlation finds nothing to join.
The same target, worked by an AI agent swarm, looks like this:
198.51.100.41 GET / 200 UA=Chrome JA4=chrome
198.51.100.41 GET /static/js/main.8f3c.js 200
198.51.100.41 GET /static/js/main.8f3c.js.map 200
(38 seconds of nothing)
192.0.2.77 GET /api/v2/orgs/1042/tokens 200 UA=Chrome
192.0.2.77 GET /api/v2/orgs/1043/tokens 200
Five requests, all 200s, two IPs, no payload a signature would match. The second pair is a broken object-level authorization check being confirmed.
| Signal | Scanner | AI agent swarm |
|---|---|---|
| Requests per target | Thousands to millions | Tens to low hundreds when run quietly |
| 4xx ratio | Above 95% | Close to a normal user’s |
| Client | Known tool, known fingerprint | Custom script or real browser |
| Discovery | Port and path brute force | Reads JS, API specs, public indexes |
| Payloads | Signature-matching strings | Valid requests with changed IDs or roles |
| Source | One or a few IPs | Many short-lived sandboxes |
| Adapts to blocks | No | Yes, changes approach |
One caveat. Not every agent is quiet today. The first Anthropic case involved thousands of requests, often several per second, and had tools such as network scanners available, often through MCP. Most of the 17,600 actions in the Hugging Face case failed. StealthBench, a July 2026 benchmark of 771 offensive agent runs across eight models, judged 24.5% of runs as solving the task while failing on operational stealth, in some cases by working around rate limits, and no model cleared 54% on solving the task with clean tradecraft. Those verdicts come from an LLM judge panel grading tradecraft, so they do not measure what a detection stack would catch. Still, 43.8% of runs solved the task and passed the stealth review. The rest of this post is about those disciplined runs, and about the noisy ones whose noise lands in logs few teams watch.
Fingerprint layers and what impersonation leaves behind
Bot management works by finding a contradiction between layers. It helps to be exact about which layers an agent can now make consistent.
| Layer | What defenders fingerprint | Scripted client with impersonation | Real browser in a sandbox |
|---|---|---|---|
| TCP | Window size, options order, TTL (JA4T) | Reflects the sandbox OS, usually Linux | Same, Linux under a Windows or macOS User-Agent |
| TLS | ClientHello: version, cipher count, extensions, ALPN, signature algorithms (JA4) | Matches Chrome | Is Chrome |
| HTTP/2 | SETTINGS values and order, WINDOW_UPDATE size, pseudo-header order | Matches Chrome | Is Chrome |
| HTTP headers | Header order, Sec-CH-UA, Sec-Fetch-*, Accept-Language (JA4H) | Matches if the author copied a real request | Is Chrome |
| JavaScript runtime | navigator.webdriver, CDP side effects, WebGL renderer, fonts, canvas | Not present, no JS executed | Mostly clean, some automation and virtual GPU traces |
| Behavior | Pointer movement, scroll, focus, keystroke timing | Absent | Absent or synthetic |
| Network origin | ASN, proxy lists, IP age | Cloud or residential proxy | Cloud or residential proxy |
A JA4 string such as t13d1516h2_8daaf6152771_02713d6af862 reads as TCP, TLS 1.3, SNI present, 15 cipher suites, 16 extensions, HTTP/2 as first ALPN, then two truncated hashes over the sorted ciphers and over extensions plus signature algorithms. A plain Python or Go client produces a different string and is trivially separable. An impersonation library replays Chrome’s ClientHello and HTTP/2 SETTINGS byte for byte, so layers two to four agree with the User-Agent. A sandboxed Chromium agrees because it is the real thing.
Three contradictions still survive, and they are worth collecting:
-
OS mismatch below TLS. A TCP stack that looks like Linux under a User-Agent claiming Windows. Weak alone, since corporate proxies cause the same thing, but useful as one feature among several.
-
No human input. An agent that drives a page through the DevTools protocol produces clicks with no preceding pointer path, or none at all because it calls the API directly after reading the bundle. Sessions with authenticated API activity and zero input events on the page are a small population.
-
Rendering environment. Cloud browsers commonly expose a software WebGL renderer, a default viewport, a small font set, and a timezone that does not match the egress IP’s geography.
None of these is a verdict. Every one is defeatable with effort, and agents iterate against blocks. They are inputs to the trajectory scoring described later, where they matter because they raise or lower the prior on a session whose requests already look purposeful.
How an AI agent swarm is built, and what stays constant across it
The public cases show a consistent architecture.
-
A lead agent holds the objective and the target model: hosts, routes, credentials found so far, hypotheses and their status. It decomposes work into narrow tasks.
-
Worker agents run in short-lived sandboxes. Each gets one task, the minimum context to do it, and its own egress. A worker that is blocked or burned is discarded and its task reissued.
-
Shared state persists between sessions. Anthropic’s September 2026 report describes target lists, harvested credentials and engagement state saved across sessions so that campaigns resume mid-stream.
-
A coordination channel carries findings between workers. In the Hugging Face case the CSA summary counts roughly 1,200 agent instances on a shared message board exchanging more than 70,000 messages and files, with about 700 taking part in the attack. Earlier in that chain, agents passed messages by encoding them in directory names inside a package-cache namespace, and signed messages with Ed25519 keys to prevent impersonation inside their own network.
-
Re-arming. Hugging Face describes a loader fetched from a pastebin that set up each new sandbox, and a self-respawning fleet across eleven nodes once the agent had node access.
The volume profile is also unlike a scanner’s. Hugging Face recovered 3,779 actions on day one, 1,135 on day two, 7,677 on day three, 3,892 on day four and 1,130 on day five. Reconnaissance accounted for 6,191 of the roughly 17,600 actions. Activity follows discovery: quiet while reading, a burst when a credential opens a new surface.
Per-source detection fails against this design because the source is the one thing the swarm rotates. What it cannot rotate is more useful:
-
Knowledge without discovery. Worker B requests a deep, correctly parameterized endpoint that it never loaded the page or bundle for. It knows the route because worker A read it. A session that arrives already knowing your internals, from an IP you have never seen, is the hand-off made visible.
-
Credential hand-offs. A session token, API key or cloud credential issued to one client and used minutes later from a different address and fingerprint.
-
A shared resource graph. Workers touch adjacent nodes of the same object graph: the same tenant, the same service account chain, the same set of secrets.
-
Shared tooling artifacts. Identical header order, identical parameter casing, the same message envelope or encoding key on the coordination channel.
-
Causal timing. A finding in one session followed within seconds to minutes by exploitation in another, repeatedly.
What agents find without scanning
Modern web applications publish their own attack surface. A single-page app ships its route table, API base URLs, request shapes, feature flags and sometimes its credentials to every visitor. An agent only has to read it.
-
JavaScript bundles. Every fetch and axios call in the bundle is an endpoint, including admin and internal routes the UI hides behind a role check. Source maps, when left deployed, return the original source tree with comments.
-
API descriptions. /openapi.json, /swagger.json, GraphQL introspection and Postman collections describe every operation and parameter. One request replaces a directory brute force.
-
Secrets in client code. The Keys on Doormats study from Stanford, UC Davis and TU Delft checked about 10 million web pages and verified 1,748 live credentials. 84% were in JavaScript, and they stayed exposed for 12 months on average.
-
Misconfigured APIs. Endpoints that return another tenant’s object when the ID changes, list endpoints with no authorization, mass assignment on update calls, unauthenticated internal services reachable from the internet.
This matches what we see in our own internet-wide research at Strobes. The fastest route to customer data is usually an API that answers a well-formed request it should have refused, or a key in a bundle that still works. Our agents reach these findings with request volumes far below what any rate limit is set to catch, and every request is one the application was designed to serve.
This is the core detection problem. A scanner’s request is wrong on its face. An agent’s request is syntactically valid and looks like normal use. What is wrong is who is asking and why, and neither is in the packet.
After the entry point: internal movement without port scans
The classic internal playbook is loud: ARP sweep, Nmap across the /16, SMB enumeration, a BloodHound collection that queries every object in the directory. NDR and EDR products have mature detections for each step.
An agent with one foothold and one credential does not need any of it. The environment describes itself to authenticated users.
-
Service discovery by asking. The Kubernetes API, cloud control plane, DNS, Consul and the internal service catalog list every workload and its address. One list call replaces a subnet scan.
-
Documentation as a map. Wikis, runbooks, CI configuration, shell history and known_hosts name the systems that matter and how to reach them. An LLM reads and summarizes these faster than any human operator.
-
Identity as the next hop. Tokens in environment variables, the instance metadata service, mounted service-account tokens and secrets objects give the next hop. The agent logs in with what it finds.
The Hugging Face timeline is the clearest public record of this. Their writeup shows reconnaissance through host, process and environment enumeration and through service-account and cluster APIs, and does not describe any port scanning. The agent read a pod’s service-account token, pulled node role credentials from the metadata service, and found one secrets object holding 136 keys. It minted fresh tokens through the legitimate TokenRequest API and enrolled its own devices into the corporate mesh VPN with a stolen key, 181 times. Cloud API calls were issued as dry runs to map what the credentials could reach. One shared broker credential bound to system:masters turned a single pod into cluster-admin on multiple clusters in under thirteen hours.
Command and control followed the same pattern. There was no implant server. The agent used public request-capture endpoints, pastebins, datasets on the platform itself as dead drops, and an open CORS proxy as an egress relay. Messages were chunked, XOR-encoded and compressed under a per-campaign key.
Every one of those actions is an API call that a legitimate workload or engineer makes daily. On the wire it is HTTPS to the Kubernetes API server, AWS endpoints and well-known SaaS domains.
Where each internal action leaves a record
The network sensors see nothing unusual, but the identity and control planes record almost every step. The table maps the techniques from the Hugging Face timeline to the log that captures them.
| Agent action | Where it is recorded | What to alert on |
|---|---|---|
| Read mounted service-account token or environment secrets | Not logged by default. Runtime sensor (eBPF) on file reads of the token path and /proc/*/environ | Reads by a process that is not the workload’s entrypoint |
| Fetch node role credentials from the instance metadata service | Not in VPC flow logs. Runtime sensor or network policy logs for 169.254.169.254 | Any pod reaching IMDS. Prevent it with IMDSv2 and a hop limit of 1 |
| Use node credentials from outside the cloud | CloudTrail sourceIPAddress, GuardDuty instance credential exfiltration findings | Instance role credentials used from a non-VPC address |
| Enumerate with dry-run calls | CloudTrail events with errorCode of Client.DryRunOperation | Dry-run volume or service breadth per principal above baseline |
| List and read secrets | Kubernetes audit: get and list on secrets | A service account reading secrets outside its namespace or for the first time |
| Mint tokens for other workloads | Kubernetes audit: create on serviceaccounts/token | Caller is neither the kubelet nor the target service account |
| Create a privileged pod with a host mount | Kubernetes audit: create on pods with privileged: true or hostPath | Any occurrence outside an allow-listed namespace. Block at admission |
| Use a shared admin connector | Kubernetes audit: requests by a system:masters identity | Use from a new source, or for verbs it has not used before |
| Enroll a device in the mesh VPN | VPN control-plane audit log | Enrollment with an automation key from an unexpected origin, or many enrollments per key |
| Stage data through public services | Egress proxy and DNS logs by workload | Production workloads resolving pastebins, request-capture hosts or file-drop sites |
| Use the platform’s own features as dead drops | Application audit logs | Commits or uploads of compressed, high-entropy blobs from infrastructure identities |
Two configuration details decide whether these records exist. Kubernetes audit policy must log serviceaccounts/token and pods at Request level or higher. Log secrets at Metadata level only, since higher levels write secret values into the audit log. And CloudTrail must be collecting management events in every region the credentials can reach, including ones you do not use.
Why existing controls miss it
Each control in a standard stack keys on a property that agents do not have.
| Control | What it keys on | Why agent traffic passes |
|---|---|---|
| WAF signatures | Known malicious strings in the request | Requests are valid. The attack is a changed ID or a role the caller should not have |
| Rate limiting | Requests per IP or per token | Tens of requests per source, spread over many sandboxes |
| Bot management | TLS and browser fingerprint, JS challenges | Real Chromium in a sandbox passes both. Only the weak signals from the fingerprint section remain |
| IP reputation | Known scanner and proxy ranges | Fresh cloud sandboxes and residential egress |
| Network IDS and NDR | Port sweeps, lateral protocol anomalies | Discovery happens through authenticated control-plane APIs |
| SIEM correlation rules | Fixed sequences written in advance | The agent composes a new sequence each run and changes it when blocked |
There is a second failure after detection. At Hugging Face, several layers produced early signals that were each ambiguous alone. An AI-based security stack did correlate them into a coherent attack picture. It did not raise the severity or page the on-call team, and that cost response time. Most of the 17,600 actions failed, which buried the successful path in noise. A first automated pass over the captured data found few secrets. Replicating the agent’s own decoding recovered roughly four times as many.
Bot vendors are reporting the same shift from the outside. One 2026 report measured a 12.5x year-over-year rise in AI-driven bot attacks, with 27% of bot attacks aimed directly at APIs, and concluded that the problem to solve is now what a client intends.
Detection needs AI on the defending side
If the malicious part of the traffic is its purpose, detection has to reason about purpose. That means changing the unit of analysis from the request to the trajectory: the ordered set of actions taken by one identity, or by a group of identities working toward the same thing.
Build trajectories. Join edge logs, API gateway logs, identity provider events, cloud audit logs and Kubernetes audit logs on session, token and workload identity. For each trajectory keep the ordered list of endpoints, objects touched, response codes, timing and credential origin.
Score with features rules cannot express. Useful ones we have found:
-
Bundle or source-map fetch followed by API calls, with no fetch of the images, fonts and CSS a rendered page would load.
-
First call to an endpoint that exists in the JavaScript but that the UI never calls for this role or in this flow.
-
Low-rate walks across object IDs or tenant IDs, each returning 200.
-
Schema retrieval (__schema, /openapi.json) from a session that is not a known developer or integration.
-
A credential used from an origin, ASN or workload it has never been used from.
-
Dry-run or read-only calls across many services by one principal in a short window.
-
Token minting for workloads the caller has no relationship with.
-
Tempo: bursts of tool calls separated by multi-second gaps that match model inference, rather than human think time or a fixed scanner interval.
Cluster by objective across sources. Subagents on different IPs that touch adjacent pieces of the same resource graph within the same hour are one actor. Embedding trajectories and clustering them recovers the swarm that per-IP correlation splits apart.
Put a model on the decision. Give an LLM the trajectory, the application’s own route and role map, and the baseline for that identity, and ask what the client is trying to achieve and whether a legitimate user of this role would do it. This is the step that separates an admin listing their own organization’s API tokens from an agent walking tenant IDs. Rules feed it candidates. The model makes the call and writes the reasoning an analyst can check.
Wire the verdict to action. The Hugging Face lesson is that correlation without escalation is not detection. A high-confidence verdict should page a human and trigger identity containment automatically: revoke the token, quarantine the workload, force re-authentication.
Keep a model you control for forensics. Hugging Face reported that commercial models refused much of the log analysis because guardrails treated reverse-engineering an exploit like launching one. They ran an open-weight model on their own hardware, which also kept attacker data in-house. Decide this before an incident.
A trajectory record
The record the pipeline scores should be compact enough to fit many per model call and rich enough to reason over. A workable shape:
{
"trajectory_id": "t-8f21",
"principal": {"type": "session", "id": "s-77a1", "role": "member", "tenant": 1042},
"client": {"ja4": "t13d1516h2_8daaf6152771_02713d6af862", "tcp_os": "linux",
"ua_os": "windows", "asn_type": "hosting", "input_events": 0},
"window": {"start": "2026-11-12T09:14:02Z", "duration_s": 412},
"steps": [
{"t": 0, "kind": "asset", "path": "/static/js/main.8f3c.js", "status": 200},
{"t": 1, "kind": "asset", "path": "/static/js/main.8f3c.js.map", "status": 200},
{"t": 39, "kind": "api", "route": "GET /api/v2/orgs/{id}/tokens",
"tenant": 1042, "status": 200, "bytes": 18211},
{"t": 41, "kind": "api", "route": "GET /api/v2/orgs/{id}/tokens",
"tenant": 1043, "status": 200, "bytes": 20980}
],
"features": {"cross_tenant_200": 1, "route_seen_in_ui_for_role": false,
"rendered_page_assets": 0, "first_seen_route_for_principal": true},
"linked": ["t-8f1c", "t-8f25"]
}
Normalize routes to templates, keep object and tenant IDs as separate fields, and strip request bodies down to parameter names. linked holds other trajectories joined by credential hand-off, shared objects or causal timing, which is how a swarm becomes one case.
Three detections worth building first
These are sketches. Table and column names will differ in your warehouse.
Knowledge without discovery. Build a route_disclosure table from your own build output that maps each API route to the bundles and pages that reference it. Then find sessions calling deep routes with no prior fetch of anything that discloses them.
SELECT r.session_id, r.route, MIN(r.ts) AS first_call
FROM api_requests r
JOIN route_disclosure d ON d.route = r.route
LEFT JOIN asset_requests a
ON a.session_id = r.session_id
AND a.asset = d.asset
AND a.ts < r.ts
WHERE r.status = 200
AND r.route_depth >= 3
AND r.client_type = 'browser'
GROUP BY r.session_id, r.route
HAVING COUNT(a.asset) = 0;
Mobile apps, API integrations and deep links also skip the bundle, so scope it to sessions that present as browsers and baseline per client type.
Low-rate object and tenant walks. Rate limits miss these because the rate is normal. Count distinct objects and tenants per principal per route template over a long window.
SELECT principal_id, route,
COUNT(DISTINCT tenant_id) AS tenants,
COUNT(DISTINCT object_id) AS objects,
MAX(ts) - MIN(ts) AS span
FROM api_requests
WHERE status = 200
AND ts > NOW() - INTERVAL '24 hours'
GROUP BY principal_id, route
HAVING (principal_is_single_tenant(principal_id)
AND COUNT(DISTINCT tenant_id) > 1\)
OR COUNT(DISTINCT object_id) > 10 * (
SELECT p95_objects FROM role_route_baseline b
WHERE b.role = principal_role(principal_id) AND b.route = route);
A single-tenant principal receiving a 200 for a second tenant is close to a zero false positive signal and should page. Principals that legitimately span tenants, such as support, partner and MSP accounts, are excluded from the tenant check and covered by the object baseline.
Token minting for another identity. In Kubernetes audit logs:
verb = "create"
AND objectRef.resource = "serviceaccounts"
AND objectRef.subresource = "token"
AND user.username NOT LIKE "system:node:%"
AND user.username != "system:serviceaccount:" + objectRef.namespace + ":" + objectRef.name
Pair it with the cloud equivalent: instance role credentials seen in CloudTrail from a sourceIPAddress outside your VPC ranges, and any principal whose Client.DryRunOperation count crosses a handful of services in an hour.
The model judge
Rules like the three above produce candidates. The judge decides. Its input is the trajectory record, its linked trajectories, the route and role map for the application, and the principal’s baseline. Its output is structured so that it can drive automation:
{
"objective": "Confirm cross-tenant read on tokens endpoint after extracting routes from source map",
"verdict": "malicious",
"confidence": 0.93,
"evidence": ["source map fetched with no page render",
"tenant 1043 tokens returned to principal in tenant 1042",
"linked trajectory t-8f25 reused the same session token from a different ASN"],
"legitimate_explanations_considered": ["support impersonation: no impersonation grant on record"],
"recommended_action": "revoke_session",
"severity": "critical"
}
Four engineering points matter more than model choice.
-
Trajectory content is attacker-controlled. Paths, headers and parameters are text the adversary wrote, and an agent adversary can write text aimed at your judge. Pass only normalized fields, never raw bodies. Constrain output to a schema. Do not give the judge direct tool access. Its recommendation goes through a policy layer that owns the containment actions.
-
Tier for cost. Cheap features run on everything. A small model filters candidates. A larger model reviews only the top slice and anything touching crown-jewel routes. Most traffic never reaches a model.
-
Evaluate it like a classifier. Use labeled trajectories from your own red-team runs as positives and sampled production traffic as negatives. Track precision at the paging threshold, since that sets analyst load, and recall per attack stage.
-
Make the reasoning auditable. Store the input record, the output and the model version for every verdict. An analyst should be able to confirm or overturn it in under a minute.
Run AI agents against yourself, continuously
You cannot tune detection for traffic you have never seen in your own logs. An annual pentest and a weekly vulnerability scan produce scanner-shaped traffic, so they train your SOC to catch scanners. The only way to know what AI agent swarm traffic looks like in your environment is to run one.
Continuous agentic pentesting does two jobs at once.
-
It finds what the agents would find. The exposed bundle secret, the object-level authorization gap, the over-scoped service account and the shared cluster credential are fixed before someone else’s agent reads them. Removing the finding is still the strongest control. Traffic you fail to detect does no damage against an API that refuses it.
-
It generates labeled attack trajectories. Every run is ground truth: these sessions, these tokens, these calls were the attacker. Replay them against your detection pipeline and measure.
Track three numbers per run:
-
Action coverage. What share of the agent’s actions produced any signal.
-
Time to verdict. How long from first action to a correlated, high-severity detection.
-
Time to page. How long until a human was actually notified.
Run agentic pentesting under stealth constraints as well as in default mode: a request budget, real-browser clients, distributed egress, no known tool signatures. Start external and unauthenticated, then run assumed-breach scenarios from a single pod or a single employee credential. Give the red agents and the detection team the same scoreboard. This is the model we run at Strobes, internally and for customers.
A stealth profile for the red agents
Default agent behavior is often noisy enough to trip existing rules, which tells you nothing new. Constrain the run so that it has to behave like the adversary you are worried about. An example profile:
profile: quiet-external
scope: [app.example.com, api.example.com]
budget:
max_requests_per_host: 150
max_4xx_ratio: 0.10
max_requests_per_minute_per_egress: 6
client:
mode: real_browser # or impersonated_http
forbid_tool_signatures: [nmap, nuclei, sqlmap, ffuf]
egress:
pool: rotating
max_requests_per_ip: 20
discovery:
allow: [js_bundles, source_maps, api_specs, public_indexes]
forbid: [port_scan, path_bruteforce]
on_block: change_approach # never retry the same request
proof: minimum_sufficient # stop at first confirming response
logging:
emit_ground_truth: true # action id, timestamp, egress IP, credential used
The last line is what makes the run useful to the SOC. Every action the agent takes is written to a ground-truth log with its timestamp, egress address and any credential used. After the run, join that log to your alert stream:
-
Action coverage = actions with at least one associated signal / total actions, reported per stage (discovery, access, lateral movement, collection).
-
Time to verdict = timestamp of first correlated high-severity detection minus timestamp of first action.
-
Time to page = timestamp of first human notification minus timestamp of first action.
-
Containment gap = actions the agent completed after the verdict and before the credential or session was revoked.
Run the same scenario after each detection change and plot the four numbers over time. The Hugging Face incident is the case for tracking time to verdict and time to page separately: the first was achieved, the second was not.
What to give your SOC
Telemetry at the layers agents use.
-
Full API gateway logs with the authenticated principal, object IDs and response size, retained long enough to rebuild a multi-day trajectory.
-
Kubernetes audit logs at request level for secrets, token requests, pod creation and exec.
-
Cloud audit logs including dry-run and denied calls.
-
Identity provider and VPN enrollment events.
-
Egress logs by workload, including traffic to pastebins, request-capture services and your own platform’s public features.
-
Tamper-evident log shipping off the host. Assume the agent will reach the node.
Deception aimed at readers. Agents act on what they read, so plant things only a reader would use.
-
A canary API key in the production bundle. Any use of it is an alert with no false positives.
-
A decoy endpoint referenced in the JavaScript and never called by the UI.
-
Honey credentials in environment variables, a decoy secrets object, a decoy service account with a tempting name.
-
A fake internal runbook that points to a monitored host.
Design details decide whether deception works against a reader that is itself a model. A canary key has to pass the provider’s format check and sit where a bundler would put it, such as a config object next to real public values. A decoy endpoint should follow your real naming convention, return plausible data, and tag the session server-side so every later request from that client is linked. Decoy secrets belong in the same secrets object as real ones, with names that suggest reach (prod-db-admin, ci-deploy-token). Rotate decoys on a schedule so that an attacker’s saved state goes stale and reuse of an old canary dates their first access.
Identity controls that shrink what a foothold is worth.
-
Short-lived workload identity in place of static keys.
-
One credential per cluster and per service. No shared admin connectors.
-
Block pod access to the instance metadata service.
-
Admission policies against privileged and hostPath pods.
-
Bind tokens to expected network origins and alert on use from anywhere else.
AI triage with authority. An agent that assembles trajectories, scores them, writes the case summary and can execute pre-approved containment. Analysts review decisions and no longer assemble evidence by hand at machine speed.
A policy for legitimate agents. Customer and partner AI agents are now normal traffic. Give them their own credentials, scopes and rate classes so that unidentified automation stands out against a known baseline.
What this means for defenders
Scanner detection works because scanners are loud at the edge and wrong most of the time. AI agent swarms send valid requests through real clients and spread them across many sources. They get their map from your JavaScript, your API descriptions and your internal control planes, and they move with credentials you issued. Nothing in a single request separates them from a user. When they are noisy, the noise lands in identity and audit logs that few teams correlate or escalate on.
Two things change that. Defenders need models reading trajectories and judging intent, with the authority to escalate and contain. And they need continuous agentic pentesting, with their own agents attacking the environment, so the exposures are closed first and the SOC has seen this traffic before it matters. Teams that keep tuning for Nmap will keep catching Nmap.
To see what an agent can read from your own attack surface, apply to Attacker’s First Look, the Strobes research program. There is no commitment to buy.
Sources
-
Disrupting the first reported AI-orchestrated cyber espionage campaign, Anthropic, November 2025
-
Detecting and countering misuse of AI: September 2026, Anthropic
-
Anatomy of a Frontier Lab Agent Intrusion: A Technical Timeline of the July 2026 Incident, Hugging Face, July 2026
-
Hugging Face Breach: Anatomy of a Rogue AI Agent Swarm, Cloud Security Alliance, September 2026
-
StealthBench: Measuring Operational Stealth in Autonomous Offensive-Security Agents, arXiv, July 2026
-
Keys on Doormats: Exposed API Credentials on the Web, study summary, 2026
-
Attacker’s First Look, Strobes research program

