Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:AIPexStudio AIPex URL Security Guard

From Leeroopedia
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

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment