Sigma rule: Docker Container Discovery Via Dockerenv Listing

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-f8fa820ccf94, updated 2023-08-23T00:00:00.000Z.

Rule

Title
Docker Container Discovery Via Dockerenv Listing
Status
test
Level
low
Author
Seth Hanford
Date
2023-08-23
File
rules/linux/process_creation/proc_creation_lnx_susp_dockerenv_recon.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects listing or file reading of ".dockerenv" which can be a sing of potential container discovery

Log source

product
linux
category
process_creation

Detection

selection:
    Image|endswith:
        # Note: add additional tools and utilities to increase coverage
        - '/cat'
        - '/dir'
        - '/find'
        - '/ls'
        - '/stat'
        - '/test'
        - 'grep'
    CommandLine|endswith: '.dockerenv'
condition: selection

False positives (as the rule lists them)

  • Legitimate system administrator usage of these commands
  • Some container tools or deployments may use these techniques natively to determine how they proceed with execution, and will need to be filtered

Tags

  • attack.discovery
  • attack.t1082

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_susp_dockerenv_recon.yml

Sources and licences

  • SigmaHQ

    "Docker Container Discovery Via Dockerenv Listing" by Seth Hanford (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/process_creation/proc_creation_lnx_susp_dockerenv_recon.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: Docker Container Discovery Via Dockerenv Listing",
entity page, dataset version ref-f8fa820ccf94, updated 2023-08-23T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/11701de9-d5a5-44aa-8238-84252f131895 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 11701de9-d5a5-44aa-8238-84252f131895, 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.