> "Trust but verify. Always."
This skill protects your workspace by performing security and due diligence checks before installing any external skill.
Before installing any external skill from ClawHub, this skill:
This skill performs actual content analysis on skill files:
| Pattern | Severity | Example |
|---|---|---|
| --------- | ---------- | --------- |
eval() | CRITICAL | Code execution |
exec() | CRITICAL | Code execution |
subprocess | HIGH | Shell commands |
| API keys/tokens | CRITICAL | sk-xxx, ghp_xxx |
base64 decode | MEDIUM | Obfuscation |
__import__ | MEDIUM | Dynamic imports |
# Get skill security report
npx clawhub inspect <skill-slug> --security
What to check:
Action if flagged: → ABORT immediately
# Fetch skill files
npx clawhub inspect <skill-slug> --files
# Analyze each file for:
# - Prompt injection patterns
# - Suspicious API calls (curl, fetch to unknown domains)
# - Hardcoded secrets/keys
# - Eval() or code execution
# - Base64 encoded strings (potential obfuscation)
# - External network calls without justification
Analysis criteria:
| Pattern | Risk Level | Action |
|---|---|---|
| --------- | ------------ | -------- |
eval( | CRITICAL | ABORT |
subprocess without params | HIGH | Flag for review |
curl to unknown domain | HIGH | Flag for review |
| Hardcoded API key | CRITICAL | ABORT |
| Base64 encoded blob | MEDIUM | Flag for review |
| External URL fetch | MEDIUM | Flag for review |
| Clean code | LOW | Pass |
Assumption: All external skills are potentially malicious until proven otherwise.
Questions to answer:
Check existing skills:
npx clawhub search <related-topic>
ls skills/*/SKILL.md | xargs grep -l "<topic>"
Conflict detection:
Generate a report with:
## Skill Install Report: <skill-name>
### Security Status
- [ ] PASSED / [ ] FAILED
### Security Details
- ClawHub report: <status>
- Code analysis: <findings>
### Integration Status
- Purpose: <useful/useless>
- Conflicts: <list>
- Value: <high/medium/low>
### Recommendation
[PROCEED] / [ABORT] / [REVIEW]
### Owner Decision Required
Please confirm before I proceed with installation.
python3 skills/skill-install-guardian/scripts/check.py <skill-slug>
python3 skills/skill-install-guardian/scripts/check.py <skill-slug> --quick
npx clawhub install <skill-slug>
1. Owner: "Install skill X"
2. Me: Run skill-install-guardian
3. Guardian: Security Check v1
4. Guardian: Security Check v2 (if v1 passes)
5. Guardian: Integration Check
6. Guardian: Report to owner
7. Owner: Confirm or abort
8. If confirmed: Install
{
"skill": "example-skill",
"version": "1.0.0",
"security": {
"v1_clawhub": "PASS",
"v2_code_analysis": {
"status": "PASS",
"issues_found": []
}
},
"integration": {
"purpose": "useful",
"conflicts": [],
"value": "high"
},
"recommendation": "PROCEED",
"owner_decision": "PENDING"
}
Security first. Always verify.
共 1 个版本