Security Research & Exploit Development
A general-purpose security research repository spanning browser exploit chains, post-exploitation tradecraft, identity and cloud attacks, and the assessment work that surrounds them. The contents are organized into three broad bodies of work:
- CVE reproductions — patch analysis, triggers, and full chains for Chrome and Firefox bugs from 2024 through 2026.
- Tooling — a catalog of offensive modules (C2, lateral movement, AD CS, cloud identity, evasion, LLM attacks, kernel LPE, and more), each paired with detection guidance.
- Assessment deliverables — written reports for stakeholders, including a Databricks Apps platform review aimed at security leadership.
Every offensive component ships with a defender-side counterpart. The repository is meant to feed scheduled enterprise log-scan agents and red-team tabletop work, so breadth is intentional.
Purpose & Disclaimer
This repository exists to support internal security education and risk awareness. The exploit reproductions, attack chain demonstrations, and assessment tooling are built as red-team exercises that show stakeholders — including non-technical business users — what can go wrong when production systems lack adequate human oversight and governance controls.
All materials are for educational purposes and authorized security testing only. Research was conducted under explicit written authorization. Exploit code is provided to support defensive research, vulnerability reproduction, and security assessment. Do not use any code or technique against systems you do not own or have explicit written authorization to test. See SECURITY.md for the full responsible-disclosure policy and containment architecture.
Safeguards in place:
- Every CVE here targets an already-patched browser version with a publicly available PoC. No zero-days are published. The contribution is in the chaining, primitives, and delivery infrastructure built around them.
- All tool networking is loopback-only (
127.0.0.0/8 or the Docker bridge). This is enforced in code by ContainmentGuard — not by convention.
- The Docker Compose lab runs on an
internal: true network with no internet gateway.
- The beacon refuses to run its
exec command outside of a Docker container, and every other beacon command is on a hardcoded allowlist.
- The IDOL persistence demo (
--plant) only installs a harmless cron heartbeat that --cleanup removes.
- The GitHub Pages dashboard runs entirely on simulated data — there is no live C2 connectivity in the public site.
Contained Lab Environment
A Docker Compose lab provides a fully isolated environment for running tools end-to-end. All services run on an internal Docker network with no internet access, so tools that "phone home" simply talk to mock services running alongside them.
make lab-up # Start: C2 server, 2 beacons, exploit server, 2 target apps
make lab-down # Destroy everything
make lab-status # Show running services + C2 status
make lab-logs # Tail all logs
The lab can be brought up incrementally — the base make lab-up is enough for most C2 and exploit-server work, and additional mock IdPs and OAuth issuers come up via dedicated targets so you only run what your scenario needs.
| Service |
Port |
Description |
How to start |
| C2 server |
127.0.0.1:8443 |
Operator API + beacon protocol |
make lab-up |
| Exploit server |
127.0.0.1:9090 |
Serves CVE exploits, receives callbacks |
make lab-up |
| Target app 1 |
127.0.0.1:8501 |
Simulated Databricks Streamlit app |
make lab-up |
| Target app 2 |
127.0.0.1:8502 |
Second target for lateral movement |
make lab-up |
| Mock Entra IdP |
127.0.0.1:9100 |
Device code, token, PRT SSO endpoints |
make lab-up |
| Mock IMDS |
127.0.0.1:9200 |
AWS / GCP / Azure metadata service mock |
make lab-up |
| LLM copilot app |
127.0.0.1:8080 |
Ollama-backed enterprise copilot (injection target) |
make lab-llm-up |
| Mock OIDC issuer |
127.0.0.1:9300 |
GitHub Actions OIDC simulation (WIF abuse) |
make lab-oidc-up |
| Mock SAML SP/IdP |
127.0.0.1:9400 |
SAML assertion target (Golden SAML demo) |
make lab-saml-up |
| Mock Databricks |
127.0.0.1:9500 |
Databricks Apps OAuth/OBO mock |
make lab-databricks-up |
| AD CS lab |
192.168.56.10 |
Windows DC + Enterprise CA (Vagrant, host-only) |
make lab-adcs-up |
Containment. tools/lib/containment.py — and its Rust counterpart in tools/rust/containment/ — is the trust boundary. It enforces loopback-only networking, non-root execution, tmpdir isolation, and Docker environment detection across every tool. If a tool tries to step outside the sandbox (talk to a real tenant, reach a real metadata service, write outside the fixture root), the guard refuses before any side effect happens.
Tools
Each tool below ships under tools/ and has a sibling detection/ directory containing Sigma rules, KQL queries, or other defender-side guidance for the same technique. The brief descriptions are intentionally compact — each linked README expands on usage, lab requirements, and detection.
C2 & Infrastructure
- C2 Server & Beacon — tools/c2/. Modular C2 with pluggable transports (HTTP polling, WebSocket, gRPC, SMB / Unix pipe, DNS-over-HTTPS, HTTP/3, DoQ, Telegram Bot, Teams Graph), YAML transport profiles with hot-reload, and a P2P relay topology. Flask server with X25519 + ChaCha20-Poly1305 session crypto, hardcoded command allowlist, and loopback-only enforcement.
- C2 Transports — tools/c2/transports/. One subdirectory per transport (
http_polling/, websocket/, grpc/, passive_smb_pipe/, dns_over_https/, http3/ for QUIC, doq/ for DNS-over-QUIC, telegram-bot/ and teams-graph/ mocks). Each ships with Sigma / KQL detection alongside the offensive code.
- C2 Framework Profiles — tools/c2/profiles/framework-mimics/. Transport-signature profiles that mimic AdaptixC2, emp3r0r, APEX, Mythic, Havoc, Brute Ratel C4, and NightHawk. Use them with the beacon to validate detection rules against specific framework footprints.
- C2 Relay — tools/c2/relay/. P2P relay node that supports beacon chains of depth ≥2, for testing detections that key off intermediate hops rather than direct callbacks.
- Dashboard — tools/dashboard/. Session management console with multi-transport session view, profile editor, and a relay topology graph.
Active Directory & Kerberos
- AD CS Abuse — tools/ad-cs/. The full ESC1 through ESC16 toolkit: an LDAP-based template enumerator following Certipy patterns, per-ESC exploit modules, a chain orchestrator, and the Shadow Credentials 2026 update covering January 2026 NGC key-write hardening. Every module is gated to the
corp.lab.local lab domain.
- Kerberos Lateral Movement — tools/kerberos/. S4U2self / S4U2proxy abuse, RBCD chain, NTLM relay with EPA recon (RelayInformer-class), the CVE-2025-33073 NTLM reflection LPE, AES-only Kerberoasting (post CVE-2026-20833 RC4 enforcement), and service-account triage tooling.
Lateral Movement
- Lateral Movement — tools/lateral-movement/. RPC-based DCOM / TSCH / SCMR / WMI execution; SCCM ELEVATE1/2 plus the TAKEOVER-5 Entra-integration chain (SpecterOps, November 2025); Azure Arc MSI pivot with CVE-2026-26117 (
himds pipe DACL); Exchange hybrid evoSTS token forge.
- Snowflake Pivot — tools/lateral-movement/snowflake-pivot/. Snowflake-specific lateral primitives: Storage Integration enumeration (Chain E), Direct Share + replication-group exfil (Chain G, audit-bypass via server-side data motion), SPCS egress matrix (Chain H), Polaris / Iceberg catalog pivot (Chain K), UDF EAI breakout (Chain M), SPCS base-image posture probe (Chain H supply-chain extension), bind-parameter evasion against
QUERY_HISTORY. Talks to mock-snowflake on 9600.
Cloud Identity
- Cloud Identity Attacks — tools/cloud-identity/. The modern cloud-identity surface: Workload Identity Federation wildcard
sub abuse, Golden SAML, Silver SAML (secondary cert), SyncJacking via ImmutableId takeover, EvilTokens-style device-code 2026 PhaaS (Broker client ID FOCI path), FOCI Conditional Access bypass, PRT extraction via dev tools, and a CloudTrail-blinding catalog. Talks to the lab mocks: mock-oidc (9300), mock-saml (9400), mock-entra (9100/9102).
- Snowflake Cloud Identity — tools/cloud-identity/snowflake/. Snowflake-specific identity abuse for the post-UNC5537 / post-MFA control surface: JWT key-pair signer (Chain F — service-user key theft from CI / orchestration hosts), PAT scope walk, SCIM token harvester with a role-race primitive, partner-integration audit (Chain J), external OAuth scope-drift audit (Chain L). Talks to
mock-snowflake on 9600.
- Entra ID Abuse (legacy) — tools/entra-abuse/. Earlier device-code phishing, PRT simulation, and token-replay work. Kept for historical reference; current Entra work lives under
cloud-identity/.
Kernel LPE (Windows)
- Kernel LPE — tools/kernel-lpe/. Research notes and harnesses for the AFD.sys pool-grooming family (CVE-2026-20810 / -20831 / -20860 / -21241), the CLFS buffer overflow CVE-2025-60709, and the I/O Ring arbitrary-R/W primitive CVE-2025-21333. Includes pool feng-shui and NT-structure reference docs. All of this is gated behind
EXPLOIT_LAB_KERNEL=1 and a kern-lab-* hostname, validated by safety_harness.py before anything dangerous runs.
Phishing & Initial Access
- AiTM Kits — tools/phishing/aitm-kits/. Simulators for the major adversary-in-the-middle phishing kits — Tycoon2FA (against
mock-aitm-proxy 8100 / mock-m365-login 8101), Sneaky2FA's browser-in-browser variant, and Rockstar2FA — plus reference docs for Evilginx3. Importantly, this section also documents the defender controls that actually break these kits: passkey mitigation and Conditional Access token protection.
- Social Engineering — tools/phishing/social-engineering/. The "Fix" delivery family: ClickFix (clipboard → Run dialog), FileFix (Explorer address-bar primitive), and ConsentFix (OAuth-consent bypass simulated against
mock-entra). Tracks how these chains evolved from 2023 through 2026.
- Passkey Phish-Resistance — tools/phishing/passkey-resistance/. WebAuthn origin-binding fundamentals, a phish-resistance matrix that scores common attack types against MFA factors, the downgrade attack surface, and the cross-device QR-relay risk that has emerged with passkey rollouts.
- Vishing Tabletop — tools/phishing/vishing/. Tabletop scripts for CFO-impersonation and Scattered-Spider helpdesk scenarios. Discussion-only — no voice synthesis is included.
Supply Chain