heroui logo

BEC/Fraud: Payroll diversion with with recipient name in transparent background span

Sublime Rules

View Source
Summary
Detects business email compromise (BEC) payroll diversion attempts delivered via inbound messages from free email providers. The rule filters out replies/forwards to target new conversations and requires the sender's domain to be a free email provider. It looks for payroll-related references (payroll, direct deposit, salary, ACH, etc.) in the body or subject using regex, and requires an HTML span with a background-color:transparent embedding the recipient’s email username. The rule uses NLU to extract entities (e.g., disclaimer) and enforces content length constraints (either <800 characters in the current thread or a short remainder after disclaimers). It further validates that the HTML span exposes the recipient’s username by matching the span’s display_text against the recipient’s local-part or against the recipient’s first name. If these conditions are met, the detection flags as BEC/Fraud with emphasis on payroll diversion attempts that rely on HTML obfuscation and targeted recipient information. Attack types include free-email-origin delivery, evasion techniques, and social engineering. Detection methods include HTML analysis, content analysis, natural language understanding, header analysis, and sender analysis.
Categories
  • Web
  • Application
Data Sources
  • Network Traffic
  • Application Log
  • Script
Created: 2026-11-23