with one click
security-scan-diff
// Scan for malicious code in git diff between a tag/commit and HEAD
// Scan for malicious code in git diff between a tag/commit and HEAD
Generates and syncs AI rule configuration files (.cursorrules, CLAUDE.md, copilot-instructions.md) across 20+ coding tools from a single source. Use when syncing AI rules, running rulesync commands, importing or generating rule files, or managing shared AI coding configurations.
Maps rulesync feature implementations to upstream coding-agent documentation. Use when evaluating rulesync issues, comparing any coding-agent client with rulesync source capability surfaces, checking support, or planning a client map.
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
Draft a new release of the project.
Create a GitHub issue with detailed description, purpose, and appropriate labels
Dry run for release: summarize changes since last release and suggest version bump.
| name | security-scan-diff |
| description | Scan for malicious code in git diff between a tag/commit and HEAD |
| targets | ["*"] |
target_ref = $ARGUMENTS
If target_ref is not provided, ask the user which tag or commit to compare against HEAD.
Thoroughly check for malicious code in the diff between ${target_ref} and the latest commit (HEAD).
Verify the target ref exists and get the diff scope.
git log ${target_ref}..HEAD --oneline to list commits.git diff ${target_ref}..HEAD --stat to get file change statistics.Execute the following security reviews in parallel using subagents:
Call security-reviewer subagent to review CI/CD and workflow files (.github/, scripts/) for:
${{ github.event.* }} direct expansion in run:)curl | bash, eval, base64 decode execution)pull_request_target usageCall security-reviewer subagent to review source code files (src/) for:
eval, Function constructor, suspicious child_process usage)../.. directory escape)fetch, http.request, axios to external URLs)package.json changes)Call security-reviewer subagent to review config and documentation files for:
package.jsonIntegrate the results from all subagents and produce a unified report in the following format:
## Security Review Report: ${target_ref} -> HEAD
### Conclusion
- Whether malicious code was detected or not
### Check Results Summary Table
| Check Item | Result |
|------------|--------|
| ... | ... |
### Findings (if any)
| Severity | Description | File | Risk |
|----------|-------------|------|------|
| ... | ... | ... | ... |
### Recommendations (if any)
- Actionable recommendations for each finding
### Positive Observations
- Good security practices found in the diff