Scheduled Job Creation via At Utility Inside a Container

Last updated 4 days ago on 2026-11-13
Created 4 days ago on 2026-11-13

About

This rule detects execution of the "at" or "atd" job-scheduling utilities inside a Linux container. Containers are typically immutable, single-purpose, and do not run interactive job schedulers, so the use of "at" to queue a one-time command is anomalous. Adversaries abuse "at" to establish persistence or to execute a payload at a later time after gaining a foothold inside a container.
Tags
Data Source: Elastic Defend for ContainersDomain: ContainersOS: LinuxUse Case: Threat DetectionTactic: ExecutionTactic: PersistenceRule Type: ES|QLPlatform: LinuxPlatform: KubernetesLanguage: esql
Severity
low
Risk Score
21
MITRE ATT&CK™

Execution (TA0002)(external, opens in a new tab or window)

Persistence (TA0003)(external, opens in a new tab or window)

False Positive Examples
Some container images bundle the "at"/"atd" utilities and a small number of workloads may legitimately schedule one-time jobs. Investigate the queued command and the scheduling principal; baseline and except known automation images where appropriate.
License
Elastic License v2(external, opens in a new tab or window)

Definition

Integration Pack
Prebuilt Security Detection Rules
Related Integrations

cloud_defend(external, opens in a new tab or window)

Query
text code block:
from logs-cloud_defend.process* metadata _id, _index, _version | where host.os.type == "linux" and event.type == "start" and event.action == "exec" and container.id like "*" and ( process.name in ("at", "atd") or kql("""process.args: "at" """) ) | keep @timestamp, host.id, container.id, process.name, process.args, process.parent.name, process.parent.executable, user.id, _id, _index, _version

Install detection rules in Elastic Security

Detect Scheduled Job Creation via At Utility Inside a Container in the Elastic Security detection engine by installing this rule into your Elastic Stack.

To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).