Possible Docker Container Enumeration Through Dockerenv Listing (via process_creation)
This rule detects listing or file reading of ".dockerenv" that can be a sing of potential container discovery
SigmalowLinuxv1
sigma
possible-docker-container-enumeration-through-dockerenv-listing-via-process-creation
title: Possible Docker Container Enumeration Through Dockerenv Listing (via process_creation)
id: 3e2d2013-d699-577a-99b0-2f64e2ede514
status: stable
description: This rule detects listing or file reading of ".dockerenv" that can be a sing of potential container discovery
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-02
logsource:
category: process_creation
product: linux
detection:
selection:
Image|endswith:
- '/cat'
- '/dir'
- '/find'
- '/ls'
- '/stat'
- '/test'
- 'grep'
CommandLine|endswith: '.dockerenv'
condition: selection
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.