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

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

Authoring guide

Patterns shared across the 29 rules above: which fields they filter on, what specific values they look for, and what they exclude. The catalog normalizes field names across vendors so Sigma's Image, Elastic's process.name, and Splunk's process_name collapse into one row. Each rule contributes at most once per row.

Fields filtered most (32 distinct)

The fields most rules look at when detecting this technique. The How column shows the operators authors use (eq, wildcard, regex_match, match) and how often each appears. Sample values are concrete examples to start from, not an exhaustive list.

FieldRulesHowSample values
EventType11in 6, eq 5exec, exec_event, ProcessRollup2, creation, modification
TargetFilename10wildcard 4, starts_with 3, eq 2, in 2, contains 1, ends_with 1/etc/cron.allow, /etc/cron.d/*, */etc/at.allow, */etc/at.deny, */etc/cron*
host.os.type9eq 9
process_name9eq 4, in 4, is_not_null 2crontab, bash, chmod, cron, crond
CommandLine8contains 5, in 2, wildcard 2*/etc/anacrontab*, */etc/cron*, */var/spool/cron/*, /tmp/, -e
event.type6eq 4, ne 2start, deletion
Image4ends_with 2, eq 1, ne 1, starts_with 1, wildcard 1./, /boot/, /crontab, /dev/shm/, /usr/bin/crontab
sourcetype4eq 4auditd, cisco:isovalent:processExec, cisco:sfw:estreamer
process.args3in 2, wildcard 2, contains 1, eq 1, starts_with 1* /dev/shm/* , * /home/*, * /run/*, +x, --
container.id2starts_with 2?
type2eq 2CWD, PATH, SYSCALL
ClientApplication1in 1Wget, cURL
EVE_Process1in 1*curl*, *wget*
action1in 1Allow, Trust, allowed
comm1eq 1crontab

Top indicator values (434 distinct)

Specific (field, operator, value) combinations the rules check for, ranked by how many rules under this technique use each one. The Corpus reach column counts how many rules across the entire catalog (any technique) check the same combination. High numbers point to widely-used indicators that are likely noisy on their own; combine them with another condition for useful signal. Blank means the combination is specific to rules under this technique. Click a value to expand the rules under this technique that use it.

FieldKindValueRules (here)Corpus reach
event.typeeq
start
4606
EventTypein
exec
3171
EventTypein
exec_event
3139
EventTypein
start
3134
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
TargetFilenamewildcard
/etc/crontab
33
TargetFilenamewildcard
/var/spool/anacron/*
33
TargetFilenamewildcard
/var/spool/cron/crontabs/*
33
CommandLinecontains
/tmp/
29
CommandLinein
*/etc/anacrontab*
22
CommandLinein
*/etc/cron*
22
CommandLinein
*/var/spool/cron/*
22
CommandLinewildcard
*/dev/shm/*
23
CommandLinewildcard
*/dev/tcp/*
22
CommandLinewildcard
*/etc/init.d*
22
CommandLinewildcard
*/etc/ld.so*
22
CommandLinewildcard
*/etc/profile*
22
CommandLinewildcard
*/etc/rc.local*
22
CommandLinewildcard
*/etc/shadow*
25
CommandLinewildcard
*/etc/ssh*
24
CommandLinewildcard
*/etc/sudoers*
22
CommandLinewildcard
*/etc/update-motd.d*
22
CommandLinewildcard
*/home/*/.ssh/*
25
CommandLinewildcard
*/root/.ssh*
23

Exclusions (194 distinct)

Field/operator/value combinations excluded by rules under this technique (top-level not() clauses), sorted by how many rules exclude each. These are the false-positive paths the community has learned to filter out. A new rule that ignores the high-count entries here will likely fire on the same noisy paths. Click a value to expand the rules under this technique that exclude it.

FieldKindValueRules excluding
TargetFilenamewildcard
/var/spool/cron/crontabs/tmp.*
2
file.extensionin
dpkg-remove
2
CommandLinein
chmod 755 /etc/update-motd.d/
1
CommandLinein
chmod 777 /etc/update-motd.d/
1
Imageeq
/etc/cron.hourly/bitdefenderredline
1
Imageeq
/usr/bin/crontab
1
Imagein
./usr/bin/podman
1
Imagein
./usr/lib/snapd/snap-update-ns
1
Imagein
/bin/autossl_check
1
Imagein
/bin/chef-client
1
Imagein
/bin/dnf
1
Imagein
/bin/dnf-automatic
1
Imagein
/bin/dockerd
1
Imagein
/bin/dpkg
1
Imagein
/bin/dpkg-divert
1

Rules under this technique

Every rule in the catalog tagged with this technique, grouped by vendor. Click a rule title for its full predicates, exclusions, and indicators.

Platform (all)
Domain (all)

Sigma 6 rules

Elastic 11 rules

Splunk 10 rules

Panther 2 rules