Cron
Cron schedules commands from /etc/crontab, /etc/cron.d and per-user crontabs in /var/spool/cron. It is a common Linux persistence method (ATT&CK T1053.003).
What Cron Jobs is
Persistence artifacts are the places programs start from automatically: services, tasks, autostart keys, WMI subscriptions, cron and systemd. Attackers use them to survive reboots.
Forensic value
What Cron Jobs can tell an investigator:
- Scheduled commands, their schedule and the account that runs them.
- File modification times that date when an entry was added.
What it does not prove
- Cron runs are logged by the cron daemon to syslog or the journal, which may have rotated.
Where it is stored
Arcsentry looks for Cron Jobs at these locations inside a collection, disk image or mounted volume:
**/etc/anacrontab
**/etc/cron.d/**
**/etc/crontab
**/var/cron/tabs/**
**/var/spool/cron/** What Arcsentry records
Each Cron Jobs record is written to Arcsentry's common schema with these fields, alongside the host, timestamp and provenance every record carries:
| Field | Type | Meaning |
|---|---|---|
log_file | VARCHAR | Source log file path |
process_command_line | VARCHAR | Process command line |
schedule | VARCHAR | Schedule |
source_file_modified | TIMESTAMP | Modification time of the source artifact file, carried only on records that lack a parsed event timestamp (substituted-time provenance, never a forensic event time) |
user_name | VARCHAR | User name |
message | VARCHAR | Human-readable message |
artifact_read_status | VARCHAR | Source read failure: unreadable (the source could not be read), corrupt (its bytes failed format or stream integrity checks), unrecognized (the content does not identify a supported format), or unsupported (the format version or a required format extension is not supported); records read before a failure may still be present |
Time
Arcsentry keeps each record's own time and labels its time zone when the source does not state one. A record with no time of its own stays untimed; Arcsentry never substitutes the collection time.
Collecting Cron Jobs with Arcsentry Collector
Arcsentry Collector gathers Cron Jobs in these triage profiles: linux::profile::triage::priority, linux::profile::triage::offline, linux::profile::triage::full, linux::profile::triage::server. It is read straight from the file system, on a live host or inside a disk image, without mounting.
The collection targets that pick it up: linux::execution::docker_ondisk, linux::filesystem::bodyfile, linux::security::anomalous_locations, linux::system_state::etc, linux::system_state::job_scheduler.
sudo ./arcsentry-collect collect --local -t linux::profile::triage::priority \
-o /mnt/ir -f host.arcx --password-file /mnt/ir/pw.txt Every file lands in one AES-256 archive with a SHA-256 recorded for it, and the collection log notes which target collected it. See everything each profile collects.
Already collected with something else? Arcsentry also reads KAPE, Velociraptor and UAC collections, so Cron Jobs can come from the tools you already use.
Analysing Cron Jobs in Arcsentry
Ask in plain English, for example "show Cron Jobs records from the incident window, newest first", and Arcsentry shows the query before it runs. Or write it in AQL:
filter event_type == "cron"
sort {-timestamp}
take 100 Mark a record malicious or suspicious and it joins the timeline in its kill-chain lane. Add its values as indicators and Arcsentry matches them across every host. When the AI investigator works the case, it reads Cron Jobs records with the same tools and cites them by event ID.
Corroborate with
No single artifact settles a question on its own. Check Cron Jobs against:
- Syslog: Parses Linux syslog and auth.log files.
- systemd journal: Parses systemd journal binary log files.
- systemd service: Parses systemd units, search-path drop-ins and observed enablement links with evidence-confined targets.
- auditd: Parses /var/log/audit/audit.log* and correlates the SYSCALL, EXECVE, CWD, PATH and USER_* records of one audit event by its stamp (time and serial).
Frequently asked
Where are cron jobs stored?
In /etc/crontab, /etc/cron.d/, the /etc/cron.hourly, daily, weekly and monthly folders, and per-user crontabs in /var/spool/cron.
Does Arcsentry parse Cron Jobs?
Yes. Arcsentry's Cron Jobs parser (cron) reads it from Linux evidence and records 7 fields per record, with provenance back to the source file.
How do I collect Cron Jobs?
Arcsentry Collector gathers it with the priority triage profile (linux::profile::triage::priority), live or from a disk image, sealed in an AES-256 archive with a SHA-256 for every file.
Parse Cron Jobs on your own evidence.
Tell us what you want to investigate. A person replies within one business day with the download and a trial licence.
Request a trial