security-review

Audit code diffs for security regressions across authentication, inputs, and cryptography.

Updated Dec 21, 2018
One-click install
npx skills add https://github.com/dhnt/dhnt --skill security-review-dhnt
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: security-review
Source: https://github.com/dhnt/dhnt/tree/main/catalog/md/review/security-review
Command: npx skills add https://github.com/dhnt/dhnt --skill security-review-dhnt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It reduces the risk of shipping changes that introduce new security vulnerabilities by forcing a targeted audit of the diff with a threat-model-first lens.

Core Features & Use Cases

  • Diff-focused security scanning: Prioritizes changes that touch trust boundaries, auth paths, secrets, and parsers.
  • Vulnerability vs. hardening separation: Produces a structured output that distinguishes true exploit paths from defense-in-depth improvements.
  • Scope-aware review checks: Calls out injection classes, resource exhaustion, insecure defaults, deserialization risks, and supply-chain changes.
  • Go/tooling aligned guidance: Recommends cross-referencing against known framework anti-patterns and reading dependency advisories when applicable.
  • Use Case: Review a PR that adds a new API endpoint and logging; use this skill to confirm authentication still holds, inputs are validated, secrets are not introduced, and dependency or pipeline changes are safe.

Quick Start

Use the security-review skill to audit the pending changes for security regressions and produce a verdict plus a vulnerabilities and hardening list formatted for PR feedback.

Frequently Asked Questions about security-review

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

FAQPage Schema
How do I check a pull request diff for security regressions before merging?▼

To check a pull request diff for security regressions, audit pending code changes with a threat-model-first lens to identify modified trust boundaries, auth paths, and parsers. This process distinguishes true exploit paths from defense-in-depth improvements.

What is threat modeling in the context of reviewing code changes?▼

Threat modeling for code changes involves forcing a targeted audit of the diff to enumerate suspicious constructs, validate them with surrounding code, and cross-reference known framework anti-patterns. This prevents shipping changes that introduce new vulnerabilities.

Does PR security scanning separate actual vulnerabilities from general hardening tasks?▼

Yes, PR security scanning separates vulnerabilities from hardening opportunities by producing a structured output. This distinguishes true exploit paths involving injection, deserialization, or auth bypass from general defense-in-depth improvements.

How do I review dependency updates for supply chain risks in my code?▼

To review dependency sets for supply chain risks, audit pending changes that modify dependency sets and cross-reference known framework anti-patterns. Read dependency advisories when applicable to ensure pipeline changes remain safe.

Can I use automated security review for API endpoints that modify serializers and parsers?▼

Yes, you can use automated security review for API endpoints modifying serializers and parsers by applying scope-aware checks. This calls out injection classes, resource exhaustion, and insecure defaults while validating authentication still holds.

When should I not rely on diff-focused security scanning?▼

Diff-focused security scanning is not sufficient when you need a full application audit, as it specifically prioritizes changes that touch trust boundaries, auth paths, secrets, and parsers rather than evaluating the entire codebase.