source-code-audit

Installation
SKILL.md

Source Code Audit Skill (SAST & Whitebox Security)

Purpose

Simulate advanced whitebox penetration testing by inspecting source code repositories, extracting application routes, detecting insecure database queries, identifying weak authentication/authorization logic, and locating hardcoded secrets.

Core Capabilities

  • Route & Controller Mapping: Map all public and internal API endpoints (Express, Django, Flask, FastAPI, Spring Boot, Laravel, Next.js).
  • Injection Flaws Detection: Scan for unsanitized SQL, command execution (eval, exec, os.system), template injection (Jinja2, Thymeleaf), and XPath/LDAP queries.
  • Authorization & Access Control: Analyze middleware, RBAC checks, and missing object-level permission guards (IDOR).
  • Secret & Key Hunting: Fast regex and entropy scanning for credentials, JWT secrets, and third-party API keys using trufflehog and ripgrep.

Workflow

1. Codebase Profiling

Identify technology stack, framework, database connectors, and dependency manifests:

# Check dependencies and package configs
find . -maxdepth 3 -name "package.json" -o -name "requirements.txt" -o -name "pom.xml" -o -name "composer.json" -o -name "go.mod"
Installs
2
GitHub Stars
1.0K
First Seen
Sep 9, 2026