Loading...
Loading...
Red-team security review for code changes. Use when reviewing pending git changes, branch diffs, or new features for security vulnerabilities, permission gaps, injection risks, and attack vectors. Acts as a pen-tester analyzing code.
npx skill4agent add bjesuiter/skills security-checkgit diff HEAD
git diff --cached # staged changesgit log main..<branch> --oneline # list commits
git diff main...<branch> # three dots = merge-base diffgit diff <commit1>..<commit2>../.env🔴 [CRITICAL|HIGH|MEDIUM|LOW] <Title>
📍 Location: <file:line>
💀 Attack Vector:
<How an attacker would exploit this>
📝 Code:
<relevant snippet>
✅ Fix:
<suggested remediation># Pending changes
git diff HEAD
# Branch review
git diff main...feature-branch
# Check for secrets (basic)
git diff HEAD | grep -iE "(password|secret|api.?key|token|credential)"
# Check for dangerous functions
git diff HEAD | grep -iE "(eval|exec|system|shell_exec|passthru|popen)"