CmdID

CmdID / Rules / Linux

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

its detection, as SigmaHQ writes it
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

everyday examples from tldr-pages, CC BY 4.0, each read by CmdID

Run a command as root on the page for doas

doas commandIdentify

Run a command as another user on the page for doas

doas -u user commandIdentify

Launch the default shell as root on the page for doas

doas -sIdentify

Set a specific login shell for the current user on the page for chpass

doas chpass -s path/to/shellIdentify

Set a login shell for a specific user on the page for chpass

doas chpass -s path/to/shell usernameIdentify

Specify a user database entry in the passwd file format on the page for chpass

doas chpass -a username:encrypted_password:uid:gid:...Identify

The commands LOLBAS or GTFOBins documents for doas trip it too: each is on its program’s page, read by CmdID.

Programs and files it names

their pages here

ATT&CK

the techniques it is tagged with
T1548Abuse Elevation Control Mechanism