You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: skills/agentguard/SKILL.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -284,7 +284,7 @@ Detect tampered or unregistered skill packages by comparing file hashes against
284
284
Scan workspace files for leaked secrets using AgentGuard's own detection patterns.
285
285
286
286
**Steps**:
287
-
1. Use Grep to scan `$OC/workspace/`(especially `memory/`and `logs/`) with patterns from:
287
+
1. Use Grep to scan `$OC/workspace/`**recursively, covering all agent subdirectories** (e.g. all `workspace-agent-*/`directories, not just the current agent's workspace) with patterns from:
288
288
- scan-rules.md Rule 7 (PRIVATE_KEY_PATTERN): `0x[a-fA-F0-9]{64}` in quotes
289
289
- scan-rules.md Rule 8 (MNEMONIC_PATTERN): BIP-39 word sequences, `seed_phrase`, `mnemonic`
- Mnemonics: sequences of 12+ BIP-39 words, `seed_phrase`, `mnemonic`
622
-
- API keys/tokens: `AKIA[0-9A-Z]{16}`, `gh[pousr]_[A-Za-z0-9_]{36}`, plaintext passwords
619
+
3.**[REQUIRED] Sensitive credential scan / DLP** (→ feeds Dimension 2: Credential Safety): Use Grep to scan **all** agent workspace directories for leaked secrets. This MUST cover the entire workspace root, not just the current agent's directory:
620
+
- For OpenClaw / QClaw: scan `~/.openclaw/workspace/` and `~/.qclaw/workspace/` recursively — this includes **all**`workspace-agent-*/` subdirectories, not just the current agent's workspace
- Mnemonics: sequences of 12+ BIP-39 words, `seed_phrase`, `mnemonic`
625
+
- API keys/tokens: `AKIA[0-9A-Z]{16}`, `gh[pousr]_[A-Za-z0-9_]{36}`, plaintext passwords
626
+
-**Important**: Use the workspace *root* directory as the scan target (e.g. `~/.qclaw/workspace/`), not a specific agent subdirectory. All sibling `workspace-agent-*` directories must be included.
623
627
4.**[REQUIRED] Network exposure** (→ feeds Dimension 3: Network & System): Run `lsof -i -P -n 2>/dev/null | grep LISTEN` or `ss -tlnp 2>/dev/null` to check for dangerous open ports (Redis 6379, Docker API 2375, MySQL 3306, MongoDB 27017 on 0.0.0.0)
0 commit comments