Link: .onion link with suspicious indicators

Detects inbound messages that reference onion/Tor addresses alongside extortion indicators such as cryptocurrency payment demands, language claiming stolen or exfiltrated data, Tor browser instructions, or a stolen filename used as the subject with no attachment. Also flags messages where an NLU classifier identifies malicious intent. Excludes solicited senders and highly trusted domains that pass DMARC authentication.

Sublime rule (View on GitHub)

 1name: "Link: .onion link with suspicious indicators"
 2description: "Detects inbound messages that reference onion/Tor addresses alongside extortion indicators such as cryptocurrency payment demands, language claiming stolen or exfiltrated data, Tor browser instructions, or a stolen filename used as the subject with no attachment. Also flags messages where an NLU classifier identifies malicious intent. Excludes solicited senders and highly trusted domains that pass DMARC authentication."
 3type: "rule"
 4severity: "low"
 5source: |
 6  type.inbound
 7  and (
 8    any(body.links, .href_url.domain.tld == "onion")
 9    or regex.icontains(body.current_thread.text, '\b[a-z2-7]{56}\.onion\b')
10  )
11  and (
12    sender.email.domain.root_domain in $free_email_providers
13    // the actor speaks for themselves... "we hold copies", "we will publish it"
14    or regex.icontains(strings.replace_confusables(body.current_thread.text),
15                       '\bwe\s+(?:have|hold|obtained|took|stole|downloaded|exfiltrated|copied|(?:will|are going to)\s+(?:publish|release|leak|sell|share|expose|send|tell))\b'
16    )
17    or regex.icontains(body.current_thread.text,
18                       '\btor\s*browser|torproject\.org'
19    )
20    or regex.icontains(strings.replace_confusables(body.current_thread.text),
21                       '\b(?:bitcoin|btc|monero|xmr|usdt)\b|\bbc1q'
22    )
23    // a stolen file's name as the subject, with nothing attached
24    or (
25      regex.icontains(subject.subject, '\.(?:pdf|xlsx?|docx?|csv|zip)$')
26      and length(attachments) == 0
27    )
28    or any(ml.nlu_classifier(strings.replace_confusables(body.current_thread.text)
29           ).intents,
30           .name != "benign" and .confidence != "low"
31    )
32  )
33  and not profile.by_sender_email().solicited
34  // negate highly trusted sender domains unless they fail DMARC authentication
35  and not (
36    sender.email.domain.root_domain in $high_trust_sender_root_domains
37    and coalesce(headers.auth_summary.dmarc.pass, false)
38  )  
39attack_types:
40  - "Extortion"
41tactics_and_techniques:
42  - "Free email provider"
43  - "Social engineering"
44detection_methods:
45  - "Content analysis"
46  - "Natural Language Understanding"
47  - "URL analysis"
48  - "Sender analysis"
49  - "Header analysis"
50id: "9ac0fc83-4c18-5a62-83e0-8fd0af9cffe0"
to-top