Principle:AIPexStudio AIPex URL Security Guard
| Knowledge Sources | |
|---|---|
| Domains | Security, Network_Security |
| Last Updated | 2026-10-24 12:00 GMT |
Overview
A security layer that validates URLs before allowing sandboxed code to make network requests, preventing Server-Side Request Forgery (SSRF) attacks from untrusted skill scripts.
Description
When untrusted code runs in a sandbox with access to a `fetch` API, it could attempt to access internal network resources (localhost, private IPs, metadata endpoints) to exfiltrate data or attack internal services. URL Security Guard validates every URL before a network request is made, blocking requests to private IP ranges, localhost, link-local addresses, and known SSRF targets. Only public, routable URLs are allowed. This is the network-level complement to the VM sandbox's execution isolation.
Usage
Use this principle when untrusted code has access to any network API. It is essential for any sandbox that exposes `fetch` or similar network capabilities to third-party scripts.
Theoretical Basis
assertSkillFetchUrlAllowed(url):
parse URL
resolve hostname → IP addresses
block if:
- localhost / 127.0.0.0/8
- private ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)
- link-local (169.254.0.0/16, including cloud metadata 169.254.169.254)
- IPv6 loopback (::1), link-local (fe80::/10)
allow: public routable addresses only