Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

secrets-audit秘密审计

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

3,096

周安装

133

GitHub Stars

公开资料未说明

下载量

1,085
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:secrets-audit(秘密审计)
来源仓库:https://github.com/charlie-morrison/secrets-audit
安装命令:
openclaw skills install secrets-audit
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install secrets-audit

简介

secrets-audit 扫描代码库与配置文件,识别硬编码的 API 密钥、令牌与敏感凭证。

  • 适用于 CI/CD 流水线集成、开源项目贡献前检查或内部安全合规扫描。
  • 支持多种编程语言与框架模板匹配,提高误报率的同时降低漏检风险。
  • 检测结果需人工复核,避免因正则表达式局限产生假阳性或假阴性报告。
  • 禁止在生产环境直接执行破坏性清理操作,应先隔离问题文件再逐步修复。

SKILL.md

name
secrets-audit
description
Scan projects and codebases for exposed secrets, API keys, tokens, passwords, and sensitive credentials. Detects hardcoded secrets in source code, config files, environment files, and git history. Use when asked to audit a project for secrets, check for exposed credentials, scan for API keys, find hardcoded passwords, review security of a codebase, check for leaked tokens, audit .env files, or verify no secrets are committed. Triggers on "secrets audit", "scan for secrets", "find exposed keys", "check for credentials", "security scan", "leaked secrets", "hardcoded passwords", "API key exposure", "credential check".

Secrets Audit

Scan any project directory for exposed secrets, hardcoded credentials, and sensitive data leaks. Produces a severity-ranked report with remediation steps.

Quick Start

# Full project scan
python3 scripts/scan_secrets.py /path/to/project

# Scan with git history check
python3 scripts/scan_secrets.py /path/to/project --git-history

# Scan specific file types only
python3 scripts/scan_secrets.py /path/to/project --extensions .py,.js,.ts,.env,.yml,.json

# JSON output for CI integration
python3 scripts/scan_secrets.py /path/to/project --format json

What Gets Detected

High Severity

  • API keys (AWS, GCP, Azure, OpenAI, Stripe, etc.)
  • Database connection strings with credentials
  • Private keys (RSA, SSH, PGP)
  • OAuth tokens and refresh tokens
  • JWT secrets and signing keys
  • Password fields with literal values

Medium Severity

  • .env files with populated secrets
  • Config files with credentials (database.yml, settings.py, etc.)
  • Hardcoded URLs with embedded auth (user:pass@host)
  • Webhook URLs with tokens
  • Generic high-entropy strings in assignment context

Low Severity

  • TODO/FIXME comments mentioning secrets
  • Placeholder credentials (admin/admin, test/test)
  • Example API keys in documentation
  • Commented-out credentials

Ignored (False Positive Reduction)

  • Lock files (package-lock.json, yarn.lock, etc.)
  • Binary files
  • Minified JS/CSS
  • Test fixtures clearly marked as fake
  • node_modules, .git, vendor directories

Scan Output

The scanner produces a structured report:

=== Secrets Audit Report ===
Project: /path/to/project
Scanned: 247 files | Skipped: 1,203 files
Time: 2.3s

--- HIGH SEVERITY (3 findings) ---

[H1] AWS Access Key ID
  File: src/config/aws.js:14
  Match: AKIA...EXAMPLE
  Context: const accessKey = "AKIA..."
  Fix: Move to environment variable AWS_ACCESS_KEY_ID

[H2] Database Password
  File: config/database.yml:8
  Match: password: "pr0duction_p@ss"
  Fix: Use DATABASE_URL env var or secrets manager

--- MEDIUM SEVERITY (5 findings) ---
...

--- SUMMARY ---
High: 3 | Medium: 5 | Low: 2 | Total: 10
Recommendation: Rotate all HIGH severity credentials immediately

Workflow

1. Scan

Run scripts/scan_secrets.py against the target directory. The script:

  • Recursively walks the directory tree
  • Skips binary files, lock files, and dependency directories
  • Applies 40+ regex patterns from references/secret-patterns.md
  • Calculates entropy for potential secrets
  • Deduplicates findings

2. Review

Present findings grouped by severity. For each finding:

  • Show the file, line number, and surrounding context
  • Explain what type of secret was found
  • Assess whether it's a real secret or false positive

3. Remediate

For each confirmed finding, provide specific remediation:

  • Which environment variable to use
  • How to add to .gitignore
  • Whether the secret needs rotation (if committed to git)
  • Example code showing the fix

4. Verify

After remediation:

  • Re-run the scan to confirm fixes
  • Check git history if secrets were ever committed
  • Recommend adding pre-commit hooks to prevent future leaks

Git History Scanning

When --git-history flag is used, the script also checks:

  • Deleted files that contained secrets
  • Previous versions of files that had secrets removed
  • Commits with "secret", "password", "key" in messages

Important: if a secret was ever committed to git, it must be rotated even if later removed — it exists in git history.

CI Integration

The script returns exit codes for CI pipelines:

  • 0 — No findings
  • 1 — Low/medium findings only
  • 2 — High severity findings (should block deployment)

JSON output (--format json) can be parsed by CI tools for automated reporting.

Pre-commit Hook Setup

After an audit, recommend setting up a pre-commit hook. See references/prevention-guide.md for hook installation and configuration.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

70.85%
按下载量换算769

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills