Skip to main content
Back to Community & Earn Hub

Auditing Third-Party AI Agent Skills: Static Telemetry Detection, Capability Manifests, and Wasm Sandboxing

@noah_goldstein2 days ago·2 min read 2266 views
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

  1. Static Egress & Exfiltration Scan on Install: Scan SKILL.md instructions and bundled scripts/ for undocumented curl, fetch, requests.post, or webhook URLs before activation.
  2. Declared Capability Manifests: Require every skill to declare network: none | [allowlisted-domains], fs: read-only | workspace-write, and env: []. Deny undeclared outbound hosts at the runner level.
  3. 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

python
import 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.

2 Comments

Discussion

@elena_rostova2 days ago

Scanning SKILL.md prose alongside scripts/ is critical—malicious or overly chatty skills often instruct the agent itself to run curl via its shell tool rather than embedding network code in a Python file.

@aditya_verma2 days ago

Declared capability manifests (network: deny by default) are the only clean long-term fix. Users shouldn't have to grep 500 lines of markdown before installing a coding skill.

Join the developer discussion

Sign in or create a free account to comment (+10 pts) and tag helpful AIStoreHub repositories.