Sigma rule: Potential Container Discovery Via Inodes Listing

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-4ff021eace9b, updated 2025-11-24T00:00:00.000Z.

Rule

Title
Potential Container Discovery Via Inodes Listing
Status
test
Level
low
Author
Seth Hanford
Date
2023-08-23
Modified
2025-11-24
File
rules/linux/process_creation/proc_creation_lnx_susp_inod_listing.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects listing of the inodes of the "/" directory to determine if the we are running inside of a container.

Log source

product
linux
category
process_creation

Detection

selection_ls_img:
    Image|endswith: '/ls'    # inode outside containers low, inside high
selection_ls_cli:
    - CommandLine|endswith: ' /'
    - CommandLine|contains: ' / '
selection_regex_inode:
    CommandLine|re: '(?:\s-[^-\s]{0,20}i|\s--inode\s)'      # -i finds inode number
selection_regex_dir:
    CommandLine|re: '(?:\s-[^-\s]{0,20}d|\s--directory\s)'  # -d gets directory itself, not contents
condition: all of 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_inod_listing.yml

Sources and licences

  • SigmaHQ

    "Potential Container Discovery Via Inodes Listing" by Seth Hanford (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/process_creation/proc_creation_lnx_susp_inod_listing.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: Potential Container Discovery Via Inodes Listing",
entity page, dataset version ref-4ff021eace9b, updated 2025-11-24T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/43e26eb5-cd58-48d1-8ce9-a273f5d298d8 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 43e26eb5-cd58-48d1-8ce9-a273f5d298d8, 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.