Skip to content

Commit a517af7

Browse files
[Shared Samples] [PR #4307] added rule: PR# 4307 - Link: Spanish tax document lure with suspicious domains
1 parent 56e466a commit a517af7

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: "PR# 4307 - Link: Spanish tax document lure with suspicious domains"
2+
description: "Detects messages containing Spanish tax document language that link to suspicious domains including URL shorteners, free file hosts, or newly registered domains."
3+
type: "rule"
4+
severity: "high"
5+
source: |
6+
type.inbound
7+
and 0 < length(body.links) < 15
8+
and length(recipients.to) == 1
9+
and recipients.to[0].email.domain.valid
10+
// spanish tax document phrases
11+
and regex.icontains(body.current_thread.text,
12+
'(?:Acessar Documento|Documento Fiscal|documento tributario|documento de impuestos|comprobante fiscal|constancia fiscal|declaración de impuestos|formulario fiscal|documentación fiscal|registro fiscal|certificado fiscal)'
13+
)
14+
// suspicious domains
15+
and any(body.links,
16+
.parser == 'hyperlink'
17+
and (
18+
.href_url.domain.domain in $url_shorteners
19+
or .href_url.domain.root_domain in $url_shorteners
20+
or .href_url.domain.domain in $free_file_hosts
21+
or .href_url.domain.root_domain in $free_file_hosts
22+
or .href_url.domain.domain in $free_subdomain_hosts
23+
or .href_url.domain.root_domain in $free_subdomain_hosts
24+
or .href_url.domain.domain in $self_service_creation_platform_domains
25+
or .href_url.domain.root_domain in $self_service_creation_platform_domains
26+
or .href_url.domain.tld in $suspicious_tlds
27+
or network.whois(.href_url.domain).days_old < 30
28+
)
29+
)
30+
attack_types:
31+
- "BEC/Fraud"
32+
- "Credential Phishing"
33+
- "Malware/Ransomware"
34+
tactics_and_techniques:
35+
- "Free file host"
36+
- "Free subdomain host"
37+
- "Social engineering"
38+
detection_methods:
39+
- "Content analysis"
40+
- "URL analysis"
41+
- "Whois"
42+
id: "f9ba15a2-f97d-5be3-bc37-4ce109235dcf"
43+
tags:
44+
- created_from_open_prs
45+
- rule_status_added
46+
- pr_author_hadojae
47+
references:
48+
- https://github.com/sublime-security/sublime-rules/pull/4307

0 commit comments

Comments
 (0)