返回顶部
z

zero2ai-security-audit

Security auditing for git commits, repos, and skills before publishing. Run automatically before any `git commit`, `git push`, or `clawhub publish`. Detects hardcoded secrets, API keys, tokens, absolute paths, committed node_modules, .env files, and other sensitive patterns. Use when reviewing code for security issues, pre-publishing skills, or investigating a potential secret exposure.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
275
下载量
0
收藏
概述
安装方式
版本历史

zero2ai-security-audit

# Security Audit Run `scripts/audit.py` before every commit, push, or skill publish. No exceptions. ## When to run | Trigger | Command | |---|---| | Before `git commit` | `python3 {skill_dir}/scripts/audit.py --staged` | | Before `git push` | `python3 {skill_dir}/scripts/audit.py --last-commit` | | Before `clawhub publish <path>` | `python3 {skill_dir}/scripts/audit.py <skill_path>` | | Ad-hoc scan any path | `python3 {skill_dir}/scripts/audit.py <path>` | `{skill_dir}` = `/home/aladdin/.openclaw/workspace/skills/skill-security-audit` ## Exit codes - `0` = clean - `1` = HIGH or MEDIUM findings (block publish/push) - `2` = usage error ## What it detects | Severity | Pattern | |---|---| | 🔴 HIGH | API keys, secrets, passwords, JWT tokens, WooCommerce keys, AWS keys, private key blocks, bearer tokens, `.env` files | | 🟡 MEDIUM | Absolute `/home/<user>/` paths, `/root/` paths, refresh tokens, `node_modules/` committed | | 🔵 LOW | Hardcoded IPs, long base64 strings | ## Rules 1. **HIGH findings = hard block.** Never commit or publish with HIGH findings. Rotate any exposed secret immediately. 2. **MEDIUM findings = fix before publish.** Replace absolute paths with relative or env-var defaults. Remove `node_modules/`. 3. **LOW findings = review.** Not blocking but investigate. 4. **False positives:** If a match is a variable name or safe placeholder (not an actual value), document why it's safe in a comment and re-run. ## After finding a real secret 1. **Do NOT push the commit.** If already pushed: rotate the secret immediately, then rewrite history or delete the file from git. 2. Rotate in the provider portal (TikTok Dev, AWS IAM, WooCommerce, etc.) 3. Move to env var: `process.env.SECRET_NAME` or read from a local config file outside the repo. 4. Add the config file path to `.gitignore`. 5. Report to Aladdin immediately with severity and what was exposed. ## Skill publish checklist Before `clawhub publish`: - [ ] `audit.py <skill_path>` returns 0 (clean) - [ ] `node_modules/` not present in skill folder - [ ] No absolute paths to user home directories - [ ] No hardcoded business-specific IDs or credentials - [ ] `package.json` name matches skill folder name - [ ] SKILL.md description updated if renamed

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 zero2ai-security-audit-1776289180 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 zero2ai-security-audit-1776289180 技能

通过命令行安装

skillhub install zero2ai-security-audit-1776289180

下载 Zip 包

⬇ 下载 zero2ai-security-audit v1.0.0

文件大小: 5.54 KB | 发布时间: 2026-4-16 17:39

v1.0.0 最新 2026-4-16 17:39
Initial release of zero2ai-security-audit for automated security checks.

- Automatically audits git commits, pushes, and skill publishing for sensitive info and patterns.
- Detects secrets, API keys, tokens, private key blocks, committed node_modules, .env files, absolute paths, and more.
- Enforces blocking rules for HIGH and MEDIUM severity findings to prevent accidental exposure.
- Provides clear instructions, severity definitions, and remediation steps.
- Includes a publish checklist to ensure best security practices before release.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部