File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,14 +4,11 @@ type: "rule"
44severity : " medium"
55source : |
66 type.inbound
7- // standard generic greeting
8- and (
9- strings.istarts_with(body.current_thread.text, "dear sir/madam")
10- // expectation of time
11- and regex.icontains(body.current_thread.text,
12- 'will be released|\b[1-4].[1-4]\b.{1,10}days?'
13- )
7+ // expectation of time
8+ and regex.icontains(body.current_thread.text,
9+ 'will be released|\b[1-4].[1-4]\b.{1,10}days?'
1410 )
11+
1512 // link is malicious
1613 and any(body.links,
1714 // key phrasing or nlu
@@ -42,16 +39,10 @@ source: |
4239 and length(recipients.cc) == 0
4340 and sender.email.email == recipients.to[0].email.email
4441 )
45- // no recipient
42+ // the recipient is undisclosed or there are no recipients
4643 or (
47- (
48- length(recipients.to) == 0
49- and length(recipients.bcc) == 0
50- and length(recipients.cc) == 0
51- )
52- or any(recipients.to,
53- strings.ilike(.display_name, "undisclosed?recipients")
54- )
44+ length(recipients.to) == 0
45+ or all(recipients.to, .email.domain.valid == false)
5546 )
5647 )
5748
You can’t perform that action at this time.
0 commit comments