Skip to content

Commit 85fb2df

Browse files
peterdj45IndiaAce
andauthored
Update detection-rules/predatory_academic_journal.yml
Co-authored-by: Luke Wescott <69780712+IndiaAce@users.noreply.github.com>
1 parent a224608 commit 85fb2df

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

detection-rules/predatory_academic_journal.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,13 @@ source: |
141141
any(body.links, regex.imatch(.href_url.path, '^/ey[a-z]/.{2,}$'))
142142
)
143143
144-
// don't match microsoft quarantine messages
144+
// negate microsoft quarantine messages
145145
and not (
146146
any(body.links,
147-
strings.icontains(.display_text, "Review Message")
148-
or strings.icontains(.display_text, "Passer en revue le message")
147+
(
148+
strings.icontains(.display_text, "Review Message")
149+
or strings.icontains(.display_text, "Passer en revue le message")
150+
)
149151
and (
150152
.href_url.domain.domain == "security.microsoft.com"
151153
and .href_url.path == "/quarantine"

0 commit comments

Comments
 (0)