security-audit

Audits code for vulnerabilities using phased risk-centric review and automated static analysis tools.

10|2|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/nrdxp/predicate --skill security-audit-nrdxp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-audit
Source: https://github.com/nrdxp/predicate/tree/main/skills/security-audit
Command: npx skills add https://github.com/nrdxp/predicate --skill security-audit-nrdxp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Manual security reviews are inconsistent and often miss business-logic flaws, injection paths, and access-control bugs that automated scanners alone cannot catch. This Skill provides a structured, phased audit protocol that combines automated baseline scanning with deep white-box review, so vulnerabilities are found, prioritized by business risk, and reported with actionable remediation steps. ## Core Features & Use Cases - Phased Audit Protocol: Four phases covering scope and trust modeling, automated baseline scanning (secrets, dangerous sinks, dependency CVEs), manual white-box review (authN/authZ, injection, crypto, race conditions), and formal verification for crown-jewel components. - Domain-Specific Checklists: Built-in threat models and checklists for Web/API applications, embedded and safety-critical C/C++ systems, and Web3 smart contracts (reentrancy, oracle manipulation, MEV). - Automated Tool Runner: A script that detects the project stack and runs bandit (Python), slither (Solidity), cargo clippy/audit (Rust), govulncheck (Go), or npm/yarn/pnpm audit (JavaScript). - Use Case: Before shipping a new REST API, run the audit to map the attack surface, scan dependencies for known CVEs, trace user input from source to sink for injection flaws, and produce a severity-ranked report with proof-of-concept steps and fixes. ## Quick Start Ask the AI to run a security audit on your project directory, starting with the trust model and automated baseline scan before reviewing each component.

Frequently Asked Questions about security-audit

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

FAQPage Schema
How do I run a security audit on my codebase?

Run the included script with python3 scripts/run_audit.py followed by the target path. It auto-detects the project languages and invokes the matching scanners, then follow the phased protocol for manual white-box review of each component.

What tools does the automated security scan use?

The script runs bandit for Python, slither for Solidity, cargo clippy and cargo audit for Rust, govulncheck for Go, and npm, yarn, or pnpm audit for JavaScript dependencies. Missing tools produce install instructions instead of failing.

Does the audit cover smart contracts and Solidity?

Yes, a dedicated Web3 checklist covers reentrancy, integer overflow, oracle manipulation, access control, and MEV/front-running. The script also runs slither against Solidity contracts when detected in the target path.

How are audit findings classified and reported?

Findings are rated Critical, High, Medium, or Low based on exploitability and business impact. The report template includes an executive summary, threat model, per-finding proof of concept, root cause, and specific remediation steps.

When should formal verification be applied during an audit?

Formal verification in Phase 3 applies only to crown jewels such as smart contracts, cryptographic primitives, and safety-critical logic. It defines mathematical invariants and checks that no invalid state is reachable across code paths.