Lion Cipher Lab

Detect malicious mailbox auto-forwarding and inbox rules (BEC)

Why it matters

Business Email Compromise (BEC) is one of the most expensive attacks in the world, and its most damaging move is almost silent. A user gets phished, the attacker signs in, and then -- instead of doing anything loud -- they reach for the mailbox's own features. They add an AUTO-FORWARD so every message the victim receives is quietly copied to an outside address, and they add INBOX RULES that delete or hide the replies that would blow their cover, so when a colleague writes back 'wait, is this wire request real?' the victim never sees it. Microsoft lists exactly this -- inbox rules that forward…

What you'll learn

Steps in this lab

  1. What a malicious mailbox rule is -- every term, defined once
  2. The naive rule, and why it fails twice at once
  3. Seed a realistic mail audit log
  4. Write the detector -- four views of the same log
  5. Measure the BEFORE: the naive rule floods and still misses one
  6. Measure the structured detector -- more true positives, far fewer false
  7. The honest negatives, measured: the evader, the blind spot, the FP you keep
  8. When to trust this signal -- and when it lies
  9. What you built -- and the reflex to keep

Open the full interactive lab →