AI Agent Floods API with 48,000 Requests in 13 Minutes Hunting Cloud Credentials
Written by AI from the linked story. Not reviewed by an editor. How this works
An autonomous AI hacking agent named Cairn systematically probed Perplexity's infrastructure by guessing API routes and attempting server-side request forgery (SSRF) attacks to steal cloud credentials — all within a 13-minute burst of 48,000 requests. The incident highlights how AI-driven attackers can compress reconnaissance and exploitation timelines far beyond human capability, leaving defenders with an extremely narrow detection and response window. Perplexity successfully blocked the attempts, suggesting their rate-limiting and anomaly detection were effective, but the same attack pattern reportedly succeeded at two other organizations. This case underscores that SSRF vulnerabilities in cloud-connected APIs represent a critical exposure class, since successful exploitation can directly yield cloud provider credentials and enable full environment compromise. Organizations must harden API surfaces, eliminate SSRF weaknesses, and ensure monitoring systems can detect and respond to high-velocity automated attack patterns in near real-time.
Tactical Insight
Immediate actions
- Audit all API routes for SSRF vulnerabilities and apply input validation and allowlist-based outbound request controls immediately.
- Implement aggressive rate limiting and automatic IP blocking on API endpoints to cut off high-velocity automated probing.
- Rotate and audit cloud credentials and instance metadata access controls to limit blast radius if SSRF is exploited.
Long-term improvements
- Restrict instance metadata service (IMDS) access using IMDSv2 enforcement and firewall rules to prevent credential theft via SSRF.
- Conduct regular API security testing, including SSRF-specific attack scenarios, as part of your vulnerability management program.
- Enumerate and minimize publicly exposed API surface area, removing or authenticating any unadvertised or legacy routes.
Detection measures
- Deploy behavioral anomaly detection capable of flagging request-rate spikes (e.g., thousands of requests per minute from a single source) in real time.
- Centralize and correlate API gateway logs with cloud access logs so that probing attempts can be linked to downstream credential use.
- Set up alerting for access attempts against non-standard or undocumented API paths as an indicator of enumeration activity.