security

Review code changes for auth, secrets, input validation, and dependency risks.

1|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/kreek/consult --skill security-kreek
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: security
Source: https://github.com/kreek/consult/tree/main/plugin/skills/security
Command: npx skills add https://github.com/kreek/consult --skill security-kreek

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Security flaws like broken authorization, leaked secrets, injection, and vulnerable dependencies often slip through code review because reviewers lack a systematic checklist. This Skill gives an AI agent a structured security review methodology covering trust boundaries, authentication, cryptography, SSRF, file handling, and supply-chain risk. ## Core Features & Use Cases - Trust-boundary review rules: Enforces fail-closed defaults, authorization at the operation level, negative tests for custom guards, and no secrets in logs or source. - Deep reference library: Ten focused references covering OWASP Top 10, OAuth/OIDC/JWT validation, secrets and sessions, SSRF egress controls, file upload and deserialization traps, web app headers/CSRF/XSS, infrastructure and CI/CD hardening, dependency auditing, secrets scanning, and AI agent prompt-injection defense. - Tripwire table: Maps common rationalizations ("it's internal", "the framework validates this") to the correct secure action. - Use Case: Before merging a pull request that adds an OAuth login flow and a file upload endpoint, ask the agent to run a security review; it will check PKCE/state/nonce handling, token validation, upload magic-byte checks, and path traversal defenses. ## Quick Start Use the security skill to review this pull request for auth, input validation, secrets, and dependency risks.

Frequently Asked Questions about security

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

FAQPage Schema
How do I review a pull request for security vulnerabilities with an AI agent?▼

Invoke the security skill on the diff and it maps actors, trust boundaries, and data flows before checking authorization placement, input validation, secrets handling, and dependency risk. Findings that enable unauthorized access or data exposure block merge unless explicit risk acceptance is recorded.

What does the security skill check for in authentication and OAuth flows?▼

It verifies PKCE with S256, per-request state and nonce validation, exact redirect_uri matching, refresh-token rotation, and audience binding. For token validation it checks JWKS pinning, algorithm allowlists rejecting alg:none, and iss/aud/exp/nbf claims.

Does the security skill cover LLM and AI agent prompt injection?▼

Yes, the ai-agent reference treats all external content channels as untrusted input and every tool call as a privileged action. It covers capability isolation, schema-validated tool parameters, output sanitization against markdown exfiltration, and RAG index poisoning defenses.

Which dependency audit tools does the security skill recommend?▼

It selects the auditor by lockfile: pnpm audit, npm audit, pip-audit, cargo audit, govulncheck, bundler-audit, composer audit, and others per ecosystem. For multi-language repos it falls back to osv-scanner, and recommends trivy or grype for container image scanning.

When should I not use the security skill?▼

Skip it for general code quality work with no trust boundary, API shape design without security semantics, and runtime alert design, which belong to other skills. It also assumes networked applications; embedded, firmware, and mobile binaries need platform-specific guidance.

How does the security skill handle secrets found in git history?▼

It requires rotating the credential first, revoking derived sessions, auditing usage logs, then scrubbing history with git filter-repo. Detection uses gitleaks or trufflehog in CI with redacted output, and blocking merge on any new finding.