forensic-audit
БесплатноБез исполняемых скриптовНе проверенThree-phase read-only forensic audit of a codebase. Use when the user invokes `/forensic-audit`, asks to run a "forensic audit", "forensic audit pipeline"…
от bergschloss299 установок в других каталогахОб этом скилле
Skill: forensic-audit
Trigger
Use this skill when the user invokes /forensic-audit, asks to run a "forensic audit", "forensic audit pipeline", "multi-pass audit", "security audit", "vulnerability scan", "security check", or "code vulnerability scan".
Description
Three-phase read-only forensic audit of a codebase. Each phase is written to a timestamped report file before the next phase begins. Reports are saved to %USERPROFILE%\Desktop\_Reports\<timestamp>\.
STRICT READ-ONLY: Never modify, refactor, or create any files inside the project repository. Only write to the _Reports output folder.
Execution Protocol
Pre-flight (before any phase)
- Resolve output path:
$outDir = "$env:USERPROFILE\Desktop\_Reports\$(Get-Date -Format 'yyyy-MM-dd_HHmm')"— new timestamped subfolder every run to preserve previous audits. - Create output dir:
mkdir -p "$outDir"(or equivalent PowerShell command) — confirm creation, abort if it fails. - Capture repo context (embed in every report header):
- Current directory (repo root)
git rev-parse --short HEAD— git hashgit branch --show-current— branch namegit status --short— dirty/clean state
- Quick signal scan (run before Phase 1 to orient findings):
Use the
grep_searchtool (orrun_commandto runrg):# Unbounded queries rg "\.findMany\(\)" --type ts -l # Potential hardcoded secrets rg -i "password\s*=\s*['\"][^'\"]{4,}|api_key\s*=\s*['\"]|secret\s*=\s*['\"]" --type ts -l # Missing await / fire-and-forget risks rg "^\s*[^/].*\bprisma\." --type ts -l | head -20 # console.log with sensitive-looking data rg "console\.(log|error)\(.*?(token|password|secret|hash)" --type ts -l # TODO / FIXME / HACK markers rg "TODO|FIXME|HACK|XXX" --type ts - Directory snapshot:
rg --files apps/api/src | sort— full source tree before Phase 1.
Report Header Template (prepend to every phase file)
# [Phase Title]
**Date**: YYYY-MM-DD HH:MM
**Repo**: [repo root path]
**Git HEAD**: [short hash] ([branch])
**Dirty files**: [output of git status --short, or "clean"]
**Auditor role**: [role for this phase]
---
Phase 1 — Security, Cryptography & Data Privacy
Role: Senior Cybersecurity Expert (OWASP), Cryptographer, EU DPO.
Audit scope — read the relevant source files using view_file or search via grep_search, then write findings:
PASS 1: Authentication & Privilege Escalation
POST /register: guard preventing unauthenticated users from passingrole: "ADMIN"orrole: "OPERATOR"in the payload?- JWT plugin: secrets verified against empty/default fallbacks? Expiration enforced? Refresh token rotation (RTR) atomic and replay-safe?
- TOTP
/totp/verify:lastUsedTotpCodestored to prevent 30-second replay attacks?
PASS 2: Authorization & IDOR
- Every business route: explicit auth hook (
preHandler: [app.authenticate])? Unprotected endpoints? - CLIENT-scoped endpoints (
GET /api/queue/:id,POST /api/appointments,POST /api/sessions/:id/feedback): strict ownership validation, or IDOR via ID swap?
PASS 3: Rate Limiting & Brute Force
/login,/register,/forgot-password,/reset-password,/totp/verify: israteLimitconfig present? What are the limits? Are they adequate?- Missing rate limit on any auth-adjacent endpoint = HIGH finding.
PASS 4: Cryptographic Practices & Secret Hygiene
- AES-256-GCM helper (
crypto.ts): key length verified at startup?authTagandivcorrectly stored/decrypted? - Desktop credential storage: plaintext JSON in
%APPDATA%or ElectronsafeStorage? GET /clientsand similar: sensitive fields (encrypted passwords, raw tokens, hashes) explicitly excluded from Prismaselect?- Hardcoded secrets scan: any API keys, tokens, or passwords committed directly in source (
.ts,.js,.env.*tracked by git)? console.log/app.logcalls that print tokens, hashes, or raw PII?
PASS 5: Stripe Webhook Security
/webhooks/stripe: webhook signature verified viastripe.webhooks.constructEvent? What happens ifSTRIPE_WEBHOOK_SECRETis missing?- Is the raw body preserved (not parsed as JSON) before signature check?
- Does the handler log Stripe event payloads in a way that could expose customer PII?
PASS 6: GDPR / DSGVO Compliance
- Account deletion (
POST /api/dsgvo/delete-account): cascade deletes/anonymizes orphanedClientPII (names, addresses, RustDesk access data)? - Session consent handler: logs immutable metadata (IP, timestamp, clientId) confirming explicit consent before remote control?
- Data export (
GET /api/dsgvo/export): does it include all personal data per Art. 20? Is the download URL scoped to the requesting user?
Output format:
## 1. Executive Summary (Security Focus)
## 2. Top Critical Security Vulnerabilities
## 3. Detailed Severity Breakdown
### CRITICAL findings
[file:line] CRITICA
Установить forensic-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл forensic-audit?
Three-phase read-only forensic audit of a codebase. Use when the user invokes `/forensic-audit`, asks to run a "forensic audit", "forensic audit pipeline", "multi-pass audit", "security audit", "vulnerability scan", "security check", or "code vulnerability scan".
Как установить скилл forensic-audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл forensic-audit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic