Linux Doas Tool Execution
A Sigma rule for process creation on Linux, by Sittikorn S, Teoderick Contreras.
low 1 ATT&CK technique 1 program it names 6 everyday examples trip it
What it looks for
detection:
selection:
Image|endswith: '/doas'
condition: selection
The rule’s detection, its selections and fields in order of name. The whole rule, with its references and false positives, is on SigmaHQ, by Sittikorn S, Teoderick Contreras, under the Detection Rule License 1.1. CmdID evaluates it on a command line alone: a test on what a command line cannot show, such as the parent process or the user, is not met.
Command lines that trip it
Set a specific login shell for the current user on the page for chpass
doas chpass -s path/to/shellIdentifySet a login shell for a specific user on the page for chpass
doas chpass -s path/to/shell usernameIdentifySpecify a user database entry in the passwd file format on the page for chpass
doas chpass -a username:encrypted_password:uid:gid:...IdentifyThe commands LOLBAS or GTFOBins documents for doas trip it too: each is on its program’s page, read by CmdID.