heroui logo

Potential Container Escape via Modified notify_on_release File

Elastic Detection Rules

View Source
Summary
This detection rule identifies potential privilege escalation attempts via the modification of the `notify_on_release` file within Linux Control Groups (cgroups) by a privileged container. When the `notify_on_release` flag is set to 1, it enables the execution of commands specified in the `release_agent` file whenever tasks exit or are moved from the cgroup, which could be exploited by attackers to execute unauthorized commands on the host machine. The rule utilizes Elastic's `cloud_defend` logs to track changes to the `notify_on_release` file, indicative of possible container escapes. The rule is designed to catch these modifications and trigger alerts for further investigation, thereby mitigating the risk of adversaries gaining increased permissions or impact on resources.
Categories
  • Containers
  • Linux
  • Cloud
Data Sources
  • Container
  • File
  • Logon Session
ATT&CK Techniques
  • T1611
Created: 2023-10-26