TL;DR

- We hunted Agent Zero — an open-source autonomous AI agent framework — across the public internet with Shodan and found 31 live instances shipped straight onto the web, many with authentication switched off.
- On authorized test deployments, the agent's own chat box was the exploit: a plain-English "tell me about this system" prompt made the agent run shell commands and paste the output back into the conversation. No CVE, no payload, no memory corruption.
- Command output returned
uid=0(root)inside a Kali GNU/Linux Rolling runtime — the agent was executing with root privileges in its container. - Environment files leaked a root password, allowed-origin config, auth variables, and a live OpenRouter API key — a third-party AI provider credential with real billing and abuse consequences.
- The built-in file browser exposed internal application directories, and an Upload Files capability was confirmed functional — a write primitive on an unauthenticated box.
- A CORS wall on some instances was walked around browser-side with a header-rewriting extension; we call out plainly that this is not an authentication bypass — the auth simply wasn't there.
- Bottom line: an exposed AI agent is not a chatbot. It is an unauthenticated, root-capable remote shell with a friendly UI — and it is the clearest early signal of where AI-on-AI attacks are heading.
The Big Picture: When the Defender Ships the Door Open
Enterprises are racing to self-host autonomous AI, and the attack surface is sprinting ahead of the security controls meant to govern it. This research is one concrete data point in a much larger, ongoing wave of AI-powered red team activity now playing out globally.
The macro numbers frame why 31 boxes matter. Internet-exposed AI/LLM tooling grew more than 60% in nine months, reaching roughly 268,000–294,000 public IP addresses running AI products by mid-2026 (Censys via eSecurity Planet; Cybersecurity Dive). Researchers have repeatedly shown this infrastructure is misconfigured by default — one team called the AI stack they scanned more exposed than any software they had investigated (The Hacker News).
Attackers already live here. Honeypot infrastructure captured 91,403 attack sessions against exposed LLM endpoints in roughly four months, and the first commercial-scale “LLMjacking” marketplace logged 35,000 attack sessions hijacking exposed AI compute in about five weeks (Cloud Security Alliance). On the enterprise side, IBM now attributes one in four malicious breaches to AI involvement, a 56% year-over-year jump, pushing average breach costs toward US$6M (Mexico Business News / IBM). Check Point found 90% of organizations hit risky AI prompts inside a single quarter (Check Point).
What this research adds: most exposure reporting counts inference endpoints — raw model servers that answer prompts. Agent Zero is a different and sharper class: an agentic deployment that ships with a terminal, a file manager, and tool integrations wired into the chat loop. When one of those lands on the internet without auth, the finding is no longer “a model answered me.” It is unauthenticated root-capable command execution behind a chat box, plus harvestable provider credentials that fund the next attack.
Future impact: as agentic AI moves from pilots to production, every exposed agent becomes both a target and a weapon — a foothold an adversary can point at the next target, at machine speed. In August 2026, OpenAI, Anthropic, Google, Microsoft and 110+ organizations jointly warned that AI-enabled attacks will grow “far more widespread and sophisticated” (industry analysis). The 31 instances below are a preview of that curve, not an edge case.
Step 1 Recon: Finding Agents That Answer to Strangers
What we did: queried Shodan, the internet-wide asset search engine, for fingerprints tied to Agent Zero deployments.
What came back: 31 matching instances, spread across multiple countries — the United States, Germany, China, Bulgaria, and Switzerland. Across the result set, the agent interfaces surfaced on ports 5080, 8080, 50001, 50080, and 80 (these are aggregate port stats, not ports confirmed on every host).
The goal at this stage was narrow and defensible: determine whether the exposed interfaces demanded authentication, and whether agent capabilities were reachable without it. Several deployments answered that question themselves — they rendered a built-in banner warning that Agent Zero was being accessed from a non-local address without authentication. That warning is the product telling the operator the door is open; it was visible to anyone on the internet, which is exactly the problem.
Figures below: the Shodan result set (31 instances) and an instance serving its own "unsecured connection" warning.


Step 2 Breaking the Glass (Browser-Side Only)

What we did: some reachable instances threw CORS (Cross-Origin Resource Sharing) errors during browser-based interaction. CORS is a browser-enforced mechanism that governs whether a page may read resources from a different origin. To work through those client-side restrictions on authorized targets, we used the Moesif Origin/CORS Changer browser extension, configured to rewrite the Origin and CORS-related request headers.
What happened: with the headers adjusted, the previously unreachable Agent Zero interface loaded cleanly in the browser.
Figures below: the cross-origin error, the extension enabling header rewriting, and the interface loading afterward.

