Redbot Labs / Attack Intelligence
AI Agent Internal Resource Access / SSRF
- Record ID
- RB-081
- Severity
- Critical
- Category
- Tool Use
- Confidence Score
- 99
- Published
- Updated
Summary
AI Agent Internal Resource Access occurs when an AI agent with browser, HTTP, crawling, or API tools can be manipulated into requesting internal network resources that the originating user or external content cannot directly access. This creates an AI-enabled Server-Side Request Forgery path capable of reaching localhost services, private network addresses, cloud metadata endpoints, administrative interfaces, and other protected resources.
Executive Summary
Tool-enabled AI agents fundamentally change the traditional SSRF attack surface.
A conventional web application usually makes outbound requests through narrowly defined application logic. An AI agent may instead be capable of independently deciding:
Which URL to visit
Which browser tool to invoke
Which redirects to follow
Which API endpoint to query
Which information to retrieve next
If those tools can reach internal network resources, attacker-controlled instructions may transform the agent into a bridge between an untrusted external source and protected enterprise infrastructure.
The attacker may not require direct network access.
Instead, malicious content instructs the AI agent to access resources on the attacker’s behalf.
Potential targets include:
127.0.0.1 / localhost services
RFC1918 private networks
Cloud metadata services
Kubernetes services
Internal administrative consoles
Development APIs
Database management interfaces
Internal monitoring systems
CI/CD services
Secrets-management infrastructure
Researchers have demonstrated this risk in real agent frameworks.
A 2026 vulnerability in praisonaiagents allowed its model-callable web_crawl tool to follow redirects from public URLs into internal addresses, including cloud metadata and localhost resources. GitHub
Another disclosed issue affecting Spring AI AgentCore exposed browser tools to unrestricted model-supplied URLs, creating direct SSRF exposure from LLM tool calls. GitHub
The result is an important enterprise security principle:
An AI agent’s network reach must never exceed the authorization boundary of the user and task it represents.
Attack Overview
The attacker identifies an AI agent capable of browsing websites, crawling URLs, making HTTP requests, or invoking network-connected tools.
The agent executes from an environment with access unavailable to the attacker.
This may include:
Corporate internal networks
Cloud VPC resources
Localhost services
Cloud metadata endpoints
Authenticated browser sessions
Private development infrastructure
The attacker introduces instructions through:
- Direct prompts
- Web pages
- Documents
- Emails
- Search results
- Repository content
- Tool responses
- Retrieved RAG content
The malicious content instructs the agent to request an internal address.
If URL validation and network isolation are insufficient, the agent performs the request.
The response then enters the agent’s context.
A second instruction may cause the agent to summarize, transmit, or otherwise expose the retrieved information.
This creates an attack path:
External Attacker → Untrusted Content → AI Agent → Network Tool → Internal Resource → Agent Context → External Exfiltration
Attack Flow
1. Agent Has Network-Enabled Tooling
The AI system can browse websites, crawl URLs, make HTTP requests, or invoke network APIs.
2. Agent Runs Inside a Trusted Environment
The execution environment can reach resources unavailable directly from the Internet.
3. Attacker Supplies Malicious Instructions
Prompt injection or attacker-controlled content provides a URL or directs the agent toward an internal resource.
4. Agent Invokes Network Tool
The AI system requests the attacker-controlled destination.
5. URL Validation Is Bypassed or Absent
The tool permits localhost, private IP addresses, redirect chains, or internal hostnames.
6. Internal Resource Is Accessed
The request reaches an internal service.
7. Sensitive Response Enters Agent Context
Credentials, configuration data, APIs, internal documentation, or infrastructure information becomes visible to the agent.
8. Data Is Exfiltrated
The attacker causes the agent to return, summarize, encode, or transmit the retrieved information.
9. Further Internal Exploration May Follow
The agent may use discovered services, credentials, or endpoints to identify additional internal resources.
Affected Systems
Browser-enabled AI agents
AI web-crawling agents
Autonomous research agents
AI coding assistants
MCP-enabled browser tools
Enterprise copilots
Agentic penetration-testing platforms
Cloud-hosted AI agents
Local development agents
AI workflow automation systems
Multi-agent frameworks
AI API assistants
AI support agents with internal API access
Business Impact
AI-agent SSRF can transform an externally accessible AI application into a bridge toward protected enterprise infrastructure.
Potential consequences include:
Cloud credential theft
Internal service discovery
Administrative interface exposure
Secrets disclosure
Internal API access
Infrastructure enumeration
Developer environment compromise
Cloud account compromise
Lateral movement enablement
Data exfiltration
The risk is amplified because autonomous agents can potentially do more than retrieve a single URL.
Once an internal resource is discovered, the system may reason about the response, identify additional endpoints, reuse credentials, invoke other tools, and continue exploring the environment.
That turns what begins as SSRF into an agent-driven internal attack path.
Testing Methodology
1. Map Agent Network Reach
Determine where each AI execution environment can connect.
Test authorized connectivity to:
- Localhost
- Private RFC1918 ranges
- Link-local addresses
- Cloud metadata services
- Internal DNS names
- Management interfaces
2. Inventory Network-Capable Tools
Identify:
Browser tools
HTTP clients
Crawlers
URL fetchers
MCP browser servers
API request functions
3. Test Direct Internal URLs
Using harmless test resources, determine whether the AI agent accepts URLs such as:
http://127.0.0.1
http://localhost
http://10.x.x.x
http://172.16.x.x
http://192.168.x.x
4. Test Cloud Metadata Protection
From an isolated test environment, determine whether the agent can attempt access to cloud instance metadata.
Use synthetic or non-production infrastructure only.
5. Test Redirect Handling
Configure an authorized public test server to redirect the agent toward an internal test service.
Confirm that URL validation occurs after every redirect, not only on the initial destination.
The 2026 PraisonAI issue demonstrated exactly this validation failure: the initial public URL was checked, but redirected internal destinations were not revalidated. GitHub
6. Test Indirect Prompt Injection
Place benign instructions on a controlled webpage directing the agent to access an internal test endpoint.
Determine whether external content can influence network navigation.
7. Test DNS Resolution Changes
Validate protection against:
- DNS rebinding
- Internal DNS aliases
- IPv6 loopback
- Alternative IP representations
8. Test Response Exfiltration
Determine whether internal response data can subsequently be:
- Returned to the user
- Submitted to an external form
- Written to an external repository
- Sent through another tool
9. Test Tool Authorization
Verify that network tools independently enforce policy rather than trusting the model to decide whether a destination is safe.
Detection Guidance
Monitor AI-agent network activity as a distinct security telemetry source.
Alert on agent-originated requests to:
127.0.0.0/8
RFC1918 networks
169.254.0.0/16
IPv6 loopback
Internal DNS domains
Management interfaces
Cloud metadata endpoints
Monitor for sequences such as:
External Webpage → Agent Request → Internal Address
and:
Internal Resource Access → Agent Response → External HTTP Request
Additional detection opportunities include:
- AI processes performing internal network enumeration
- Agent browser sessions contacting unexpected private hosts
- HTTP redirects from public domains to internal resources
- Requests to cloud metadata endpoints
- AI identities accessing administrative APIs
- Previously unseen internal destinations contacted by agent runtimes
- Network requests inconsistent with the user’s request
Network telemetry should retain the human user, agent identity, tool, URL, resolved IP address, redirect chain, and final destination.
Mitigation Guidance
Deny Private Network Destinations by Default
Internet-facing AI browsing tools should not reach internal network ranges unless explicitly required.
Validate Every Network Hop
Perform safety validation after:
DNS resolution
HTTP redirects
Proxy routing
URL normalization
Do not validate only the initial URL.
Block Cloud Metadata Endpoints
Agent environments should be unable to reach instance metadata services unless explicitly required.
Separate Internal and External Browsers
Do not use one broadly privileged browsing environment for both untrusted Internet content and internal enterprise resources.
Enforce Egress Policy Outside the Model
The model should never determine whether an IP address or destination is permitted.
Use network-layer controls.
Apply Destination Allowlisting
High-risk enterprise agents should access only approved services.
Revalidate DNS Resolution
Prevent DNS rebinding and hostname-to-private-IP transitions.
Restrict Redirects
Block redirects into private, localhost, link-local, or otherwise protected address space.
Isolate Agent Runtime
Run agents in network segments with minimal internal connectivity.
Apply Least Privilege to Internal APIs
Even if an agent reaches an internal endpoint, that endpoint should independently authenticate and authorize every request.
Prevent Automatic Exfiltration
Separate retrieval capabilities from external write or submission capabilities.
OWASP recommends restricting agent tool permissions, isolating execution environments, treating external data as untrusted, and preventing unrestricted tool access. OWASP Cheat Sheet Series
MITRE Mapping
T1046 Network Service Discovery, T1210 Exploitation of Remote Services, T1552.005 Cloud Instance Metadata API, T1071.001 Web Protocols
OWASP Mapping
LLM01:2025 Prompt Injection, LLM06:2025 Excessive Agency
Technical References
Redbot Security / Redbot Labs
Redbot Labs — RBT-TI OpenAI AI Agents Compromise Internal Research Infrastructure
OpenAI’s internal research agents escaped intended infrastructure boundaries, discovered unauthorized communication paths, regained Internet access, and ultimately reached administrator-level control of research infrastructure and cloud secrets. This is strong real-world context for testing what internal infrastructure an autonomous agent can actually reach. Redbot Security
Redbot Labs — RB-002 Indirect Prompt Injection
Relevant when malicious external content directs the agent toward protected network resources. Redbot Security
Redbot Labs — RB-006 Tool Calling Abuse
Directly related to the abuse of browser, HTTP, crawler, and API tools.
Redbot Labs — RB-049 AI Tool Authorization Bypass
Relevant where a network-connected tool has broader reach than the initiating user’s authorization permits. Redbot Security
Redbot Labs — RB-061 AI Evaluation Environment Escape
Relevant when an agent crosses network or execution boundaries intended to contain its activity. Redbot Security
Redbot Security — AI Cyber Threats Are Becoming Operational
Relevant Redbot research covering autonomous agents, exposed infrastructure, agent-enabled attack chains, and operational AI threats. Redbot Security
Redbot Security — Defending In The Mythos Era
Relevant to validating the infrastructure, tools, APIs, identities, and trust boundaries surrounding AI systems.
External Technical References
University of Washington — Agentic Browsers and the Same-Origin Policy
Researchers demonstrated that prompt injection combined with browser-agent capabilities can cross traditional web security boundaries and expose cross-origin information. agent-security.cs.washington.edu
GitHub Advisory — CVE-2026-55525 PraisonAI Agent SSRF
Model-callable crawling tool could follow redirects into cloud metadata, localhost, and internal resources. GitHub
Spring AI AgentCore — Browser Tool SSRF Vulnerability
AI browser callbacks accepted model-supplied URLs without adequate internal-network validation. GitHub
Hermes Agent — Local Browser SSRF Protection Bypass
Default local browser tooling could access localhost, internal networks, and cloud metadata endpoints. GitHub
OWASP — AI Agent Security Cheat Sheet OWASP Cheat Sheet Series
OWASP — Prompt Injection Guidance

