Skip to content

Commit 8bd27ab

Browse files
[PR #3430] added rule: Attachment: Any .sap file (unsolicited)
1 parent e7b96e5 commit 8bd27ab

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: "Attachment: Any .sap file (unsolicited)"
2+
description: "SAP shortcut files can be abused to run unsanctioned code on endpoints. Use if receiving .sap files is not normal behavior in your environment."
3+
references:
4+
- "https://onapsis.com/blog/sap-shortcut-phishing-threat/"
5+
type: "rule"
6+
severity: "low"
7+
source: |
8+
type.inbound
9+
and any(attachments, .file_extension == "sap")
10+
and (
11+
not profile.by_sender().solicited
12+
or profile.by_sender().any_messages_malicious_or_spam
13+
)
14+
and not profile.by_sender().any_messages_benign
15+
16+
// negate highly trusted sender domains unless they fail DMARC authentication
17+
and (
18+
(
19+
sender.email.domain.root_domain in $high_trust_sender_root_domains
20+
and not headers.auth_summary.dmarc.pass
21+
)
22+
or sender.email.domain.root_domain not in $high_trust_sender_root_domains
23+
)
24+
tags:
25+
- "Attack surface reduction"
26+
attack_types:
27+
- "Malware/Ransomware"
28+
tactics_and_techniques:
29+
- "Evasion"
30+
- "Scripting"
31+
detection_methods:
32+
- "File analysis"
33+
- "Header analysis"
34+
- "Sender analysis"
35+
id: "ec45494b-6dc9-5ae6-b182-4980b9530a62"
36+
og_id: "220ed3de-1b01-54a4-898d-6081785e2870"
37+
testing_pr: 3430
38+
testing_sha: 8d50ce810fc2aa5ae0665a4d277c07e9e93aecbe

0 commit comments

Comments
 (0)