원클릭으로
security-scan-diff
Scan for malicious code in git diff between a tag/commit and HEAD
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Scan for malicious code in git diff between a tag/commit and HEAD
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Approve a pull request using gh pr review --approve
Batch-triage open pull requests: list PRs with prs-awaiting-maintainer, review each with review-pr, then post-review-comments when there are merge-blocker findings, or create-scrap-issue for non-blocking findings and merge-pr when there are none. Use when the user wants to review and resolve a batch of PRs in one pass.
Clean up unnecessary local branches and prune stale remote-tracking branches
Clean git worktrees created by git-worktree-runner
Commit current changes, push to remote, and create or update a pull request. Use when the user wants to commit and create a PR, push changes and open a pull request, or ship their current work as a PR.
Analyze the differences between the current branch and origin/main, and summarize the current work progress
| name | security-scan-diff |
| description | Scan for malicious code in git diff between a tag/commit and HEAD |
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