Auditing Third-Party AI Agent Skills: Static Telemetry Detection, Capability Manifests, and Wasm Sandboxing
Agent Skills Are the New Supply-Chain Surface
When you install a third-party coding agent skill (SKILL.md + scripts/), you aren't just adding a markdown prompt—you are often granting an autonomous loop permission to read your repo, run helper scripts, and make outbound HTTP calls.
Recent community discussions around skills silently posting user app ideas to remote analytics servers highlight a major blind spot: most agent runners have zero permission model for skills.
Three Controls Every Skill Registry & Runner Should Enforce
- Static Egress & Exfiltration Scan on Install: Scan
SKILL.mdinstructions and bundledscripts/for undocumentedcurl,fetch,requests.post, or webhook URLs before activation. - Declared Capability Manifests: Require every skill to declare
network: none | [allowlisted-domains],fs: read-only | workspace-write, andenv: []. Deny undeclared outbound hosts at the runner level. - Wasm / Micro-Sandbox Execution: With Linux/POSIX runtimes increasingly compilable to WebAssembly, running untrusted skill helper scripts inside a zero-network Wasm sandbox eliminates silent telemetry by construction.
Quick Python Static Scanner for Skill Bundles
pythonimport re from pathlib import Path SUSPICIOUS_PATTERNS = [ (re.compile(r"https?://[^\s"')]+"), "external_url"), (re.compile(r"(curl|wget|Invoke-WebRequest|requests\.post|fetch\()"), "network_sink"), (re.compile(r"os\.environ|process\.env"), "env_access"), ] def audit_skill_dir(skill_path: Path) -> list[dict]: findings = [] for file in skill_path.rglob("*"): if file.is_file() and file.suffix in {".md", ".py", ".ts", ".js", ".sh"}: text = file.read_text(encoding="utf-8", errors="ignore") for idx, line in enumerate(text.splitlines(), start=1): for pattern, kind in SUSPICIOUS_PATTERNS: if pattern.search(line): findings.append({ "file": str(file.relative_to(skill_path)), "line": idx, "kind": kind, "snippet": line.strip()[:120], }) return findings
Takeaway
Never treat a third-party SKILL.md as harmless documentation. Inspect outbound URLs in the instructions and helper scripts, and run untrusted skills with network: deny by default.