xerj-security-audit

Featured

Coverage-guaranteed whitebox security audit of a codebase using XERJ + tree-sitter AST. Use when the user wants to security-review PHP (or other-language) code with a provable "we enumerated every dangerous call" guarantee, or asks to run the WordPress-style sink census / audit. Drives an index-once, query-read-reason loop; proves zero gaps against grep; enriches findings into a queryable ledger.

AI & Automation 19,231 stars 1445 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# XERJ whitebox security audit Run a security review where **XERJ is the agent's second brain**: index the code once, then interrogate it — never load whole files. The deliverable is a *defensible coverage claim*, not a vibe. Scripts referenced below live in `docs/case-studies/wordpress-security-audit/sink-census/` (copy them alongside this skill to reuse in another repo). ## When to use - "Security-review this codebase / WordPress plugin / PHP app with coverage." - "Find the dangerous calls / sinks and prove we didn't miss any." - "Run the sink census / audit ledger." ## Prerequisites (state them, then set up) - XERJ running, ES-compatible, on `http://127.0.0.1:9200` (`xerj --insecure --data-dir ./data`). - `pip install tree-sitter tree-sitter-php` (+ the grammar for the target language). - The target source tree on disk. ## The loop (do these in order; report honestly at each step) ### 1. Map the dangerous functions (knowledge) Use `php_dangerous_functions.json` — 275 PHP built-ins/constructs across 28 categories (command/code exec, `unserialize`, include loaders, file r/w/delete, SSRF, SQL drivers, XXE, callables, variable-injection, reflection, weak crypto/ random, type-juggling, …), each with vuln class + the **taint-relevant argument**. For another framework/language, extend this map — it is data, not code. ### 2. Census every call site (AST) `python3 sink_census.py <src>` parses every file with tree-sitter and records ### 2b. Census the dangerous PATTERNS (the c...

Details

Author
xerj-org
Repository
xerj-org/xerj
Created
4 months ago
Last Updated
today
Language
Rust
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Listed

deep-security-audit

Deep, multi-agent security audit of a codebase — WordPress plugin, Laravel, Next.js, Node/Express, Django/Rails, or any app. Detects the framework, maps the REAL attack surface (routes, handlers, auth, sinks), then fans out scoped finder agents that READ and understand the code (not just grep), adversarially verifies every finding (proves the guard is genuinely absent + traces reachability), scores honest CVSS 3.1, dedupes, and produces a ranked report. Use whenever the user asks to find security issues / vulnerabilities, run a security audit or pentest, "is this secure", "scan this plugin/app/repo", or review auth / SSRF / IDOR / injection / secrets. READ-ONLY by default — never edits, commits, or exploits live systems.

3 Updated 3 months ago
ravindrakele
AI & Automation Listed

security-audit

Perform a comprehensive white-box security audit of a codebase — dispatch per-category subagents in isolated git worktrees, confirm each exploitable finding with a failing proof-of-concept test, analyze attack chains, and produce CVSS-scored full and summary reports under .security-audit/.

0 Updated 1 weeks ago
JLugagne
AI & Automation Listed

security-audit

Source-only security audit of a whole repository or a scoped part of it: reconnaissance into a coverage ledger, hunters per ledger unit, coverage critics, a fresh verifier that tries to refute every candidate, schema-validated findings.json, and a report. Nothing is built, tested, or run; leads that need running code end as needs_validation with a test for the owner.

0 Updated 1 weeks ago
viettdann