Skip to content

Hpperr/BlackMamba-Advanced-Persistent-Trap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎯 Overview BlackMamba APT is a professional-grade Cache Poisoning Framework designed for Red Team operations and security testing. Unlike traditional penetration testing tools, BlackMamba exploits Unkeyed Headers in CDN/Edge Cache infrastructure to deploy stealthy, zero-trace attacks.

Key Philosophy "Minimal in behavior, maximum in damage, and completely asynchronous."

The tool sends only a single request to deploy the attack vector, then completely disengages. The actual compromise occurs when a privileged user (admin) legitimately accesses the poisoned cache, unknowingly triggering the exfiltration of sensitive data.

🎯 Tactical Objectives -Zero Network Footprint: No scanning, no brute-force, no RCE payloads in network logs

-Edge Infrastructure Exploitation: Leverages CDN/Cloud Edge Caches

-Asynchronous Exfiltration: Attack and data collection are completely decoupled

-SOC Evasion: Bypasses traditional monitoring and detection systems

-Admin Privilege Harvesting: Captures session tokens, cookies, and credentials

βš™οΈ How It Works The Attack Chain β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ PHASE 1: CACHE POISONING β”‚ β”‚ β”‚ β”‚ Attacker β†’ Single HTTP Request with Malicious Headers β†’ CDN Edge Cache β”‚ β”‚ β”‚ β”‚ Headers used: β”‚ β”‚ β€’ X-Forwarded-Host: attacker.com β”‚ β”‚ β€’ X-Forwarded-Scheme: https β”‚ β”‚ β€’ Cache-Control: no-cache β”‚ β”‚ β”‚ β”‚ Result: CDN caches poisoned response (malicious JavaScript) |
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ PHASE 2: VICTIM TRIGGER β”‚ β”‚ β”‚ β”‚ Victim (Admin) β†’ Legitimate Request β†’ CDN (Poisoned Cache) β”‚ β”‚ β”‚ β”‚ Result: Victim receives malicious response without knowing β”‚ β”‚ β”‚ β”‚ SOC View: No unusual traffic, no alerts, normal user behavior β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ PHASE 3: DATA EXFILTRATION β”‚ β”‚ β”‚ β”‚ Victim's Browser β†’ Executes Malicious JavaScript β†’ Exfil Server β”‚ β”‚ β”‚ β”‚ Exfiltrated Data: β”‚ β”‚ β€’ Session Cookies β”‚ β”‚ β€’ Authentication Tokens β”‚ β”‚ β€’ LocalStorage/SessionStorage β”‚ β”‚ β€’ Browser Fingerprint β”‚ β”‚ β€’ User Agent & Platform β”‚ β”‚ β€’ Referrer & URL β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

About

HTTP Cache Poisoning via Header Injection

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages