project 01 · purple team
I attacked my own network, then scored the SIEM
A coverage map is a promise. A real attack is proof. So I ran a controlled purple-team exercise against my own lab, scored every technique honestly, and used the misses to drive new detections.
the setup
- Attacker: my Linux workstation (recon and brute-force scripts).
- Targets: the Mac mini (Elastic Defend EDR) and the edge box (reverse proxy + identity).
- Payloads: hand-written recon for the network phases, then Atomic Red Team for execution, persistence and credential access on the Mac. Every test auto-cleans.
- Each phase timestamped; results pulled straight from the SIEM by @timestamp window.
the scoreboard
Round 1 — recon & initial access.
| Technique | What I did | Result | Latency |
|---|---|---|---|
| T1046 Network scan | 1,035-port scan ×2 + /24 sweeps | DETECTED · IPS | ~41 s |
| T1595 Web enumeration | 85 requests at the proxy | DETECTED · 4xx burst rule | ~30 s |
| T1046 Honeypot touch | connected to the decoy host | DETECTED · slow | ~4 min |
| T1595.002 Scanner UA | gobuster / Nikto user-agents | MISSED → fixed | — |
| T1110.001 SSH brute force | 75 failed logins on the Mac | MISSED → rule added | — |
Round 2 — execution, persistence & credential access (Atomic Red Team on the Mac).
| Technique | What it does | Result |
|---|---|---|
| T1056.002 Osascript credential prompt | fake password dialog | DETECTED ×2 · EDR + SIEM rule |
| T1059.004 Unix shell execution | shells from odd parents | DETECTED · EDR behaviour |
| T1543.001 Launch Agent/Daemon | persistence via plist | MISSED · telemetry only |
| T1053.003 Cron | persistence via cron | MISSED |
| T1518.001 Security software discovery | look for the EDR | MISSED |
5 detected of 10. And the edge box gave the attacker nothing: all 85 enumeration requests got a 401 before any route, because forward-auth answers first.
what the misses taught me
A green cell on the map ≠ a working rule
My scanner-user-agent rule looked covered, but it had never run once: a KQL syntax error (an escaped space inFuzz\ Faster) made it fail on every execution. The attack is what surfaced it. Fixed; it now matches cleanly.Prebuilt rules assume Linux auth logs
The SSH brute force on the Mac went unseen: the prebuilt SSH rules watchlogs-system.auth, but macOS reports SSH through the EDR (ssh_log_on). I wrote a rule for the endpoint telemetry (T1110.001 · T1021.004).EDR catches noise; persistence is quiet
The loud techniques (shells, a fake password prompt) tripped Elastic Defend on their own. The quiet ones (a Launch Daemon, a cron job) only left telemetry, no alert. That's the exact gap detection engineering exists to close, and my next detections to write.The honest number is 5/10
Not 10/10. A portfolio that claims total coverage is lying. The value is knowing precisely what slipped, why, and what you did next.round 3: next
The persistence misses (Launch Daemon, cron) become the next detection rules; then I re-run the same atomics and the cells turn green. That loop, attack → measure → write → re-attack, is the whole discipline, on my own equipment, with nobody's data but mine.