Join our Newsletter — 33% off our NHI Course
Home› Glossary› NHI Lifecycle Management› Cron @reboot
NHI Lifecycle Management

Cron @reboot

← Back to Glossary
By NHI Mgmt Group Updated November 25, 2026 Domain: NHI Lifecycle Management

Cron @reboot is a cron schedule shortcut that runs a job once when the system starts. It applies to crontab entries on Unix-like systems and is commonly used for startup scripts, background services or maintenance tasks that should begin automatically after boot or reboot.

What the @reboot shortcut does in cron

@reboot is a cron shortcut that tells the scheduler to run a job once when the system starts. It is commonly used for startup scripts, service wrappers, and maintenance tasks that should begin automatically after boot, so the job runs without waiting for a timed schedule.

Because it is event-like rather than interval-based, @reboot behaves differently from minute, hour, or day fields. The task is not guaranteed to run at a specific clock time, only after the cron service starts and processes the user or system crontab entry during boot.

How @reboot fits into Linux startup behaviour

@reboot is part of the broader Linux startup landscape, where multiple mechanisms can launch programs after boot. Cron is one option, alongside init systems, systemd services, shell profiles, and other persistence locations. That makes it useful, but also easy to misread when an unexpected job appears on a host.

In practice, the shortcut is often chosen for lightweight automation that does not need a full service definition. It is also attractive because it is simple to place in a crontab, which means administrators sometimes inherit it as an informal startup mechanism rather than a deliberately managed one.

For incident responders, the important point is that an @reboot entry is a persistence mechanism only when its purpose is to ensure code runs after restart. The same syntax can also be used legitimately for housekeeping, inventory refresh, or application bootstrap tasks.

Operational and security implications of boot-time jobs

Jobs triggered at boot can affect availability, integrity, and visibility because they execute early in the host lifecycle. If the command is slow, misconfigured, or dependent on unavailable services, it can delay startup tasks or create repeated failures that are easy to miss until the next reboot.

Linux Persistence Forensics Guide covers how cron-based persistence fits alongside systemd and shell-based startup locations, which matters because defenders often have to check several persistence paths rather than only one.

Security teams also treat startup jobs as a common place for persistence, because an attacker who can write to a crontab, cron directory, or an inherited startup script can regain execution after a reboot. That makes boot-time scheduling part of host hardening, not just task automation.

When investigating an unfamiliar @reboot entry, the key questions are what owns the job, what process it launches, and whether that command is expected to execute automatically on every restart.

How administrators validate and control cron persistence

Administration of @reboot is less about the shortcut itself and more about control over where cron reads jobs from, who can edit them, and which commands are permitted to run at startup. The same entry can be harmless in one environment and dangerous in another depending on ownership and context.

Good validation starts with inventory: review user crontabs, system crontab files, and the cron directories used by the platform. Then confirm whether the referenced binaries, scripts, and arguments are intended for unattended execution and whether they still exist after deployment changes.

NIST SP 800-53 Rev 5 Security and Privacy Controls is useful here because it frames access control, configuration management, and auditability as the controls that keep boot-time execution from becoming unmanaged persistence.

Where a host is exposed to untrusted users or automation, startup jobs should be reviewed alongside permissions on cron-related files and directories. The control objective is simple: only approved accounts should be able to define what runs automatically after boot.

Common investigation patterns for unexpected cron reboot jobs

Unexpected @reboot entries usually surface during persistence review, post-incident cleanup, or baseline drift checks. The most useful investigation pattern is to compare the current entry with known-good configuration, then trace the job’s command chain for scripts, downloads, environment variables, and secondary execution points.

Attackers often favour boot-triggered execution because it can restore access after a restart and blend into normal host behaviour. The job may invoke a benign-looking wrapper that then reaches out to another location, loads a script from disk, or starts a longer-lived process that is harder to attribute back to cron.

MITRE ATT&CK Enterprise Matrix provides the broader adversary context for persistence, privilege escalation, and execution behaviours that often accompany suspicious cron-based startup mechanisms.

After removal, responders should also ask whether the job changed only the startup path or whether it launched a payload that persisted elsewhere too. A reboot entry can be the visible symptom, while the real compromise may live in a script, service file, scheduled downloader, or modified login path.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK addresses the attack and risk surface, while CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
CIS Controls v8CIS-5 — Account ManagementCron jobs depend on controlled account and file ownership on Linux hosts.
Recommendation — Review who can create and edit startup jobs, and remove unnecessary cron-based execution paths.
NIST SP 800-53 Rev 5CM-2 — Baseline Configuration@reboot jobs are part of host configuration baselines that should be controlled and reviewed.
AU-2 — Event LoggingBoot-time job execution should be visible in host logs and incident review records.
Recommendation — Baseline and approve cron startup entries as part of managed host configuration. Log cron startup execution so unexpected reboot-triggered jobs can be investigated.
MITRE ATT&CKT1053.003 — CronCron-based startup execution is a recognised persistence technique in ATT&CK.
Recommendation — Map suspicious reboot-triggered jobs to Cron persistence and hunt for related execution chains.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org