name: security-scan description: Security review workflow for OpenClaw skills and other small code folders. Use when auditing a skill before publishing or installing it, checking for dangerous code patterns, possible hardcoded secrets, risky file permissions, or lightweight supply-chain concerns. Best for quick static review and cautious go/no-go recommendations, not full malware analysis or sandbox forensics.
Perform a lightweight security review before trusting, publishing, or installing a skill.
Use this skill to: - inspect a skill directory for obviously dangerous code patterns - look for likely hardcoded credentials or tokens - flag risky file permissions - produce a concise risk summary with recommended next steps
This skill is intentionally conservative and lightweight. Treat findings as review signals, not proof of compromise.
Do not claim capabilities that are not present in the bundled resources.
This skill does not provide: - true sandbox execution - system call tracing - network traffic capture - dependency CVE resolution from external databases - automatic approval or rejection logic
If deeper reverse engineering or threat analysis is needed, do a manual review and use stronger external tooling.
scripts/scan.shRun the included shell scanner for a quick static pass:
bash scripts/scan.sh /path/to/target
The script currently checks for:
- suspicious function names such as eval(, exec(, system(, and spawn(
- simple hardcoded-secret patterns
- world-writable files
Because the script uses grep-style heuristics, expect both false positives and false negatives.
Confirm what you are reviewing: - target directory - whether it is a skill, script bundle, or general code folder - whether the goal is publish review, install review, or a quick sanity check
From the skill directory:
bash scripts/scan.sh /path/to/target
If the target is the current directory:
bash scripts/scan.sh .
Do not stop at raw matches. Inspect the surrounding code and decide whether each finding is: - expected and justified - suspicious but explainable - high-risk and likely unacceptable
Pay special attention to: - shell execution that touches untrusted input - outbound network access - credential handling - writes outside the working directory - self-modifying or persistence-oriented behavior
Summarize the result in plain language using a simple rubric: - Low risk: no meaningful issues found in this lightweight review - Needs review: suspicious patterns or ambiguous findings require manual inspection before trust - High risk: clear dangerous behavior, likely secrets, or unjustified execution patterns
Examples: - publish/install as-is - publish/install only after removing a flagged pattern - rotate exposed credentials - request source clarification from the author - escalate to deeper manual or sandboxed analysis
Use a compact structure like this:
7w4.net有更好的技能外掛。
Security scan summary
- Target: <path>
- Result: Low risk | Needs review | High risk
- Findings:
- <finding 1>
- <finding 2>
- Confidence: Low | Medium | High
- Recommended action: <next step>
質量中等偏上,勝在文件完整、定位清晰、操作簡單。SKILL.md 提供了從使用流程到風險判斷的完整指南,掃描指令碼開箱即用,非常適合非安全專業人員做初步檢查。但指令碼檢查項較少,複雜安全問題容易漏掉,適合當作安全意識提醒工具,而非專業審計替代品。期望不高的場景下很有用。