/security-guardrails:agent-config-security-auditfrom security-guardrails
Audits agent configuration files for security issues including hardcoded secrets, wildcard permissions, hook injection risks, and unpinned MCP servers. Run before committing config changes or onboarding repos.
Ships in security-guardrails. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Systematic security review of agent configuration files. Run before committing config changes or onboarding a new repository.
.claude/settings.json, .claude/mcp.json, AGENTS.md, hooks)Audit every config file present:
| File | Agent |
|---|---|
.claude/settings.json | Claude Code |
.claude/mcp.json (or project-root mcp.json) | Claude Code |
.codex/config.toml | Codex |
docs/AGENTS.md (project root) | Generic/Codex |
docs/CLAUDE.md (project root) | Claude Code |
hooks/ | Any |
plugins/*/plugin.json | Agent Powerups |
.apx/relay/*.json | apx relay |
$ENV_VAR or process.env.* — never literal values.env and .env.local files are in .gitignoreenv fields contain variable references, not valuesP0 (block immediately): Hardcoded secret in any committed file.
allowedTools is scoped — no Bash(*) wildcard granting unrestricted shell accessdeniedTools list is present and non-empty for risky operations--no-verify, --force, or safety-bypass flags in hook commandsP0: Bash(*) or equivalent wildcard in allow list.
P1: No deniedTools list when Bash is in scope.
${file}, ${input}, or other user-interpolated variablescurl, wget) in hooks without explicit user knowledge2>/dev/null, || true)P0: Command injection via interpolation in any hook. P1: Silent error suppression on a security or quality hook.
npx -y without a pinned version or digestdescription fieldP1: Unpinned npx -y auto-install in MCP server config.
P1: Auto-run instruction with shell exec; unconditional safety override.
plugins/NAME/.codex-plugin/plugin.json) declares tool access scoped to its purposelatest.apx/relay/) are in .gitignore| Severity | Definition | Response |
|---|---|---|
| P0 | Can directly compromise security or leak secrets | Fix before any commit; do not push |
| P1 | Increases attack surface or weakens safety controls | Fix before merging; document exception if deferred |
| Note | Best practice not followed, no direct risk | Fix in follow-up; log as tech debt |
Agent Config Security Audit — <project>/<date>
P0 findings:
[P0] <file>:<line> — <description>
Fix: <what to change>
P1 findings:
[P1] <file>:<line> — <description>
Fix: <what to change>
Notes:
[Note] <file> — <description>
Summary: <N> P0, <N> P1, <N> Notes
If no findings: state "No findings." explicitly.
What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/filesystem-mcp-guardrailsUse when designing or reviewing filesystem MCP access, path boundaries, allowed roots, method allowlists, and safe local file operations./hook-safety-reviewUse when a hook is about to be enabled or modified -- a hook recipe proposed for activation, a pre/post-tool or lifecycle hook added to agent settings, a git pre-commit hook added to a repo, or a third-party hook snippet pasted in from outside./mcp-risk-reviewUse when an MCP server is about to be enabled, added to agent config, or upgraded -- a staged server config is a candidate for activation, a third-party server is proposed from a registry, or an existing entry changes transport, credentials, or tool surface./red-team-eval-authoringUse when creating or reviewing red-team eval plugins, attack templates, grader rubrics, safety fixtures, or model-risk test metadata./secret-leak-preflightUse when about to commit, push, or publish -- staged changes touch config or environment files, generated artifacts (relay sessions, logs, build output) are being added, or the session handled credentials even indirectly.npx claudepluginhub yeaight7/agent-powerups --plugin security-guardrailsOther plugins' skills for the same job