Given access to Windows or Linux hosts with local administrator or root privileges, the operator will identify, disable, and document scheduled tasks or jobs that may be abused by attackers for persistence or lateral movement.
Operator Note: Threat actors frequently leverage scheduled tasks or cron jobs to maintain persistence or execute malicious payloads after reboots or on a timer. During incident response, disabling (not deleting) them preserves forensic evidence while disrupting adversary operations.
All malicious or unnecessary scheduled tasks are disabled on impacted systems. A record of actions is maintained for forensic review.
Get-ScheduledTask | Select-Object TaskName, State
schtasks /query /fo LIST /v
Disable-ScheduledTask -TaskName "TaskName" -TaskPath "\"
schtasks /Change /TN "\TaskName" /Disable
Operator Note: Disable suspicious or non-essential tasks only after reviewing.
Get-ScheduledTask | Export-Clixml -Path .\ScheduledTasksBackup.xml
crontab -l
crontab -e
Comment suspicious tasks with
#
to disable but preserve evidence.
cat /etc/crontab
ls -la /etc/cron.*
Operator Note: Review and comment out any suspicious jobs.
systemctl list-timers
systemctl disable <timer name>
atq
atrm <job number>
Operator Note: Attackers often use
at
for one-time malicious execution.
Get-ScheduledTask | ForEach-Object {
Disable-ScheduledTask -TaskName $_.TaskName -TaskPath $_.TaskPath
}
Operator Note: Use with caution. Recommended only for systems where complete lock-down is required.
Tool | Platform | Use Case |
---|---|---|
PowerShell ScheduledTasks module | Windows | View/export/disable tasks |
schtasks.exe | Windows | CLI alternative |
Task Scheduler GUI (taskschd.msc) | Windows | Visual inspection |
crontab / systemctl / at | Linux | Cron, system timers, and at jobs management |
SIEM (Splunk, Sentinel) | Cross-platform | Detection of scheduled job execution |
Microsoft Scheduled Task Cmdlets
Linux Crontab Manual
Systemd Timers Documentation
Date | Version | Description | Author |
---|---|---|---|
2025-05-02 | 1.0 | Fully generated operator guide covering detection, disabling, and validation of scheduled tasks and jobs | Leo |