Sigma rule: Linux Base64 Encoded Pipe to Shell

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-1b82689c2b90, updated 2023-06-16T00:00:00.000Z.

Rule

Title
Linux Base64 Encoded Pipe to Shell
Status
test
Level
medium
Author
pH-T (Nextron Systems)
Date
2022-07-26
Modified
2023-06-16
File
rules/linux/process_creation/proc_creation_lnx_base64_execution.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects suspicious process command line that uses base64 encoded input for execution with a shell

Log source

product
linux
category
process_creation

Detection

selection_base64:
    CommandLine|contains: 'base64 '
selection_exec:
    - CommandLine|contains:
          - '| bash '
          - '| sh '
          - '|bash '
          - '|sh '
    - CommandLine|endswith:
          - ' |sh'
          - '| bash'
          - '| sh'
          - '|bash'
condition: all of selection_*

False positives (as the rule lists them)

  • Legitimate administration activities

Tags

  • attack.stealth
  • attack.t1140

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/process_creation/proc_creation_lnx_base64_execution.yml

Sources and licences

  • SigmaHQ

    "Linux Base64 Encoded Pipe to Shell" by pH-T (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/process_creation/proc_creation_lnx_base64_execution.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Linux Base64 Encoded Pipe to Shell",
entity page, dataset version ref-1b82689c2b90, updated 2023-06-16T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/ba592c6d-6888-43c3-b8c6-689b8fe47337 (accessed 2026-11-03).
Underlying source: SigmaHQ rule ba592c6d-6888-43c3-b8c6-689b8fe47337, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.