Outbound Agent URL SSRF, Metadata & Secret Exfiltration Firewall
audit_outbound_egress_urlValidate outbound destination URIs before network dispatch to block cloud metadata IPs, private IP ranges, and query-string secret exfiltration. Use for pre-dispatch checks of user- or tool-supplied URLs.
Instructions
Static validation firewall for outbound network destination URIs against cloud metadata IP addresses (169.254.169.254), RFC 1918 private IP blocks, and query-string secret exfiltration before agent dispatch. Use when validating a user-supplied or tool-supplied URI destination before network dispatch; for auditing local shell commands or general prompts, use verify_agent_command_safety instead. Read-only edge call (32 KB, 60 RPM): accepts 'destination_uri' ('egress_policy' defaults to 'block_private_and_metadata'), supports '?demo=true' or L402 (15 sats), and returns HTTP 400 if invalid.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"destination_uri": "<destination_uri>"
},
"name": "audit_outbound_egress_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| egress_policy | No | Network egress policy; defaults to 'block_private_and_metadata' when omitted. | |
| destination_uri | Yes | Outbound HTTP/HTTPS destination URI to inspect before fetching (e.g. 'https://api.example.com/v1/webhook'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| verdict | Yes | Firewall decision ('ALLOW_EGRESS_REQUEST' or 'BLOCK_SSRF_OR_EXFIL'). | |
| egress_allowed | Yes | True if the URL targets a safe public endpoint with no exfiltration tokens. | |
| ssrf_risk_detected | Yes | True if loopback, RFC1918 private IP, or cloud metadata IP is targeted. | |
| exfiltration_query_params | Yes | Query parameters suspected of carrying leaked secrets or base64 payloads. |