security-reviewer

Trace untrusted input in web service code diffs to identify exploitable vulnerabilities.

Updated Mar 14, 2026
One-click install
npx skills add https://github.com/Andreicr1/netz-analysis-engine --skill security-reviewer-andreicr1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-reviewer
Source: https://github.com/Andreicr1/netz-analysis-engine/tree/main/.gemini/skills/security-reviewer
Command: npx skills add https://github.com/Andreicr1/netz-analysis-engine --skill security-reviewer-andreicr1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Conditional code-review persona that triggers when the diff touches authentication middleware, public endpoints, user input handling, or permission checks, and systematically reviews code for exploitable vulnerabilities.

Core Features & Use Cases

  • Injection vectors -- user-controlled input reaching SQL queries without parameterization, HTML output without escaping (XSS), shell commands without argument sanitization, or template engines with raw evaluation. Trace the data from its entry point to the dangerous sink.
  • Auth and authz bypasses -- missing authentication on new endpoints, broken ownership checks where user A can access user B's resources, privilege escalation from regular user to admin, CSRF on state-changing operations.
  • Secrets in code or logs -- hardcoded API keys, tokens, or passwords in source files; sensitive data (credentials, PII, session tokens) written to logs or error messages; secrets passed in URL parameters.
  • Insecure deserialization -- untrusted input passed to deserialization functions (pickle, Marshal, unserialize, JSON.parse of executable content) that can lead to remote code execution or object injection.
  • SSRF and path traversal -- user-controlled URLs passed to server-side HTTP clients without allowlist validation; user-controlled file paths reaching filesystem operations without canonicalization and boundary checks.

Quick Start

Review the latest code diff touching auth middleware, endpoints, or input handling to surface exploitable vulnerabilities and provide actionable remediation steps.

Frequently Asked Questions about security-reviewer

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

FAQPage Schema
How do I find exploitable vulnerabilities in a code diff?

To find exploitable vulnerabilities in a code diff, review changes touching authentication middleware, public endpoints, or permission checks. Trace untrusted user input to dangerous sinks like SQL queries or shell commands to identify injection vectors and provide concrete remediation steps.

What is the best way to detect authentication bypasses in new endpoints?

Detecting authentication bypasses in new endpoints involves checking for missing authentication on state-changing operations and verifying ownership checks. Ensure user A cannot access user B's resources and prevent privilege escalation from regular users to admin roles.

How do I check for insecure deserialization in user input handling?

Checking for insecure deserialization in user input handling involves tracing untrusted input passed to functions like pickle, Marshal, or unserialize. This identifies potential remote code execution or object injection vulnerabilities in deserialized data payloads.

Can I scan code diffs for hardcoded secrets and sensitive data in logs?

Yes, you can scan code diffs for hardcoded secrets and sensitive data in logs. Look for hardcoded API keys, tokens, or passwords in source files, and verify that credentials, PII, or session tokens are not written to logs, error messages, or URL parameters.

Does this security review cover SSRF and path traversal vulnerabilities?

Yes, this security review covers SSRF and path traversal vulnerabilities. It identifies user-controlled URLs passed to server-side HTTP clients without allowlist validation and file paths reaching filesystem operations without canonicalization and boundary checks.

What limitations exist when threat modeling injection vectors across web services?

Threat modeling injection vectors across web services is limited to reviewing code diffs touching authentication middleware, public endpoints, and user input handling. It focuses on SQL, XSS, shell, and template injection but does not analyze non-web service architectures.