The honest caveat read this twice. This technique changed browser-side CORS handling only. It did not bypass any server-side authentication or authorization control. CORS and authentication solve different problems: CORS decides which web origins a browser will let talk to the server; authentication decides who is allowed in at all. We got in because, on these deployments, there was no authentication to bypass. Conflating the two would overstate the exploit the real finding is the absence of auth, not the defeat of it.

Step 3 Talking an Agent Into a Shell
What we did: this is the core finding. On authorized targets we simply asked the agent, through its chat interface, for system information — the kind of request an operator might type on day one.
What happened: the agent interpreted the request, executed shell commands in its own runtime, and returned the raw output directly in the conversation. The chat box was a command prompt with extra steps. Collected output included:
- Hostname and operating-system details
- Current execution identity (user context)
- User and group identifiers (UID/GID)
- Home-directory contents
- Running Docker processes
- System account information
The line that matters:
root
uid=0(root) gid=0(root) groups=0(root)
PRETTY_NAME="Kali GNU/Linux Rolling"
The agent's execution environment was running as UID 0 (root) on a Kali base image. An unauthenticated internet user could drive a root-context shell through natural language.
The caveat that keeps this honest: UID 0 inside a container is not automatically root on the underlying host. The real blast radius depends on container isolation, mounted volumes, Linux capabilities, and the deployment's configuration. But the security problem stands regardless: an unauthenticated party could invoke execution capabilities the operator intended only for trusted users — and container escapes are a well-trodden path, not a theoretical one.
Figures below: driving the agent via chat, and the system / filesystem information it returned.


Step 4 Looting the Secrets: A Live Provider Key
What we did: with execution reachable, we examined the application's environment and configuration values through the agent's own capabilities.
What leaked:
- Application runtime identifiers
- A root password configuration value
- Allowed-origin configuration
- Authentication-related environment variables
- A third-party AI provider credential — a live OpenRouter API key
The provider key is the sharpest edge here. Leaked AI-provider credentials carry direct financial and operational consequences. Depending on the account's permissions, an attacker could:
- Burn through API credits on someone else's dime
- Fire off unauthorized model requests at scale
- Exhaust usage quotas and degrade the victim's service
- Rack up surprise billing
- Pivot into any associated services the key is scoped to reach
This is exactly the economic engine behind LLMjacking — the harvest-and-resell marketplace for stolen AI compute described in the macro stats above. One misconfigured agent doesn't just expose a box; it donates a funded credential to the next campaign.
Treat any such exposure as a security incident: rotate the credential immediately and audit associated usage for anomalies. All sensitive values in our evidence are redacted.
Figure below: provider / environment configuration surfaced through the agent interface (sensitive values redacted).

