Input-state probing tool or shell/browser history read on Linux
AN1183 names two ways a sandbox check confirms a real user is present: running a tool that reads keyboard/mouse input state (xdotool, xinput, xev), and reading artifacts a real session accumulates (shell history, browser profile data). Both of the brief's log-source entries for this analytic resolve to the same auditd Sigma logsource, so one rule can hold both legs: an auditd SYSCALL record whose `exe` is one of the three input-probing tools, or a PATH record naming .bash_history or the .mozilla profile directory. The brief also lists reads of /dev/input directly; that path is deliberately not included as a third selection, because /dev/input is what the X server and every libinput-based input driver read continuously as part of normal GUI operation on any desktop session — a selection on that alone would be indistinguishable from the X server simply running. AN1183's `ArtifactCountThreshold` knob (alert only after N distinct artifacts are touched) is not implemented; lib/sigma has no counting or aggregation, so this fires on the first matching read or execution, not a threshold of them. AN1182, the Windows leg of this strategy, is not attempted here. Its observable is process execution correlated with a preceding 4800/4801 workstation lock/unlock event within a time window, which is a cross-event join lib/sigma cannot express — a rule on the process-creation leg alone would have to guess at which registry keys or commands count as "probing user activity artifacts," a specificity MITRE's own analytic description does not commit to. AN1184, the macOS leg, is not attempted either: its unifiedlog source has no standardised Sigma field names for the CGEventState APIs or plist reads it names, and inventing them would produce a rule that renders in every backend and matches nothing. Prerequisite: none of these paths or syscalls are audited by default. This needs an execve-auditing rule to catch the tool launches (for example `-a always,exit -F arch=b64 -S execve -k input_probe`) and explicit watches for the artifact paths — auditd watches take no wildcards, so covering every account means either per-user `-w /home/<user>/.bash_history -p r` and `-w /home/<user>/.mozilla -p r` entries or a directory-prefix syscall rule over /home. Without either, this returns zero rows, which here means the sensor is blind rather than that no probing occurred. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0420, not hand-written and not tested by its author. Any lab result is on this rule's own page.Full descriptionShow less
The detection
The 3 SIEM queries below are previews produced by Siemphony’s own translator, not pySigma, and none has been executed against a real backend — review before you deploy.
detection.yml
Splunk · SPL
Run this as a search.
index=* ((type="SYSCALL" AND (exe="*/xdotool" OR exe="*/xinput" OR exe="*/xev")) OR (type="PATH" AND (name="*.bash_history*" OR name="*.mozilla*")))Elastic · ES|QL
Run this as a search.
FROM logs-*| WHERE ((TO_LOWER(type) == "syscall" AND (TO_LOWER(exe) LIKE "*/xdotool" OR TO_LOWER(exe) LIKE "*/xinput" OR TO_LOWER(exe) LIKE "*/xev")) OR (TO_LOWER(type) == "path" AND (TO_LOWER(name) LIKE "*.bash_history*" OR TO_LOWER(name) LIKE "*.mozilla*")))
Wazuh · XML rule
Deploy to your manager — this is a rule, not a search.
<group name="sigma,linux,"> <!-- Rule ids must be unique on your manager; 100000+ is the user range. --> <!-- 2 rules: the Sigma condition ORs across different fields, which one rule cannot express. Any one matching is a hit. --> <rule id="100000" level="5"> <!-- Set <if_sid> to the decoder/base rule for linux so this only evaluates relevant events. --> <field name="type" type="pcre2">(?i)^SYSCALL$</field> <field name="exe" type="pcre2">(?i)(/xdotool$|/xinput$|/xev$)</field> <description>Input-state probing tool or shell/browser history read on Linux (1/2)</description> <mitre> <id>T1497.002</id> </mitre> </rule> <rule id="100001" level="5"> <!-- Set <if_sid> to the decoder/base rule for linux so this only evaluates relevant events. --> <field name="type" type="pcre2">(?i)^PATH$</field> <field name="name" type="pcre2">(?i)(\.bash_history|\.mozilla)</field> <description>Input-state probing tool or shell/browser history read on Linux (2/2)</description> <mitre> <id>T1497.002</id> </mitre> </rule></group>
Sentinel · KQL
Run this as a search.
Sentinel cannot express this construct. No Sentinel table is modelled for this logsource ({"product":"linux","service":"auditd"}), so there is nothing honest to query. Pick a logsource this translator maps, or write the KQL by hand. The Sigma source is on the first tab, unchanged.
Verdicts · reactions · comments
Community
Verdicts from engineers who actually deployed it, and the conversation around it.
Nobody has run this in a real environment and said what happened.
Verdicts from engineers who deployed it
0 castNo verdicts reported yet. The first one is worth more than the tenth — say what you ran it against.
Log in to report a verdict.
Log in to join the discussion.
No comments yet. Someone who deploys this will have something to say about it.