Skip to content

Cron jobs

Info

ID: MS-TA7013
Tactic: Persistence
MITRE technique: T1053

In cases where a cloud application uses scheduled or trigger-based tasks, an attacker with the ability to create or modify such jobs can cause their malicious code to execute automatically. Because these jobs can run independently of normal request flows and often inherit the application's privileges, control over a scheduled or event-triggered job allows persistent execution even if the main application code is updated.

For example, if an attacker is able to create or modify a WebJob in Azure App Service, their code will periodically run on the web application, regardless of changes or updates to the application code itself.

Mitigations

ID Mitigation Description
MS-M7017 Implement least-privilege access Restrict who can create or modify scheduled jobs.