2018-10-24 10:55:52 +02:00
|
|
|
---
|
|
|
|
Name: Schtasks.exe
|
|
|
|
Description: Schedule periodic tasks
|
2018-10-25 21:24:55 +02:00
|
|
|
Author: 'Oddvar Moe'
|
2021-01-10 16:04:52 +01:00
|
|
|
Created: 2018-05-25
|
2018-10-24 10:55:52 +02:00
|
|
|
Commands:
|
|
|
|
- Command: schtasks /create /sc minute /mo 1 /tn "Reverse shell" /tr c:\some\directory\revshell.exe
|
|
|
|
Description: Create a recurring task to execute every minute.
|
2021-11-15 14:19:03 +01:00
|
|
|
Usecase: Create a recurring task to keep reverse shell session(s) alive
|
2021-01-10 16:04:52 +01:00
|
|
|
Category: Execute
|
2018-10-24 10:55:52 +02:00
|
|
|
Privileges: User
|
2021-11-05 20:33:48 +01:00
|
|
|
MitreID: T1053.005
|
2021-12-15 12:46:04 +01:00
|
|
|
OperatingSystem: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2021-12-14 16:50:17 +01:00
|
|
|
- Command: schtasks /create /s targetmachine /tn "MyTask" /tr c:\some\directory\notevil.exe /sc daily
|
2021-11-15 14:19:03 +01:00
|
|
|
Description: Create a scheduled task on a remote computer for persistence/lateral movement
|
|
|
|
Usecase: Create a remote task to run daily relative to the the time of creation
|
|
|
|
Category: Execute
|
|
|
|
Privileges: Administrator
|
|
|
|
MitreID: T1053.005
|
2021-12-15 12:46:04 +01:00
|
|
|
OperatingSystem: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2018-12-10 14:28:12 +01:00
|
|
|
Full_Path:
|
2018-10-25 21:24:55 +02:00
|
|
|
- Path: c:\windows\system32\schtasks.exe
|
|
|
|
- Path: c:\windows\syswow64\schtasks.exe
|
2021-01-10 16:04:52 +01:00
|
|
|
Code_Sample:
|
2018-10-25 21:24:55 +02:00
|
|
|
- Code:
|
|
|
|
Detection:
|
2021-11-15 14:19:03 +01:00
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/59000b993d6280d9bf063eefdcdf30ea0e83aa5e/rules/windows/process_creation/win_susp_schtask_creation.yml
|
|
|
|
- Elastic: https://github.com/elastic/detection-rules/blob/ef7548f04c4341e0d1a172810330d59453f46a21/rules/windows/persistence_local_scheduled_task_creation.toml
|
|
|
|
- Splunk: https://github.com/splunk/security_content/blob/18f63553a9dc1a34122fa123deae2b2f9b9ea391/detections/endpoint/schtasks_scheduling_job_on_remote_system.yml
|
|
|
|
- IOC: Suspicious task creation events
|
2018-10-24 10:55:52 +02:00
|
|
|
Resources:
|
2018-10-25 21:24:55 +02:00
|
|
|
- Link: https://isc.sans.edu/forums/diary/Adding+Persistence+Via+Scheduled+Tasks/23633/
|
|
|
|
Acknowledgement:
|
|
|
|
- Person:
|
2018-10-24 10:55:52 +02:00
|
|
|
Handle:
|