← 返回
安全合规 中文

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...
在发布前对 git 提交、仓库及技能进行安全审计。会在 `git commit`、`git push` 或 `clawhub publish` 前自动运行。检测...
zero2ai-hub
安全合规 clawhub v1.0.0 1 版本 99821.1 Key: 无需
★ 0
Stars
📥 558
下载
💾 4
安装
1
版本
#latest

概述

Security Audit

Run scripts/audit.py before every commit, push, or skill publish. No exceptions.

When to run

TriggerCommand
------
Before git commitpython3 {skill_dir}/scripts/audit.py --staged
Before git pushpython3 {skill_dir}/scripts/audit.py --last-commit
Before clawhub publish python3 {skill_dir}/scripts/audit.py
Ad-hoc scan any pathpython3 {skill_dir}/scripts/audit.py

{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

SeverityPattern
------
🔴 HIGHAPI keys, secrets, passwords, JWT tokens, WooCommerce keys, AWS keys, private key blocks, bearer tokens, .env files
🟡 MEDIUMAbsolute /home// paths, /root/ paths, refresh tokens, node_modules/ committed
🔵 LOWHardcoded 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 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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 09:27 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,212 📥 266,280
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,706
productivity

Trading Journal

zero2ai-hub
记录每笔交易的完整背景(逻辑、入场、出场、盈亏、情绪、教训),生成周度与月度业绩报告,并分析盈亏模式...
★ 2 📥 2,934