Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 22 additions & 15 deletions detection-rules/impersonation_social_security_admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,28 @@ source: |
// there are confusables in the display name
or (
strings.replace_confusables(sender.display_name) != sender.display_name
and strings.contains(strings.replace_confusables(sender.display_name), "SSA")
and strings.contains(strings.replace_confusables(sender.display_name),
"SSA"
)
)
or any([sender.display_name, subject.subject],
regex.icontains(strings.replace_confusables(.), 'Social (?:benefits|security)', )
)
// display name or subject references a statement
or (
any([sender.display_name, subject.subject],
regex.icontains(strings.replace_confusables(.),
'(Digital|(e[[:punct:]]?))\s?Statements?.{0,10}(Generated|Created|Issued|Ready)'
)
)
// with SSA impersonation in the body
and strings.icontains(body.current_thread.text,
'Social Security Administration'
)
regex.icontains(strings.replace_confusables(.),
'Social (?:benefits|security)'
)
// display name or subject references a statement
or (
(
regex.icontains(strings.replace_confusables(.),
'(Digital|(e[[:punct:]]?))\s?Statements?.{0,10}(Generated|Created|Issued|Ready)'
)
// or the Login.gov SSO service
or strings.icontains(strings.replace_confusables(.), "login.gov")
)
// with SSA impersonation in the body
and strings.icontains(body.current_thread.text,
'Social Security Administration'
)
)
)
)
// Contains a link
Expand All @@ -39,7 +45,8 @@ source: |
// Additional suspicious indicator
and (
any(ml.nlu_classifier(body.current_thread.text).topics,
.name == "Secure Message" and .confidence == "high"
.name in ("Secure Message", "Government Services")
and .confidence == "high"
)
or strings.icontains(body.current_thread.text, "SSA Statement Viewer")
or strings.icontains(body.current_thread.text, "Social Security Statement")
Expand Down
Loading