glferreira-devsecops/Cascavel
glferreira-devsecops/Cascavel has 29 GitHub stars and 4 forks. GitHot measured 0 stars in 24 hours, 0 in 7 days, and +1 in 15 days. Last checked 2026-11-14 07:26 UTC. Last push 2026-07-30.
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
🐍 Cascavel — The zero-friction offensive security engine. Automate Red Team scans, validate exposures (CTEM), and generate compliance reports in one command.
SecurityREADME.md
Original
CASCAVEL CTEM ENGINE
Autonomous Adversarial Exposure Validation (AEV) and Red Team Orchestration Platform.
Cascavel is a zero-friction Continuous Threat Exposure Management (CTEM) engine. It orchestrates complex attack chains, enriches findings with Threat Intel (EPSS/CISA KEV), generates AI-driven remediation, and exports native telemetry (OCSF) in a single command.
🌐 cascavel.pages.dev · 🇺🇸 English · 🇧🇷 Português (Brasil)
🦅 Executive Summary & Philosophy
Standard vulnerability management causes critical alert fatigue. Security Operations Centers (SOC) analysts waste hours triaging non-exploitable findings from dozens of non-integrated tools that output incompatible proprietary formats.
Cascavel v3.0 shifts organizations from reactive vulnerability management to a proactive, risk-based Continuous Threat Exposure Management (CTEM) program. By bridging the gap between business strategy and technical execution, Cascavel ensures that security teams only focus on exposures that pose a credible, reachable risk to the business.
⚙️ The 5-Stage CTEM Lifecycle (How Cascavel Operates)
Cascavel natively automates Gartner’s five-stage CTEM framework into a single executable pipeline:
1. Scoping & Discovery
Unlike traditional tools that rely on hardcoded parameters, Cascavel's Dynamic Spidering Engine automatically crawls the target infrastructure (APIs, SaaS integrations, Cloud workloads), mapping forms, headers, and query strings dynamically to construct an accurate attack surface.
2. Prioritization
Generic CVSS scores are obsolete. Cascavel enriches every discovered exposure with real-world threat intelligence:
- FIRST.org EPSS (Exploit Prediction Scoring System): Calculates the actual probability of exploitation in the wild within 30 days.
- CISA KEV (Known Exploited Vulnerabilities): Cross-references exposures against active APT/Ransomware campaigns.
3. Validation (AEV)
The Adversarial Exposure Validation (AEV) engine drops False Positives to near-zero. Cascavel establishes Global Baselines for network latency and WAF behaviors before scanning. Using Multi-Stage Validation (like Content-Type boundary checking), it only reports vulnerabilities that are mathematically and contextually exploitable.
4. Mobilization & Remediation
Instead of dumping JSON files, Cascavel generates AI-driven remediation payloads. Using the --ai-fix flag, it synthesizes contextual Bash scripts, Python mitigations, or Kubernetes manifests to patch the exact exposure discovered.
5. Telemetry & Governance
Cascavel exports native OCSF (Open Cybersecurity Schema Framework) v1.1.0 telemetry, ensuring immediate compatibility with modern SIEMs (Splunk, Elastic, AWS Security Lake) without custom parsers.
🎬 See it in Action
Cinematic AEV Boot Sequence · Real-time Threat Preloader · Stealth Simulation
Interactive CTEM Dashboard · EPSS Tracking · CISA KEV Cross-Correlation
🚀 Deterministic Omni-Distribution Installation
Cascavel v3.0 uses an Omni-Distribution Pipeline. It is built, signed, and published across multiple ecosystems simultaneously with SLSA Level 3 Provenance and Cosign cryptographic signatures.
The installer is engineered under a strict 2026 Threat Model, guaranteeing total dependency isolation and preventing supply chain RCE.
Does not require git. Compatible with macOS, Linux, Windows, WSL2, and Docker.
1. Native Executable (Zero Dependencies)
# Linux/macOS
curl -sL https://github.com/glferreira-devsecops/Cascavel/releases/latest/download/cascavel-linux -o cascavel
chmod +x cascavel && ./cascavel --help
2. Docker / GHCR
docker pull ghcr.io/glferreira-devsecops/cascavel:latest
docker run --rm -it ghcr.io/glferreira-devsecops/cascavel -t target.com
3. NPM (Node Ecosystem)
npx cascavel-ctem -t target.com
4. PyPI (Python Ecosystem)
pip install cascavel-ctem
cascavel -t target.com
Installer Protections (Hardening v2.0)
| Defense Mechanism | Security Outcome |
|---|---|
| Hermetic Environment | Isolates via virtualenv (mktemp -d) preventing OS-level conflicts. |
| Zero Supply Chain | Enforces integrity via hardcoded SHA-256 hashes in requirements.txt. |
| TOCTOU Prevention | Uses anti-symlink locks and strict umask 077 permissions. |
| Clean Exit Hooks | POSIX trap handlers ensure secure deletion of /tmp artifacts on exit. |
| $PATH Isolation | Prevents Binary Hijacking by stripping relative . entries from PATH. |
🛠️ CLI Reference: Red Team Workflows
The terminal API is designed to be highly tactical and straightforward.
# Full CTEM Scan (Integrates external binaries + plugins)
cascavel -t target.com
# Stealth Mode: SOC/WAF bypass simulation (Ignores noisy binaries)
cascavel -t target.com --plugins-only --stealth-eval
# Autonomous Workflow: CISA KEV + AI Remediation + OCSF Telemetry
cascavel -t target.com -o ocsf --ai-fix
# Executive Workflow: Generate Legal PDF Report (CVSS v4, ISO 27001)
cascavel -t target.com --pdf
# Surgical Plugin Filter: Run only specific plugins
cascavel -t target.com --plugins-only --plugin-filter sqli_scanner xss_scanner
# CI/CD Integration: Silent Headless Mode
cascavel -t target.com -q -o json
CI/CD Orchestration (GitHub Actions)
Add this as a blocking security gate in your .github/workflows/ctem.yml:
name: "Cascavel AEV Pipeline"
on: [push, pull_request]
jobs:
validate-exposure:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install
run: curl -sL https://github.com/glferreira-devsecops/Cascavel/releases/latest/download/cascavel-linux -o cascavel && chmod +x cascavel
- name: Execute CTEM (OCSF + AI Fixes)
run: ./cascavel -t staging.internal -q -o ocsf --ai-fix
- name: Upload Telemetry
uses: actions/upload-artifact@v4
with:
name: ocsf-logs
path: exports/*.jsonl
🧩 Plugin Arsenal (108) and Architecture
Our architecture prioritizes the absolute elimination of false positives via AST parsing and deep semantic detection.
Core Engine
cascavel/ (modular package)
├── Stealth Engine ─────────── Requests Hooks, X-COST headers, WAF Rate-Limit Bypass
├── Threat Intel Analyzer ──── Dynamic EPSS (FIRST) and CISA KEV Mapping
├── AI Fix Module ──────────── Sandbox Generation of Mitigation Scripts (Bash/Python)
├── OCSF Telemetry ─────────── EventUID 2002 Export (Linux Foundation Standard)
├── ANSI/Regex Sanitizer ───── Anti-Terminal Injection (CSI/OSC), Anti-ReDoS mitigation
└── PDF Engine ─────────────── Auditable ReportLab PDFs (SHA-256 Checksums)
Infiltration Categories
- Injection & Code Exec (7):
xss_scanner,sqli_scanner,ssti_scanner,rce_scanner,nosql_scanner... - Cloud & K8s Infra (8):
cloud_metadata(SSRF via 169.254.x),docker_exposure,s3_bucket_enum... - Authentication (6):
jwt_analyzer(Alg Bypass, Null Signature),oauth_scanner,idor_scanner... - Defense Bypass (7):
cors_checker,csp_bypass,waf_evasion,cache_poisoning... - API Logic Attacks (6):
graphql_probe,mass_assignment,api_versioning... - OSINT and Recon (11):
shodan_recon,dns_rebinding,subdomain_takeover...
For the complete matrix of vectors and pre-calculated CVSS severities, consult our Plugin Documentation.
🛡️ Defensive & Supply-Chain Hardening (2026 Standard)
An offensive engine must be immune to retaliation. Cascavel shields its host from traps laid by Blue Teams in HoneyPots, while enforcing rigorous CI/CD supply-chain security.
| Retaliation Vector | Core Defensive Mitigation |
|---|---|
| Terminal Injection (ANSI) | Strict Regex filters remove malicious Escape payloads (CSI/OSC/DCS), preventing terminal clipboard hijacking. |
| Command Injection (OS) | Mandates -- binary delimiters and blocks native variables in subprocess.run(shell=False). |
| Server-Side Request Forgery | Internal IP lock (169.254.x) prevents malicious instances from rebounding attacks. redirects=False strictly enforced. |
| Path Traversal Sandboxing | Utlizes pathlib.resolve().is_relative_to() ensuring total containment of OCSF logs and Reports. |
| Arbitrary Deserialization | Rejects pickle functions and globally enforces yaml.safe_load(). |
Cascavel's own CI/CD pipeline is a fortress:
- Unmasked SAST: 100% of the codebase is audited by Semgrep, Bandit, and TruffleHog without exclusion filters (
--exclude-rulegranular approach). - Zizmor Hardened: GitHub Actions workflows are mathematically verified against cache-poisoning, unpinned actions, and privilege escalation vectors.
- Cryptographic Signatures: All Omni-Distribution releases are signed via Sigstore/Cosign.
🤝 Contributing
Rigid rules ensure Framework integrity:
- All code must pass the Mypy Type Hinting pipeline.
- PEP8 (Ruff) compliance is non-negotiable.
- No arbitrary external packages allowed, preventing dependency chain contamination.
- Read CONTRIBUTING.md and the Security Policy.
Cascavel is classified as "Dual-Use". The author repudiates its usage against unauthorized assets.
CASCAVEL METHOD
Engineered and maintained by DevFerreiraG
GitHub Profile
Explore related projects
trimstray/the-book-of-secret-knowledge
A collection of inspiring lists, manuals, cheatsheets, blogs, hacks, one-liners, cli/web tools and more.
258,390 starsHack-with-Github/Awesome-Hacking
A collection of various awesome lists for hackers, pentesters and security researchers
125,487 starsswisskyrepo/PayloadsAllTheThings
A list of useful payloads and bypass for Web Application Security and Pentest/CTF
82,670 starscaddyserver/caddy
Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
79,034 stars