Scheduled Task/Job: Cron T1053.003

Tactics: Execution, Persistence, Privilege Escalation

Adversaries may abuse the cron utility to perform task scheduling for initial or recurring execution of malicious code. The cron utility is a time-based job scheduler for Unix-like operating systems. The crontab file contains the schedule of cron entries to be run and the specified times for execution. Any crontab files are stored in operating system-specific file paths.

Events covered

7 catalog events are tagged with this technique by at least one rule.

Authoring guide

These 38 rules share fields, values, and exclusions.

Fields filtered most (39 distinct)

These fields appear most often in rule filters.

FieldRulesHowSample values
EventType18eq 11, in 6, ne 1exec, exec_event, ProcessRollup2, creation, modification
process_name15in 9, eq 5, is_not_null 2, starts_with 1bash, csh, crontab, dash, busybox
event.type14eq 11, ne 3start, deletion
TargetFilename12starts_with 4, wildcard 4, eq 3, in 2, contains 1, ends_with 1/etc/cron.allow, /etc/cron.d/*, /private/var/at/tabs/, /private/var/at/tabs/root, */etc/at.allow
CommandLine10contains 6, wildcard 4, in 2, regex_match 1* setsid *, */dev/shm/*, */dev/tcp*, */etc/anacrontab*, */etc/cron*
host.os.type9eq 9
process.args9eq 5, in 4, starts_with 3, wildcard 3, contains 2-c, --command, -cl, * /dev/shm/* , * /home/*
parent_process_name6in 5, eq 4, starts_with 1, wildcard 1cron, crond, systemd, *.bin, *.lua
Image4ends_with 2, eq 2, starts_with 1, wildcard 1./, /boot/, /crontab, /dev/shm/, /usr/bin/crontab
sourcetype4eq 4auditd, cisco:isovalent:processexec, cisco:sfw:estreamer
ParentImage2wildcard 2/dev/shm/*, ., ./*, /boot/*, /etc/profile.d/*
container.id2starts_with 2?
data_stream.dataset2eq 2fim.event, network_traffic.redis
process.args_count2eq 21
type2eq 2cwd, path, syscall

Top indicator values (639 distinct)

These values appear most often in rule predicates.

FieldKindValueRules (here)Corpus reach
event.typeeq
start
111087
EventTypeeq
exec
7579
process_namein
bash
6202
process_namein
csh
6159
process_namein
dash
6170
process_namein
fish
6163
process_namein
ksh
6163
process_namein
sh
6197
process_namein
tcsh
6156
process_namein
zsh
6196
CommandLinewildcard
*disown*
410
CommandLinewildcard
*xxd *
412
CommandLinewildcard
*/dev/shm/*
39
CommandLinewildcard
*TCPSocket.new*
37
CommandLinewildcard
*TCPSocket.open*
37
CommandLinewildcard
*fsockopen*
38
CommandLinewildcard
*import*pty*spawn*
39
CommandLinewildcard
*import*subprocess*call*
39
CommandLinewildcard
*io.popen*
38
CommandLinewildcard
*os.execute*
38
EventTypein
exec
3206
EventTypein
exec_event
3150
EventTypein
start
3168
TargetFilenamewildcard
/etc/cron.allow
33
TargetFilenamewildcard
/etc/cron.d/*
33
TargetFilenamewildcard
/etc/cron.daily/*
33
TargetFilenamewildcard
/etc/cron.deny
33
TargetFilenamewildcard
/etc/cron.hourly/*
33
TargetFilenamewildcard
/etc/cron.monthly/*
33
TargetFilenamewildcard
/etc/cron.weekly/*
33

Exclusions (523 distinct)

These values appear most often in top-level exclusions.

FieldKindValueRules excluding
Imageeq
/usr/bin/crontab
3
TargetFilenamewildcard
/var/spool/cron/crontabs/tmp.*
2
file.extensionin
dpkg-remove
2
CommandLinecontains
/.claude/shell-snapshots/
1
CommandLinecontains
/.codex/shell_snapshots/
1
CommandLinecontains
/.cursor/shell-snapshots/
1
CommandLinecontains
/etc/cron.daily/
1
CommandLinecontains
/home/ec2-user/.ssh/authorized_keys
1
CommandLinecontains
/home/manage/.ssh/authorized_keys
1
CommandLinecontains
/tmp/healer/log/Lenovo_Support/bomc_
1
CommandLinecontains
/usr/local/logicmonitor/agent/bin/logicmonitor-watchdog.java.pid
1
CommandLinecontains
extglob
1
CommandLineends_with
/tmp/mailmanListMembers.txt
1
CommandLinein
/bin/bash -c chown root /tmp/.flexlm*
1
CommandLinein
/bin/bash -c curl -fs https://get.upwind.io/sensor.sh | bash -s -- upgrade
1

Rules under this technique

These vendors publish rules tagged with this technique.

Platform (all)
Domain (all)

Sigma 6 rules

Elastic 20 rules

Splunk 10 rules

Panther 2 rules