
A collection of threat hunting and detection engineering Jupyter notebooks accompanying the Weekly Purple Team YouTube channel. Each notebook provides detection logic to help security professionals understand both offensive techniques and defensive strategies.
A collection of threat hunting and detection engineering Jupyter notebooks accompanying the Weekly Purple Team YouTube channel. Each notebook provides detection logic to help security professionals understand both offensive techniques and defensive strategies.
These notebooks bridge the gap between red team tactics and blue team defenses. By understanding how attacks work, we build better detections.
Each notebook is designed to:
Subscribe to Weekly Purple Team for video walkthroughs of these notebooks and more cybersecurity content covering:
├── notebooks/
│ ├── credential-access/ # Kerberoasting, hash dumping, etc.
│ ├── defense-evasion/ # EDR bypass, log tampering, etc.
│ ├── initial-access/ # Phishing, exploitation, etc.
│ ├── lateral-movement/ # Pass-the-hash, RDP, etc.
│ ├── persistence/ # Scheduled tasks, registry, etc.
│ └── command-and-control/ # C2 traffic analysis, beacons, etc.
requirements.txt)# Clone the repository
git clone https://github.com/YOUR_USERNAME/weekly-purple-team-notebooks.git
cd weekly-purple-team-notebooks
# Create virtual environment (recommended)
python -m venv venv
source venv/bin/activate # Linux/Mac
# venv\Scripts\activate # Windows
# Install dependencies
pip install -r requirements.txt
# Launch Jupyter
jupyter lab
Detection queries will start with Elastic other platforms can be provided:
Contributions are welcome! Whether it's new notebooks, detection queries, or bug fixes:
git checkout -b feature/new-detection)git commit -m 'Add Kerberoasting detection for Splunk')git push origin feature/new-detection)These materials are provided for educational and authorized security testing purposes only. The techniques demonstrated should only be used in environments where you have explicit permission. Misuse of these tools and techniques may violate laws and regulations.
Always obtain proper authorization before conducting security assessments.
Learn to attack. Learn to defend. Stay purple. 🟣
# ThreatHunting-JupyterNotebooks| Platform | Directory | Status |
|---|
| Elastic 9.2 | queries/kql/ | ✅ Active |
| Sigma (Universal) | queries/sigma/ | ✅ Active |
| Cortex XSIAM | queries/xql/ | ❌ In Process |
| CrowdStrike NG-SIEM | queries/crowdstrike/ | ❌ In Process |