Share
## https://sploitus.com/exploit?id=750E22A9-AC8E-56A7-9D6F-CC17B1741FD0
# Sigma Stack Audit

Full-spectrum security audit combining five analysis layers into a single actionable report.

**[Live Report: calcom/cal.com](https://copyleftdev.github.io/sigma-audit/)**

## What It Does

One command audits a GitHub repository across five complementary layers:

| Layer | Tool | Finds |
|-------|------|-------|
| **Structure** | [Vajra](https://github.com/copyleftdev/vajra) | Dependency health, structural anomalies |
| **Code** | [Semgrep](https://semgrep.dev) | XSS, injection, weak crypto (OWASP SAST) |
| **Patterns** | [Zentinel](https://github.com/copyleftdev/zentinel) | Hardcoded secrets, raw SQL, missing CSRF, old TLS |
| **Supply Chain** | [VulnGraph MCP](https://vulngraph.tools) | CVE intel, EPSS probability, exploit PoCs, ATT&CK mapping |
| **Issues** | GitHub API | Existing security advisories and issue cross-reference |

Each CVE is enriched with:
- **EPSS score** โ€” probability of exploitation in the next 30 days
- **Exploit maturity** โ€” WEAPONIZED / FUNCTIONAL / POC / NONE
- **Proof-of-concept links** โ€” ExploitDB, GitHub PoCs, Nuclei templates
- **CWE classification** โ€” root cause weakness
- **ATT&CK techniques** โ€” mapped via CAPEC bridge (CWE โ†’ CAPEC โ†’ ATT&CK)
- **Remediation** โ€” vulnerable version ranges and fix versions
- **GitHub issues** โ€” whether it's already been reported

## Usage

```bash
python3 sigma-audit.py calcom/cal.com
python3 sigma-audit.py vercel/next.js --branch canary --output nextjs-audit.html
```

## Requirements

- Python 3.8+
- [Semgrep](https://semgrep.dev/docs/getting-started/)
- [Zentinel](https://github.com/copyleftdev/zentinel)
- [VulnGraph MCP server](https://vulngraph.tools) running locally
- [GitHub CLI](https://cli.github.com/) (`gh`) authenticated

## Architecture

```
                    sigma-audit.py
                         |
          +--------------+--------------+
          |              |              |
     Clone Repo    Extract Deps    Scan Code
          |              |              |
          v              v              v
    +-----------+  +-----------+  +-----------+
    |  Semgrep  |  | VulnGraph |  | Zentinel  |
    |   SAST    |  |    MCP    |  |  Patterns |
    +-----------+  +-----------+  +-----------+
                         |
              +----------+----------+
              |          |          |
         analyze    exploit    attack
          deps      intel     surface
              |          |          |
              +----------+----------+
                         |
                   GitHub Issues
                   Cross-Reference
                         |
                  Kinetic HTML Report
```

## Report Sections

1. **Executive Summary** โ€” auto-generated prose with key findings
2. **Risk Dashboard** โ€” animated counters for CVEs, severity, exploitability
3. **CVE Intelligence** โ€” expandable cards with full exploit intel, PoC links, ATT&CK mapping
4. **Kill Chains** โ€” visual attack chain flow diagrams (Package โ†’ CVE โ†’ CWE โ†’ Technique)
5. **ATT&CK Grid** โ€” clickable technique badges linked to MITRE
6. **Semgrep SAST** โ€” code-level findings with file locations
7. **Zentinel Patterns** โ€” rule frequency chart and critical findings

## Example Output

The [live report for calcom/cal.com](https://copyleftdev.github.io/sigma-audit/) found:

- **146 CVEs** across 377 npm dependencies
- **4 weaponized/functional exploits** with public PoCs
- **108 attack chains** mapped to **64 ATT&CK techniques**
- **17,102 security pattern findings** including 47 hardcoded secrets
- **10 SAST findings** including XSS and weak crypto

Top finding: [CVE-2025-29927](https://nvd.nist.gov/vuln/detail/CVE-2025-29927) โ€” Next.js middleware auth bypass (CVSS 9.1, EPSS 93%, 12 public PoCs).

## License

MIT