CmdID

CmdID / Rules / Linux

System Information Discovery

A Sigma rule for process creation on Linux, by Ömer Günal, oscd.community.

informational 1 ATT&CK technique 7 programs it names 37 everyday examples trip it

What it looks for

its detection, as SigmaHQ writes it
detection:
  selection:
    Image|endswith:
      - '/uname'
      - '/hostname'
      - '/uptime'
      - '/lspci'
      - '/dmidecode'
      - '/lscpu'
      - '/lsmod'
  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 Ömer Günal, oscd.community, 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

Show all DMI table contents on the page for dmidecode

sudo dmidecodeIdentify

Show the BIOS version on the page for dmidecode

sudo dmidecode --string bios-versionIdentify

Show the system's serial number on the page for dmidecode

sudo dmidecode --string system-serial-numberIdentify

Show current host name on the page for hostname

hostnameIdentify

Show the network address of the host name on the page for hostname

hostname --ip-addressIdentify

Show the FQDN (Fully Qualified Domain Name) on the page for hostname

hostname --fqdnIdentify

Set current host name on the page for hostname

hostname new_hostnameIdentify

Display information about all CPUs on the page for lscpu

Display information in a table on the page for lscpu

lscpu --extendedIdentify

Display only information about online CPUs in a table on the page for lscpu

lscpu --extended --onlineIdentify

Display only information about offline CPUs in a table on the page for lscpu

lscpu --extended --offlineIdentify

Display details about CPU caches on the page for lscpu

lscpu --cachesIdentify

And 25 more examples on CmdID’s program pages.

The commands LOLBAS or GTFOBins documents for dmidecode 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
T1082System Information Discovery