The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
Go agent-ai-cliagent-harnessesagent-securitybrowser-extensionciclaude-codecloudcodexcursordetection-engineeringjevknowledge-basememorymobile-device-managementobservabilitysecuritysecurity-information-and-event-managementsecurity-toolstelemetrytraces
fix(rules): match ps auxww and ps -eo in process-table-secret-scrape (#1028)
Rudy Mizrahi Celekli255e42658414
diff --git a/rules/credential-access/process-table-secret-scrape.rule.yaml b/rules/credential-access/process-table-secret-scrape.rule.yamlindex 10d40dde..aaa7cafa 100644--- a/rules/credential-access/process-table-secret-scrape.rule.yaml+++ b/rules/credential-access/process-table-secret-scrape.rule.yaml@@ -1,8 +1,9 @@id: process-table-secret-scrape-version: 1+version: 2title: Process table scraped for command-line secretsdescription: >- A command enumerates the full process table (ps aux / ps -ef) or reads+ A command enumerates the full process table (ps aux / ps -ef, including wide or+ custom-format variants such as ps auxww and ps -eo args) or reads/proc/*/cmdline and filters it for credential-shaped flags or names (--password,--token, --api-key, SECRET, PASSWORD). Secrets passed as CLI args are visible toevery same-uid process; scraping the process table harvests them without touching@@ -19,7 +20,7 @@ match: >e.event.action == "command.executed" &&e.command.command.matches("\\|") &&(- e.command.command.matches("(?i)\\bps\\s+(aux|-ef|-e|ax|-aux)\\b") ||+ e.command.command.matches("(?i)\\bps\\s+(-?aux|-ef|-e|ax)[a-z]*\\b") ||e.command.command.matches("(?i)/proc/[^/]+/cmdline")) &&e.command.command.matches("(?i)(--?(password|token|secret|api[_-]?key)|PASSWORD|SECRET|TOKEN|API[_-]?KEY)")@@ -28,6 +29,24 @@ emit:reason: "Process table or /proc cmdline scraped for command-line secrets"tests:+ - name: ps_auxww_wide_output+ verdict: match+ events:+ - event: { action: command.executed }+ command: { command: "ps auxww | grep -i token" }+ session: { id: s1 }+ - name: ps_eo_args+ verdict: match+ events:+ - event: { action: command.executed }+ command: { command: "ps -eo pid,args | grep -i -- --password" }+ session: { id: s1 }+ - name: ps_single_pid_lookup+ verdict: no_match+ events:+ - event: { action: command.executed }+ command: { command: "ps -p 4242 -o etime | grep TOKEN_REFRESH" }+ session: { id: s1 }- name: ps_aux_grep_passwordverdict: matchevents: