Detection rules › Panther
Panther rules: macos
| Rule | Severity |
|---|---|
| MacOS Browser Credential Access | |
| MacOS Browser Credential Access (crowdstrike_fdrevent table) |
MacOS Browser Credential Access
#Detects processes that contain known browser credential files in arguments.
Rule Specification
AnalysisType: scheduled_query
Description: Detects processes that contain known browser credential files in arguments.
Enabled: false
SnowflakeQuery: |
SELECT
*
FROM
panther_logs.public.crowdstrike_processrollup2
WHERE
commandline LIKE ANY (
'%/Users/%/Library/Application Support/Google/Chrome/Default/Login Data%',
'%/Users/%/Library/Application Support/Google/Chrome/Default/Cookies%',
'%/Users/%/Library/Application Support/Google/Chrome/Profile%/Cookies%',
'%/Users/%/Library/Cookies%',
'%/Users/%/Library/Application Support/Firefox/Profiles/%.default/cookies.sqlite%',
'%/Users/%/Library/Application Support/Firefox/Profiles/%.default/key%.db%',
'%/Users/%/Library/Application Support/Firefox/Profiles/%.default/logins.json%',
'%Login Data%',
'%Cookies.binarycookies%',
'%key4.db%',
'%key3.db%',
'%logins.json%',
'%cookies.sqlite%'
)
/*
-- allowlist of applications
and imagefilename NOT IN (
'/bin/rm'
)
*/
and p_occurs_since('1 day')
DatabricksQuery: |
SELECT
*
FROM
panther_logs.crowdstrike_processrollup2
WHERE
(
commandline LIKE '%/Users/%/Library/Application Support/Google/Chrome/Default/Login Data%'
OR commandline LIKE '%/Users/%/Library/Application Support/Google/Chrome/Default/Cookies%'
OR commandline LIKE '%/Users/%/Library/Application Support/Google/Chrome/Profile%/Cookies%'
OR commandline LIKE '%/Users/%/Library/Cookies%'
OR commandline LIKE '%/Users/%/Library/Application Support/Firefox/Profiles/%.default/cookies.sqlite%'
OR commandline LIKE '%/Users/%/Library/Application Support/Firefox/Profiles/%.default/key%.db%'
OR commandline LIKE '%/Users/%/Library/Application Support/Firefox/Profiles/%.default/logins.json%'
OR commandline LIKE '%Login Data%'
OR commandline LIKE '%Cookies.binarycookies%'
OR commandline LIKE '%key4.db%'
OR commandline LIKE '%key3.db%'
OR commandline LIKE '%logins.json%'
OR commandline LIKE '%cookies.sqlite%'
)
/*
-- allowlist of applications
and imagefilename NOT IN (
'/bin/rm'
)
*/
AND p_occurs_since('1 day')
QueryName: "MacOS Browser Credential Access"
Schedule:
RateMinutes: 1440
TimeoutMinutes: 5
Stages and Predicates
Stage 1: source
Stage 2: filter
any of:
commandlinelike%/Users/%/Library/Application Support/Google/Chrome/Default/Login Data%commandlinelike%/Users/%/Library/Application Support/Google/Chrome/Default/Cookies%commandlinelike%/Users/%/Library/Application Support/Google/Chrome/Profile%/Cookies%commandlinelike%/Users/%/Library/Cookies%commandlinelike%/Users/%/Library/Application Support/Firefox/Profiles/%.default/cookies.sqlite%commandlinelike%/Users/%/Library/Application Support/Firefox/Profiles/%.default/key%.db%commandlinelike%/Users/%/Library/Application Support/Firefox/Profiles/%.default/logins.json%commandlinelike%Login Data%commandlinelike%Cookies.binarycookies%commandlinelike%key4.db%commandlinelike%key3.db%commandlinelike%logins.json%commandlinelike%cookies.sqlite%
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
commandline | like |
| field:"CommandLine" kind:like |
Output Fields
The rule emits every field available at its final step.
MacOS Browser Credential Access (crowdstrike_fdrevent table)
#Detects processes that contain known browser credential files in arguments. (crowdstrike_fdrevent table)
Rule Specification
# This file is the part of the Crowdstrike FDREvent migration, and it's the equivalent of
# https://github.com/panther-labs/panther-analysis/blob/b61db1ecf3967c5f6a44c1782f8891fd5f54384d/queries/crowdstrike_queries/MacOS_Browser_Credential_Access.yml
#
AnalysisType: scheduled_query
Description: Detects processes that contain known browser credential files in arguments. (crowdstrike_fdrevent table)
Enabled: false
SnowflakeQuery: |
SELECT
*
FROM panther_logs.public.crowdstrike_fdrevent
WHERE
fdr_event_type = 'ProcessRollup2' AND
event:CommandLine LIKE ANY (
'%/Users/%/Library/Application Support/Google/Chrome/Default/Login Data%',
'%/Users/%/Library/Application Support/Google/Chrome/Default/Cookies%',
'%/Users/%/Library/Application Support/Google/Chrome/Profile%/Cookies%',
'%/Users/%/Library/Cookies%',
'%/Users/%/Library/Application Support/Firefox/Profiles/%.default/cookies.sqlite%',
'%/Users/%/Library/Application Support/Firefox/Profiles/%.default/key%.db%',
'%/Users/%/Library/Application Support/Firefox/Profiles/%.default/logins.json%',
'%Login Data%',
'%Cookies.binarycookies%',
'%key4.db%',
'%key3.db%',
'%logins.json%',
'%cookies.sqlite%'
)
/*
-- allowlist of applications
and event:ImageFileName NOT IN (
'/bin/rm'
)
*/
and p_occurs_since('1 day')
DatabricksQuery: |
SELECT
*
FROM panther_logs.crowdstrike_fdrevent
WHERE
fdr_event_type = 'ProcessRollup2' AND
(
event:CommandLine LIKE '%/Users/%/Library/Application Support/Google/Chrome/Default/Login Data%'
OR event:CommandLine LIKE '%/Users/%/Library/Application Support/Google/Chrome/Default/Cookies%'
OR event:CommandLine LIKE '%/Users/%/Library/Application Support/Google/Chrome/Profile%/Cookies%'
OR event:CommandLine LIKE '%/Users/%/Library/Cookies%'
OR event:CommandLine LIKE '%/Users/%/Library/Application Support/Firefox/Profiles/%.default/cookies.sqlite%'
OR event:CommandLine LIKE '%/Users/%/Library/Application Support/Firefox/Profiles/%.default/key%.db%'
OR event:CommandLine LIKE '%/Users/%/Library/Application Support/Firefox/Profiles/%.default/logins.json%'
OR event:CommandLine LIKE '%Login Data%'
OR event:CommandLine LIKE '%Cookies.binarycookies%'
OR event:CommandLine LIKE '%key4.db%'
OR event:CommandLine LIKE '%key3.db%'
OR event:CommandLine LIKE '%logins.json%'
OR event:CommandLine LIKE '%cookies.sqlite%'
)
/*
-- allowlist of applications
and event:ImageFileName NOT IN (
'/bin/rm'
)
*/
AND p_occurs_since('1 day')
QueryName: "MacOS Browser Credential Access (crowdstrike_fdrevent table)"
Schedule:
RateMinutes: 1440
TimeoutMinutes: 5
Stages and Predicates
Stage 1: source
Stage 2: filter
fdr_event_typeisProcessRollup2any of:
event:CommandLinelike%/Users/%/Library/Application Support/Google/Chrome/Default/Login Data%event:CommandLinelike%/Users/%/Library/Application Support/Google/Chrome/Default/Cookies%event:CommandLinelike%/Users/%/Library/Application Support/Google/Chrome/Profile%/Cookies%event:CommandLinelike%/Users/%/Library/Cookies%event:CommandLinelike%/Users/%/Library/Application Support/Firefox/Profiles/%.default/cookies.sqlite%event:CommandLinelike%/Users/%/Library/Application Support/Firefox/Profiles/%.default/key%.db%event:CommandLinelike%/Users/%/Library/Application Support/Firefox/Profiles/%.default/logins.json%event:CommandLinelike%Login Data%event:CommandLinelike%Cookies.binarycookies%event:CommandLinelike%key4.db%event:CommandLinelike%key3.db%event:CommandLinelike%logins.json%event:CommandLinelike%cookies.sqlite%
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
event:CommandLine | like |
| field:"event:CommandLine" kind:like |
fdr_event_type | eq |
| field:"fdr_event_type" kind:eq value:"ProcessRollup2" |
Output Fields
The rule emits every field available at its final step.