Jump to related tools in the same category or review the original source on GitHub.

CLI Utilities @itsnishi Updated 4/9/2026

Audit Code OpenClaw Plugin & Skill | ClawHub

Looking to integrate Audit Code into your AI workflows? This free OpenClaw plugin from ClawHub helps you automate cli utilities tasks instantly, without having to write custom tools from scratch.

What this skill does

Security-focused code review for hardcoded secrets, dangerous calls, and common vulnerabilities

Install

npx clawhub@latest install audit-code

Full SKILL.md

Open original
Metadata table.
namedescriptiondisable model invocation
audit-codeSecurity-focused code review for hardcoded secrets, dangerous calls, and common vulnerabilitiestrue

SKILL.md content below is scrollable.

audit-code -- Project Code Security Review

Security-focused code review of project source code. Covers OWASP-style vulnerabilities, hardcoded secrets, dangerous function calls, and patterns relevant to AI-assisted development.

What to do

Run the auditor against the target path:

python3 "$SKILL_DIR/scripts/audit_code.py" "$ARGUMENTS"

If $ARGUMENTS is empty, default to $PROJECT_ROOT.

What it checks

  • Hardcoded secrets -- API keys (AWS, GitHub, Stripe, OpenAI, Slack), tokens, private keys, connection strings, passwords
  • Dangerous function calls -- eval, exec, subprocess with shell=True, child_process.exec, pickle deserialization, system(), gets(), etc.
  • SQL injection -- String concatenation/interpolation in SQL queries
  • Dependency risks -- Known hallucinated package names, unverified installations
  • Sensitive files -- .env files committed to git, credential files in repo
  • File permissions -- Overly permissive chmod patterns
  • Exfiltration patterns -- Base64 encode + network send, DNS exfiltration, credential file reads

Output

Structured report with severity-ranked findings, file locations, and actionable remediation steps.

When to use

  • Before committing or pushing code
  • When reviewing third-party contributions or PRs
  • As part of a periodic security audit of the codebase
  • After AI-assisted code generation to verify no secrets or vulnerabilities were introduced

Advisory hooks

The repository's .claude/settings.json includes PreToolUse hooks that warn on dangerous Bash and Write operations. These hooks are advisory only -- they produce warnings but do not block execution.

  • audit-code is the detection layer for source code security issues
  • The hooks provide supplementary runtime warnings during agent operation
  • To enforce blocking, hooks must return {"decision": "block"} instead of warning messages
Original Repository URL: https://github.com/openclaw/skills/blob/main/skills/itsnishi/audit-code
Latest commit: https://github.com/openclaw/skills/commit/2210fb5240f240d5cbf816bfbe2ddd7ac69b6f75

Related skills

If this matches your use case, these are close alternatives in the same category.