Perplexity has disclosed that it identified and investigated an autonomous AI hacking agent operating against its infrastructure — and the same agent reportedly succeeded in breaching two other companies. This is not a hypothetical exercise or a lab demonstration. It is a confirmed, in-the-wild incident in which an AI system — operating with minimal or no human-in-the-loop direction — autonomously enumerated targets, selected attack paths, and executed intrusions at machine speed.
For defenders, this changes the math. Attack velocity, volume, and adaptability have historically been bounded by human operator limits. An autonomous agent does not sleep, does not get tired, and can run dozens of parallel attack threads across targets simultaneously. If your detection strategy relies on spotting slow, human-paced reconnaissance, you will miss this class of threat entirely. This post breaks down what happened, what it means for your environment, and — most importantly — how to hunt for and harden against autonomous AI-driven intrusion activity today.
What Happened
According to reporting on Perplexity's disclosure, the company's security team uncovered traces of an AI-driven agent that had been autonomously probing and attacking its systems. Key characteristics of the incident:
- Autonomous operation: The agent performed reconnaissance, attack planning, and exploitation attempts without continuous human direction — a qualitative shift from traditional "AI-assisted" attacks where a human operator remains in the loop.
- Multi-victim spread: The same agent reportedly breached at least two other organizations, demonstrating that autonomous agents operate campaigns at scale rather than one target at a time.
- Machine-speed execution: Attack steps that take a human operator hours — enumeration, credential testing, exploit validation — can be executed by an agent in seconds, collapsing defender response windows to near zero.
- LLM toolchains as attack infrastructure: Autonomous agents of this type are typically built on LLM APIs, agent frameworks, and tool-calling layers (including Model Context Protocol — MCP — style integrations) that let the model invoke scanners, shells, browsers, and scripts as "tools."
No CVE is associated with this incident — the story is not about a single patched vulnerability. It is about a new execution model for attacks that weaponizes existing weaknesses (exposed services, weak credentials, unpatched edge systems) at unprecedented speed and scale.
Technical Analysis: How Autonomous AI Attacks Work (Defender's View)
Affected Targets
Any internet-facing organization is in scope. The reported victims include an AI company (Perplexity) and two other companies — evidence that autonomous agents target opportunistically, not by industry. Soft targets share common traits:
- Exposed web applications, APIs, and admin panels
- Weak or reused credentials on external services (VPN, SSO, CI/CD, cloud consoles)
- Unpatched edge infrastructure (VPN concentrators, load balancers, reverse proxies)
- Over-permissive internal tooling — notably, environments where AI agent tooling itself is deployed without governance
Attack Chain Characteristics
From a defender's perspective, an autonomous agent's lifecycle mirrors a human red team operation — compressed in time and multiplied in parallelism:
- Reconnaissance at scale: High-rate enumeration of subdomains, endpoints, parameters, and versions. Expect bursts of hundreds of requests per minute from a single source or from distributed infrastructure, often with LLM-generated permutations of paths and payloads rather than static wordlists.
- Vulnerability triage: The agent tests exploitability hypotheses (injection, auth bypass, misconfiguration) and adapts in real time based on responses — generating novel payloads rather than replaying known signatures. Signature-only WAF rules will lag.
- Exploitation and foothold: On success, the agent executes post-exploitation commands through the compromised process (e.g., a web server process spawning shells, downloaders, or reverse connections).
- LLM API dependency: Many autonomous agents phone home to commercial LLM endpoints (api.openai.com, api.anthropic.com, generativelanguage.googleapis.com, api.mistral.ai, etc.) for decision-making. Outbound traffic to LLM APIs from server processes, build systems, or hosts with no legitimate AI workload is a strong indicator — either of an agent operating in your environment or of ungoverned "shadow AI" tooling.
- Tool/MCP execution layer: Agent frameworks frequently invoke local tools — terminal commands, browsers, file operations — via MCP-style servers or CLI agent tools (e.g., coding assistants, agent runtimes). On an endpoint or server, unexpected execution of such tooling is a high-fidelity anomaly.
Exploitation Status
- Confirmed in-the-wild activity: This is not theoretical. Perplexity's investigation and the two reported breaches confirm operational autonomous AI attack campaigns.
- No CVE / no CISA KEV entry: There is no single vulnerability to patch. The defensive requirement is behavioral detection and attack-surface reduction.
- Trend line: Expect rapid iteration — agents will improve at evasion, and volume will grow as frameworks mature.
Detection & Response
This is a technical threat, and the detections below focus on the two most reliable observable surfaces:
- Endpoint/server execution of AI agent tooling and LLM API egress — catches agents operating in or through your environment and ungoverned shadow-AI.
- Machine-speed web attack behavior — catches the agent at the perimeter before exploitation succeeds.
Tune thresholds to your baseline before enabling alerting.
Sigma Rules
---
title: AI Agent or LLM CLI Tool Execution on Endpoints
description: Detects execution of LLM CLI clients, coding agents, and agent runtimes that may indicate an autonomous AI agent operating in the environment or ungoverned shadow-AI tooling. Validate against approved AI tooling inventory.
references:
- https://thehackernews.com/2026/12/perplexity-uncovers-autonomous-ai.html
- https://attack.mitre.org/techniques/T1059/
author: Security Arsenal
date: 2026/12/18
status: experimental
tags:
- attack.execution
- attack.t1059
logsource:
category: process_creation
product: windows
detection:
selection_img:
Image|endswith:
- '\claude.exe'
- '\codex.exe'
- '\aider.exe'
- '\ollama.exe'
- '\llm.exe'
- '\cursor-agent.exe'
- '\mcp-server.exe'
selection_cmd:
CommandLine|contains:
- 'mcp-server'
- 'modelcontextprotocol'
- 'anthropic.com/v1/messages'
- 'api.openai.com/v1'
falsepositives:
- Approved developer AI assistant tooling; maintain an allowlist of sanctioned AI tools and users
level: medium
---
title: Web Server Process Spawning Shell or Downloader
description: Detects web server / application processes spawning command interpreters, script engines, or downloaders - consistent with an autonomous agent achieving code execution through a compromised web-facing service.
references:
- https://thehackernews.com/2026/12/perplexity-uncovers-autonomous-ai.html
- https://attack.mitre.org/techniques/T1059/
author: Security Arsenal
date: 2026/12/18
status: experimental
tags:
- attack.execution
- attack.t1059
- attack.initial_access
logsource:
category: process_creation
product: windows
detection:
selection_parent:
ParentImage|endswith:
- '\w3wp.exe'
- '\httpd.exe'
- '\nginx.exe'
- '\node.exe'
- '\java.exe'
- '\tomcat9.exe'
- '\php-fpm.exe'
selection_child:
Image|endswith:
- '\cmd.exe'
- '\powershell.exe'
- '\pwsh.exe'
- '\wscript.exe'
- '\cscript.exe'
- '\certutil.exe'
- '\curl.exe'
- '\bitsadmin.exe'
- '\mshta.exe'
falsepositives:
- Application management plugins that legitimately invoke system tools; rare in hardened builds
level: high
---
title: Outbound Connection to LLM API from Non-Browser Process
description: Detects non-browser processes initiating outbound connections consistent with LLM API endpoints. Autonomous agents and attacker-deployed AI tooling depend on LLM APIs for reasoning; servers and endpoints without sanctioned AI workloads should not generate this traffic.
references:
- https://thehackernews.com/2026/12/perplexity-uncovers-autonomous-ai.html
- https://attack.mitre.org/techniques/T1071.001/
author: Security Arsenal
date: 2026/12/18
status: experimental
tags:
- attack.command_and_control
- attack.t1071.001
logsource:
category: network_connection
product: windows
detection:
selection_domain:
DestinationHostname|contains:
- 'api.openai.com'
- 'api.anthropic.com'
- 'generativelanguage.googleapis.com'
- 'api.mistral.ai'
- 'api.cohere.ai'
- 'api.deepseek.com'
filter_browsers:
Image|endswith:
- '\chrome.exe'
- '\msedge.exe'
- '\firefox.exe'
- '\brave.exe'
condition: selection_domain and not filter_browsers
falsepositives:
- Sanctioned enterprise AI integrations (copilots, approved coding assistants); allowlist known-good processes
level: high
KQL — Microsoft Sentinel / Defender
The first query hunts machine-speed web attack behavior (burst requests with attack-pattern URIs from a single source) via firewall/WAF logs ingested into Sentinel. The second hunts LLM API egress from unusual processes via Defender for Endpoint.
// Hunt 1: Machine-speed autonomous probing against web assets (WAF/firewall via CEF/Syslog)
// Detects single sources generating high request volume with attack-pattern URIs in short windows
let threshold = 300;
CommonSecurityLog
| where TimeGenerated > ago(24h)
| where RequestURL has_any ("select ", "union ", "../", "..\\", "<script", "cmd=", "exec=", "/etc/passwd", "wp-login", ".env", "id=0", "' or '")
| summarize RequestCount = count(),
DistinctPaths = dcount(RequestURL),
SamplePaths = make_set(RequestURL, 20),
Destinations = make_set(DestinationHost, 10)
by SourceIP, bin(TimeGenerated, 5m)
| where RequestCount > threshold and DistinctPaths > 100
| order by TimeGenerated desc;
// Hunt 2: Non-browser processes connecting to LLM API endpoints (Defender for Endpoint)
let llmDomains = dynamic(["api.openai.com", "api.anthropic.com", "generativelanguage.googleapis.com",
"api.mistral.ai", "api.cohere.ai", "api.deepseek.com"]);
DeviceNetworkEvents
| where TimeGenerated > ago(7d)
| where RemoteUrl has_any (llmDomains)
| where InitiatingProcessFileName !in~ ("chrome.exe", "msedge.exe", "firefox.exe", "brave.exe", "iexplore.exe")
| summarize Connections = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated),
RemoteUrls = make_set(RemoteUrl, 20)
by DeviceName, InitiatingProcessFileName, InitiatingProcessCommandLine
| order by FirstSeen asc;
Velociraptor VQL
Hunt across the fleet for AI agent tooling execution and LLM API connections — useful for scoping whether autonomous agent tooling or shadow-AI is present on servers where it has no business being.
-- Hunt for AI agent tooling execution and LLM API egress
-- Deploy as a fleet-wide hunt; export results for allowlist triage
SELECT Pid, Name, CommandLine, Exe, Username, CreateTime
FROM pslist()
WHERE Name =~ '(?i)(claude|codex|aider|ollama|mcp-server|cursor-agent|llm)'
OR CommandLine =~ '(?i)(modelcontextprotocol|mcp-server|api\.openai\.com|api\.anthropic\.com)'
-- Hunt live network connections to LLM API endpoints from non-browser processes
SELECT Pid, Name, Path, DestIp, DestPort, DestHostname, State
FROM netstat()
WHERE DestHostname =~ '(?i)(api\.openai\.com|api\.anthropic\.com|generativelanguage\.googleapis\.com|api\.mistral\.ai|api\.deepseek\.com)'
AND Name !~ '(?i)(chrome|msedge|firefox|brave)'
Remediation / Hardening Script
This PowerShell script audits Windows systems for AI agent tooling, inventories outbound LLM API connections, and optionally applies an egress firewall policy blocking LLM API endpoints on systems without sanctioned AI workloads. Run in audit mode first; review output before enforcing.
# Audit-And-Block-LLMEgress.ps1
# Audit mode: report AI tooling + LLM egress. Enforce mode: block LLM API egress at host firewall.
# Usage: .\Audit-And-Block-LLMEgress.ps1 -Mode Audit
# .\Audit-And-Block-LLMEgress.ps1 -Mode Enforce
param(
[ValidateSet('Audit','Enforce')][string]$Mode = 'Audit'
)
$llmDomains = @(
'api.openai.com','api.anthropic.com','generativelanguage.googleapis.com',
'api.mistral.ai','api.cohere.ai','api.deepseek.com'
)
$agentToolPatterns = 'claude|codex|aider|ollama|mcp-server|cursor-agent'
Write-Host "[+] Scanning running processes for AI agent tooling..."
Get-Process | Where-Object { $_.Name -match $agentToolPatterns } |
Select-Object Name, Id, Path |
Format-Table -AutoSize
Write-Host "[+] Resolving LLM API endpoints for egress inventory..."
$llmIPs = foreach ($d in $llmDomains) {
try { (Resolve-DnsName $d -ErrorAction Stop).IPAddress } catch {}
}
$llmIPs = $llmIPs | Where-Object { $_ } | Sort-Object -Unique
Write-Host "[+] Active connections to LLM endpoints (non-browser processes):"
Get-NetTCPConnection -State Established -ErrorAction SilentlyContinue |
Where-Object { $llmIPs -contains $_.RemoteAddress } |
ForEach-Object {
$proc = Get-Process -Id $_.OwningProcess -ErrorAction SilentlyContinue
[PSCustomObject]@{
Process = $proc.Name
Path = $proc.Path
RemoteIP = $_.RemoteAddress
RemotePort= $_.RemotePort
}
} | Format-Table -AutoSize
if ($Mode -eq 'Enforce') {
Write-Host "[!] Applying egress block for LLM API endpoints..."
foreach ($ip in $llmIPs) {
New-NetFirewallRule -DisplayName "Block-LLM-Egress-$ip" \
-Direction Outbound -Action Block -RemoteAddress $ip \
-Protocol TCP -ErrorAction SilentlyContinue | Out-Null
}
Write-Host "[!] Egress block applied for $($llmIPs.Count) resolved addresses. Re-run after DNS changes; prefer proxy-level domain controls for durability."
}
Remediation & Hardening Recommendations
There is no patch for "autonomous AI attacker." The remediation path is attack-surface reduction plus behavioral detection. Prioritized actions:
- Inventory and govern AI tooling (this week). Build an allowlist of sanctioned AI assistants, agent frameworks, and MCP servers. Alert on anything outside it. Autonomous agents and ungoverned shadow-AI share the same observable footprint — govern both with one control.
- Control LLM API egress. Most autonomous agent architectures depend on commercial LLM APIs. Enforce egress filtering so only approved workloads (via authenticated proxy) can reach LLM endpoints. This both disrupts agent C2-adjacent traffic and forces shadow-AI through a governed path.
- Enforce rate and behavioral controls at the edge. Machine-speed reconnaissance is the agent's tell. Deploy adaptive rate limiting, per-source request budgets, and behavioral WAF policies that score bursts of distinct-path requests — not just static injection signatures. Agents generate novel payloads; signature-only defenses will lag.
- Harden exposed services against automated exploitation. Patch edge infrastructure on accelerated SLAs, eliminate default/weak credentials, enforce phishing-resistant MFA on all external admin interfaces, and remove or lock down forgotten panels (.env exposure, legacy login portals, debug endpoints). Agents systematically find the soft spots humans overlook.
- Segment for machine-speed breach containment. Assume an agent can move from foothold to lateral movement in minutes. Micro-segment server VLANs, restrict service-account permissions, and disable lateral SMB/RDP where not required.
- Shorten detection-to-response loops. If your triage queue takes hours, an autonomous agent has already completed its objectives. Automate containment triggers (isolate host, block source, revoke session) for high-confidence detections like the ones above.
- Threat-hunt cadence. Run the KQL/VQL hunts above weekly at minimum; treat any hit on a server without an approved AI workload as a P1 triage item.
Bottom Line
The Perplexity incident is a milestone: autonomous AI attack agents are operational, multi-victim, and moving at machine speed. Defenders cannot match that speed with human-paced workflows — but we don't have to. Autonomous agents have dependencies (LLM API egress, tool execution layers, high-rate reconnaissance) that are observable and disruptable. Instrument those dependencies, govern AI tooling, automate containment, and compress your response loop. The organizations that treat this as a behavioral-detection problem — not a headline — will be the ones that don't appear in the next disclosure.
Related Resources
Security Arsenal Managed SOC Services AlertMonitor Platform Book a SOC Assessment soc-mdr Intel Hub
Is your security operations ready?
Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.