security-diff-review

Review code diffs for security issues across auth, input, and dependencies.

Updated Jun 28, 2026
One-click install
npx skills add https://github.com/Mesteriis/Engineering-Bible-AI --skill security-diff-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-diff-review
Source: https://github.com/Mesteriis/Engineering-Bible-AI/tree/main/skills/security-diff-review
Command: npx skills add https://github.com/Mesteriis/Engineering-Bible-AI --skill security-diff-review

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill provides a comprehensive and structured approach to reviewing authorized diffs, helping developers maintain robust security measures against regressions.

Core Features & Use Cases

  • Security-Scoped Diff Review: Automatically analyze code changes for security-related issues.
  • Narrow Threat Model: Build a tailored threat model for the affected code sections.
  • Findings Validation: Ensure findings are backed by code evidence or marked as unvalidated.
  • Remediation and Reporting: Provide insights on severity, exploit paths, confidence levels, and remediation options.
  • Focus Areas: Security concerns around authentication, authorization, tenant isolation, input validation, file systems, and dependencies.

Quick Start

Review the diff for security regressions in the 'latest_code_diff.zip' by executing 'security-diff-review latest_code_diff.zip'.

Frequently Asked Questions about security-diff-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate security code review for git diffs in CI/CD?

Automated security diff review works by analyzing code changes to identify regressions in authentication, input validation, and filesystem operations before they merge. It builds a narrow threat model for the affected sections and validates findings with code evidence.

What is a narrow threat model in diff analysis security?

A narrow threat model in diff analysis security focuses specifically on the altered code sections to identify targeted risks like tenant isolation or authorization flaws. This approach ensures security validation is backed by concrete evidence from the actual changes.

How do I review code changes for secrets and supply-chain vulnerabilities?

Review code changes for secrets and supply-chain vulnerabilities by executing the diff review script against your archive file. It automatically detects hardcoded secrets, dependency vulnerabilities, and CI/CD configuration risks while collecting evidence for remediation.

Does this security review tool validate findings with code evidence?

Yes, this security review tool validates findings by requiring concrete code evidence from the diff. If a potential security issue cannot be definitively linked to the code changes, it is explicitly marked as unvalidated to prevent false positives.

Can I use diff analysis to check tenant isolation and authorization regressions?

Yes, you can use diff analysis to check tenant isolation and authorization regressions by targeting these specific focus areas during the review. The analysis evaluates the modified code paths to ensure access controls remain strictly enforced.

What are the limitations of automated security diff review?

The primary limitation of automated security diff review is its narrow scope, analyzing only the provided code changes rather than the entire codebase. Complex logic flaws or architectural vulnerabilities outside the immediate diff context may not be detected.