Skip to content

Bruno-Cunha-Souza/ValarMindSkills / skills/code-security-review

code-security-review

Flagged

Web/API security lifecycle for Go, Next.js, Python, and Bun — design controls, active testing, supply-chain/CI-CD, and LLM/agentic/MCP coverage. Maps to OWASP Web Top 10 2025 + API 2023 + LLM 2025 + Agentic 2026. Triggers: 'security review', 'revisão de segurança', 'auditar segurança', 'pentest', '/code-security-review'.

FileKindSize
SKILL.mdskill md17.3 KB
references/AI_SECURITY.mdmarkdown9.5 KB
references/DESIGN_CONTROLS.mdmarkdown18.0 KB
references/REPORT_TEMPLATE.mdmarkdown2.6 KB
references/SUPPLY_CHAIN_CICD.mdmarkdown9.1 KB
references/TESTING_PHASES.mdmarkdown17.5 KB
references/WEB_VULNERABILITIES.mdmarkdown22.1 KB
references/golang/API.mdmarkdown27.6 KB
references/golang/MIDDLEWARE.mdmarkdown14.4 KB
references/golang/PATCHES.mdmarkdown15.0 KB
references/golang/TESTING_PAYLOADS.mdmarkdown10.9 KB
references/golang/VULNERABILITIES.mdmarkdown20.6 KB
references/nextjs/API.mdmarkdown38.5 KB
references/nextjs/CONFIGURATION.mdmarkdown15.7 KB
references/nextjs/PATCHES.mdmarkdown16.7 KB
references/nextjs/TESTING_PAYLOADS.mdmarkdown11.9 KB
references/nextjs/VULNERABILITIES.mdmarkdown35.7 KB
references/python/API.mdmarkdown36.0 KB
references/python/CONFIGURATION.mdmarkdown22.4 KB
references/python/PATCHES.mdmarkdown12.1 KB
references/python/TESTING_PAYLOADS.mdmarkdown12.8 KB
references/python/VULNERABILITIES.mdmarkdown28.1 KB
scripts/00-pre-checks.shexecutablescript3.7 KB
scripts/01-auth-probes.shexecutablescript5.4 KB
scripts/02-jwt-attacks.pyexecutablescript10.1 KB
scripts/03-bola-probes.shexecutablescript6.4 KB
scripts/04-injection-probes.shexecutablescript7.3 KB
scripts/05-burst.k6.jsscript1.9 KB
scripts/05-rate-limit.shexecutablescript5.0 KB
scripts/06-info-disclosure.shexecutablescript5.2 KB
scripts/07-supply-chain.shexecutablescript7.9 KB
scripts/08-cors-headers.shexecutablescript5.5 KB
scripts/09-cicd-workflows.shexecutablescript6.1 KB
scripts/10-secrets-scan.shexecutablescript5.2 KB
scripts/11-ai-llm-probes.shexecutablescript8.8 KB
scripts/README.mdmarkdown8.0 KB
scripts/lib/common.shscript4.8 KB
scripts/lib/report.pyscript5.4 KB
scripts/run-all.shexecutablescript4.8 KB

references/REPORT_TEMPLATE.md

View on GitHub
# Report Template

Standardized format for documenting findings from the testing workflow in `TESTING_PHASES.md`.

## Test Report Template

For each finding, document:

| Field | Content |
| --- | --- |
| **Vulnerability ID** | VULN-001 (sequential) |
| **Severity** | Critical / High / Medium / Low / Informational |
| **OWASP Category** | e.g., API1:2023 BOLA, API4:2023 Unrestricted Resource Consumption |
| **Affected Endpoint** | `POST /api/auth/login` |
| **HTTP Method** | POST |
| **Evidence** | Request + Response (sanitize sensitive data) |
| **Impact** | What an attacker can achieve |
| **Remediation** | Specific fix for the framework in use |
| **References** | CVE, CWE, OWASP link |

## Severity Reference

| Severity | CVSS Range | Example |
| --- | --- | --- |
| **Critical** | 9.0–10.0 | BOLA returning any user's data, auth bypass |
| **High** | 7.0–8.9 | SQLi, SSRF reaching internal services, missing auth on endpoints |
| **Medium** | 4.0–6.9 | Missing rate limiting, CORS misconfiguration, sensitive fields in response |
| **Low** | 1.0–3.9 | Version disclosure, missing security headers |
| **Informational** | N/A | Docs exposed in staging, debug logs |

## Example Finding

```markdown
### VULN-007 — BOLA on `/api/orders/{id}`

| Field | Value |
| --- | --- |
| Severity | **Critical** (CVSS 9.1) |
| OWASP Category | API1:2023 Broken Object Level Authorization |
| Endpoint | `GET /api/orders/{id}` |
| Method | GET |

**Evidence:**

```http
GET /api/orders/847 HTTP/1.1
Host: target.example.com
Authorization: Bearer <user_b_token>

HTTP/1.1 200 OK
Content-Type: application/json

{"id": 847, "customer_id": "user_a", "total": 1299.00, "items": [...]}
```

**Impact:** `user_b` can enumerate sequential order IDs and retrieve any user's order history, including PII and payment totals.

**Remediation:** In the order handler, verify `order.customer_id == current_user.id` before returning the resource. Return `404 Not Found` (not `403`) to prevent enumeration.

**References:**
- OWASP API Security Top 10 (2023) — API1
- CWE-639: Authorization Bypass Through User-Controlled Key
```

## Reporting Tips

- **Sanitize evidence** — redact tokens, real PII, internal hostnames before sharing reports outside the security team.
- **Reproduce before filing** — flaky findings erode trust. Capture the exact request/response on a clean session.
- **Pair with remediation** — every finding should ship with a concrete fix referenced from `DESIGN_CONTROLS.md` (or framework docs).
- **Track severity drift** — if remediation introduces a downgrade (e.g., from Critical to Medium), document the residual risk explicitly.
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall