Possible Container Residence Enumeration Through Proc Virtual FS (via process_creation)

This rule detects potential container discovery via listing of certain kernel features in the "/proc" virtual filesystem

SigmalowLinuxv1
sigma
title: Possible Container Residence Enumeration Through Proc Virtual FS (via process_creation)
id: 1ca607d9-9661-569e-a1d1-274689492a24
status: stable
description: This rule detects potential container discovery via listing of certain kernel features in the "/proc" virtual filesystem
references:
    - https://attack.mitre.org/techniques/T1082/
    - https://blog.skyplabs.net/posts/container-detection/
    - https://stackoverflow.com/questions/20010199/how-to-determine-if-a-process-runs-inside-lxc-docker
tags:
    - attack.discovery
    - attack.t1082
author: Huntrule Team
date: 2026-04-06
logsource:
    category: process_creation
    product: linux
detection:
    selection_tools:
        Image|endswith:
            - 'awk'
            - '/cat'
            - 'grep'
            - '/head'
            - '/less'
            - '/more'
            - '/nl'
            - '/tail'
    selection_procfs_kthreadd:
        CommandLine|contains: '/proc/2/'
    selection_procfs_target:
        CommandLine|contains: '/proc/'
        CommandLine|endswith:
            - '/cgroup'
            - '/sched'
    condition: selection_tools and 1 of selection_procfs_*
falsepositives:
    - Unknown
level: low

Known false positives

  • Unknown

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.