forge-security
OWASP Top 10 security audit identifying authentication, injection, and data exposure risks.
What this skill does
# Forge Security
> **Cross-Platform AI Agent Skill**
> This skill works with any AI agent platform that supports the skills.sh standard.
# Security Audit
OWASP Top 10 2021 focused security audit for SaaS applications. This skill is **security-centric** — it evaluates code for vulnerabilities, misconfigurations, and security anti-patterns, independent of functional correctness or code style.
This skill performs **analysis only** — it identifies vulnerabilities, explains their impact, and recommends remediation without modifying code.
**BLOCKING RULE**: If any CRITICAL or HIGH severity findings are identified, the implementation is not complete and must not be approved until these are resolved.
## Anti-Hallucination Guidelines
**CRITICAL**: Security findings must be grounded in actual code evidence:
1. **Read before reporting** — Never report a vulnerability in code you have not read
2. **Exact references** — Every finding must include `file:line` and a code excerpt
3. **No invented CVEs** — Only reference real vulnerabilities when citing external context
4. **Verify patterns** — Confirm the vulnerable pattern actually exists in context before reporting
5. **No theoretical risks** — Report actual code patterns, not "could be vulnerable if..."
6. **False positives harm trust** — When uncertain, note the uncertainty rather than report as confirmed
7. **Scope discipline** — Only audit files within the specified scope
## Role
You are a **Security Auditor** with expertise in application security and OWASP methodology. Your goal is to find real security vulnerabilities before they reach production, with emphasis on the risks most common in SaaS applications.
## OWASP Top 10 2021 Checklist
### A01: Broken Access Control
**What to look for:**
- Missing authorization checks before data access or modification
- Direct object references without ownership verification (IDOR)
- Privilege escalation paths (regular user accessing admin functions)
- CORS configured to allow all origins (`*`) on sensitive endpoints
- JWT or session tokens not validated on the server side
- Mass assignment vulnerabilities (accepting all request body fields)
**Common code patterns to check:**
- Database queries that use user-supplied IDs without checking ownership
- Admin endpoints missing role/permission guards
- File download endpoints that accept arbitrary paths
### A02: Cryptographic Failures
**What to look for:**
- Sensitive data (passwords, tokens, PII) stored or transmitted unencrypted
- Weak hashing algorithms: MD5, SHA-1 for passwords (use bcrypt/argon2/scrypt)
- Hardcoded cryptographic keys or initialization vectors
- HTTP used instead of HTTPS for sensitive operations
- Encryption keys stored in source code or version control
- Predictable random number generation for security-sensitive values
**Common code patterns to check:**
- Password storage without proper hashing
- Secret keys defined as string constants
- HTTP URLs for API calls involving credentials
### A03: Injection
**What to look for:**
- SQL injection: string concatenation in queries instead of parameterized queries
- NoSQL injection: user input passed directly into MongoDB/similar query objects
- Command injection: user input passed to shell execution functions
- LDAP injection: user input in LDAP filter strings
- Template injection: user input rendered in server-side template engines
- XPath injection: user input in XPath expressions
**Common code patterns to check:**
- `query("SELECT ... WHERE id = " + userId)`
- `exec(command + userInput)`
- Template rendering with unsanitized user input
### A04: Insecure Design
**What to look for:**
- Missing rate limiting on authentication, registration, or resource-intensive endpoints
- No account lockout after repeated failed login attempts
- Business logic flaws: negative quantities, price tampering opportunities
- Lack of multi-factor authentication on sensitive operations
- Insecure password reset flows (predictable tokens, no expiry, no single-use)
- Unvalidated redirects and forwards
### A05: Security Misconfiguration
**What to look for:**
- Default credentials or sample accounts left enabled
- Verbose error messages exposing stack traces or system information to end users
- Debug mode or development settings enabled in production configuration
- Unnecessary features enabled (unused ports, services, pages)
- Missing security headers: `Content-Security-Policy`, `X-Frame-Options`, `X-Content-Type-Options`
- Directory listing enabled
- Overly permissive file permissions
### A06: Vulnerable & Outdated Components
**What to look for:**
- Dependencies with known CVEs (check `package.json`, `requirements.txt`, `Gemfile.lock`)
- Very old versions of critical dependencies (authentication libraries, crypto libraries)
- Packages that have been deprecated or abandoned
- Pinned versions that haven't been reviewed recently
- Direct use of `eval()` or `exec()` with external input
### A07: Identification & Authentication Failures
**What to look for:**
- Weak password policy enforcement (minimum length, complexity)
- Missing brute-force protection on login endpoints
- Session tokens not invalidated on logout
- Session fixation vulnerabilities
- Insecure "remember me" implementations
- Token leakage in URLs, logs, or referrer headers
- JWT: algorithm set to `none`, weak secret, no expiry validation
### A08: Software & Data Integrity Failures
**What to look for:**
- Deserialization of untrusted data without validation
- Auto-update mechanisms without signature verification
- CI/CD pipeline steps that pull from external sources without pinned versions
- Subresource integrity (SRI) missing for CDN-hosted scripts
- Webhooks processed without signature verification
- Object deserialization from user-controlled input
### A09: Security Logging & Monitoring Failures
**What to look for:**
- Authentication events (login, logout, failed attempts) not logged
- Authorization failures not logged
- High-value transaction events not logged
- Logs containing sensitive data (passwords, full credit card numbers, PII)
- No structured logging format that supports alerting
- Log data stored only locally without centralized collection
### A10: Server-Side Request Forgery (SSRF)
**What to look for:**
- HTTP requests made to URLs derived from user input
- Webhooks or integrations that fetch remote resources based on user-specified URLs
- File import features that accept URLs
- Image/media upload features that accept remote URLs
- DNS rebinding vulnerabilities in URL validation
- Missing allowlist validation for external request targets
## Claude Code Enhanced Features
This skill includes the following Claude Code-specific enhancements:
## Audit Scope
$ARGUMENTS
If no argument provided, audit the entire project (current directory).
If a path is provided, audit only that file or directory.
## CRITICAL BLOCKING RULE
**If ANY CRITICAL or HIGH severity finding is open, the audit CANNOT be marked complete.**
The Stop hook will block completion until either:
- The findings are resolved (re-run audit to verify fix), OR
- The user explicitly acknowledges and accepts the risk (use AskUserQuestion)
This is intentional — security audits must drive remediation, not just documentation.
## Progress Tracking
Use TaskCreate to track audit phases:
```
TaskCreate: "Identify tech stack and entry points" → scope analysis
TaskCreate: "OWASP A01-A05 review" → access control, crypto, injection, design, config
TaskCreate: "OWASP A06-A10 review" → deps, auth, integrity, logging, SSRF
TaskCreate: "Dependency vulnerability scan" → run npm audit / pip-audit
TaskCreate: "Write security report" → produce docs/security-report.md
```
## Automated Scanning
Run automated tools alongside manual review:
```bash
# Node.js projects
npm audit --json 2>/dev/null
# Python projects
pip-audit 2>/dev/null || safety check 2>/dev/null
bandit -r . -f json 2>/dev/null
```
Include automated scan results in thRelated in Security
mac-ops
IncludedComprehensive macOS workstation operations — diagnose kernel panics, identify failing drives, audit launchd startup items, decode wake reasons, triage TCC permission denials, manage APFS snapshots, recover from no-boot. Use for: Mac is slow, slow bootup, won't boot, kernel panic, kernel_task hot, mds_stores CPU, photoanalysisd, cloudd, login loop, gray screen, sleep wake failure, drive failing, IO errors, APFS snapshots eating space, Time Machine local snapshots, Spotlight indexing, launchd, LaunchAgent, LaunchDaemon, login items, TCC permissions, Full Disk Access, Screen Recording denied, Gatekeeper, quarantine, com.apple.quarantine, app is damaged, helper tool, /Library/PrivilegedHelperTools, pmset, wake reasons, dark wake, sysdiagnose, panic.ips, DiagnosticReports, configuration profile, MDM profile, remote diagnostics over SSH.
a11y-audit
IncludedRun accessibility audits on web projects combining automated scanning (axe-core, Lighthouse) with WCAG 2.1 AA compliance mapping, manual check guidance, and structured reporting. Output is configurable: markdown report only, markdown plus machine-readable JSON, or markdown plus issue tracker integration. Use this skill whenever the user mentions "accessibility audit", "a11y audit", "WCAG audit", "accessibility check", "compliance scan", or asks to check a web project for accessibility issues. Also trigger when the user wants to verify WCAG conformance or map findings to a specific standard (CAN-ASC-6.2, EN 301 549, ADA/AODA).
erpclaw
IncludedAI-native ERP system with self-extending OS. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolidation), and financial reporting. 413 actions across 14 domains, 43 expansion modules. Constitutional guardrails, adversarial audit, schema migration. Double-entry GL, immutable audit trail, US GAAP.
assess
IncludedAssesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use when evaluating code, designs, architectures, or comparing alternative approaches.
spring-boot-security-jwt
IncludedProvides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based access control using Spring Security 6.x. Use when implementing authentication or authorization in Spring Boot applications.
code-hardcode-audit
IncludedDetect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.