Step 5 Filesystem Browsing and a Write Primitive
What we did: exercised the agent interface's built-in file browser.
What was reachable: the browser exposed internal application directories, including agents, api, conf, data, docker, docs, extensions, knowledge, lib, plugins, and prompts. Read access to these can compound the earlier findings — configuration, prompt definitions, and plugin logic are exactly where more secrets and more capability tend to hide.
The write side: the interface also exposes an Upload Files capability. We did not perform an upload ourselves during this investigation, but a colleague independently confirmed the functionality works. On an unauthenticated, root-context box, an upload primitive is not a convenience feature — it is a way to stage tooling, drop a payload, or plant persistence.
Caveat: accessible paths and effective permissions depend on the application's implementation and runtime restrictions; a reachable file browser is not proof of arbitrary host-filesystem access. But read-the-config plus write-a-file plus run-as-root is a combination that rarely ends well.
Threat Assessment and Observables
Traditional web exposure centers on admin panels, databases, and auth endpoints. Agent-based applications add a new layer: the exposed interface hands out tools that act inside the runtime. The table maps each exposure we observed to its organizational impact — these are potential consequences, not proof that any given deployment was compromised.
| Exposure | Potential organizational impact |
|---|---|
| Authentication disabled | Unauthorized agent interaction |
| Shell execution via chat | Unauthorized runtime operations |
| Root (UID 0) execution context | Elevated permissions within the runtime; container-escape risk |
| API credential exposure | Unauthorized third-party service usage and billing abuse |
| Filesystem access | Exposure or modification of application data |
| File-upload capability | Staging of unauthorized files / payloads |
This investigation concerns exposed services and insecure configuration, not a confirmed malware campaign. For defensive monitoring, the relevant observables:
| Observable | Description |
|---|---|
| HTTP page title | Agent Zero |
| Service ports | 5080, 8080, 50001, 50080, 80 (from Shodan aggregate stats) |
| Application interface | Publicly accessible Agent Zero web interface |
| Authentication state | Authentication-disabled configuration |
| Runtime indicators | Exposed application environment variables |
| Credential indicators | Third-party AI provider API keys in environment |
Specific IP addresses, domains, credentials, and other infrastructure identifiers are withheld to avoid exposing affected deployments.
Detection and Mitigation
Teams running Agent Zero or any similar autonomous framework should treat the deployment as a privileged system and harden accordingly.
- Enforce authentication. Never expose an admin AI agent interface without auth. Require strong credentials and, where possible, multi-factor authentication.
- Restrict network exposure. Keep management interfaces off the public internet — behind a VPN, a private network, or an authenticated reverse proxy. Network boundary and auth are first-order controls, not afterthoughts.
- Apply execution isolation. Run agent processes with least privilege. Avoid unrestricted root; enforce container isolation, drop Linux capabilities, and set filesystem boundaries.
- Protect API credentials. Store provider keys in a secrets manager. Keep them out of environment variables reachable through agent interactions, logs, or the file browser. Rotate anything suspected of exposure.
- Restrict filesystem operations. Limit accessible directories, lock down permissions on sensitive files, and review or disable file-upload functionality; validate any content that is accepted.
- Monitor agent activity. Log shell execution, file operations, auth events, API usage, and config changes. Alert on unusual execution patterns and unexpected resource consumption — including credit spikes that signal LLMjacking.
- Continuously monitor exposure. Fold AI agent interfaces into external attack-surface management. Scan for your own exposed agents the way an attacker would, and verify the controls above still hold.
Conclusion — The Future of Hacking: AI on AI
The exposure of autonomous AI agents is not a bigger version of the old web-app problem. It is a new category. A conventional misconfiguration leaks data or an admin panel; a misconfigured agent leaks capability — a root-context shell, a file browser, an upload primitive, and a wallet of provider credits, all wrapped in a chat box that will happily take instructions from a stranger.
This is where AI-on-AI attacks are heading, and the trajectory is already visible:
- Agents as the target. Exposed AI infrastructure grew 60%+ in nine months and is actively hunted — tens of thousands of attack sessions, organized LLMjacking marketplaces, honeypots lighting up within minutes. The 31 instances here are a rounding error against 268,000+ exposed AI hosts, and they will not be the last.
- Agents as the weapon. The same autonomy that makes an agent useful makes a compromised one dangerous. An attacker who reaches one agent inherits its tools, its credentials, and its reach — and can point AI at the next AI, running reconnaissance and exploitation at a pace no human operator can match. Defenders are increasingly using AI red teams to find these holes first; attackers are using AI to find and walk through them at scale. Both sides are now automating the same loop.
- Agents as the multiplier. A single leaked OpenRouter key funds the next campaign. A single exposed shell stages the next payload. Compromise compounds.
The takeaway for anyone deploying autonomous AI is blunt: an AI agent is a privileged execution environment, not a chatbot. Authentication, execution isolation, secret management, and network controls are not features to add later — they are the price of admission before the service is reachable by anyone outside a trusted boundary.
The attackers are already running AI against AI. The only open question is whether your agents are hardened before they find them — or after.
Responsible Disclosure and Research Disclaimer
This investigation was conducted strictly for educational purposes, cybersecurity research, and security awareness. Active validation was limited to environments for which explicit authorization was available. Discovery relied on publicly available internet-scan data; no unauthorized access, exploitation, modification, disruption, or data extraction was performed against third-party systems.
The findings are intended to help organizations understand and mitigate the risks of exposed AI agent deployments. The research does not encourage unauthorized activity. Any misuse of this information is the sole responsibility of the individual undertaking it; the authors do not endorse unauthorized activities and accept no responsibility for third-party misuse.
About ThreatWatch360
ThreatWatch360 is an AI-powered offensive-security platform: continuous Attack Surface Management, AI-assisted penetration testing, brand protection, dark-web monitoring, and Cyber Threat Intelligence in one platform. Validated findings with proof-of-concept and business-impact prioritization — signal over alert fatigue.


