2019-09-21 04:19:25 +02:00
|
|
|
---
|
|
|
|
Name: At.exe
|
|
|
|
Description: Schedule periodic tasks
|
|
|
|
Author: 'Freddie Barr-Smith'
|
2021-01-10 16:04:52 +01:00
|
|
|
Created: 2019-09-20
|
2019-09-21 04:19:25 +02:00
|
|
|
Commands:
|
|
|
|
- Command: C:\Windows\System32\at.exe at 09:00 /interactive /every:m,t,w,th,f,s,su C:\Windows\System32\revshell.exe
|
2021-01-10 16:04:52 +01:00
|
|
|
Description: Create a recurring task to execute every day at a specific time.
|
2019-09-21 04:19:25 +02:00
|
|
|
Usecase: Create a recurring task, to eg. to keep reverse shell session(s) alive
|
2021-01-10 16:04:52 +01:00
|
|
|
Category: Execute
|
2019-09-21 04:19:25 +02:00
|
|
|
Privileges: Local Admin
|
2021-11-05 20:33:48 +01:00
|
|
|
MitreID: T1053.002
|
2019-10-07 23:51:26 +02:00
|
|
|
OperatingSystem: Windows 7 or older
|
2019-09-21 04:19:25 +02:00
|
|
|
Full_Path:
|
|
|
|
- Path: C:\WINDOWS\System32\At.exe
|
|
|
|
- Path: C:\WINDOWS\SysWOW64\At.exe
|
|
|
|
Detection:
|
2021-11-15 14:19:03 +01:00
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/ff0f1a0222b5100120ae3e43df18593f904c69c0/rules/windows/process_creation/win_interactive_at.yml
|
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/08ca62cc8860f4660e945805d0dd615ce75258c1/rules/network/zeek/zeek_smb_converted_win_atsvc_task.yml
|
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/08ca62cc8860f4660e945805d0dd615ce75258c1/rules/windows/builtin/win_atsvc_task.yml
|
2019-09-21 04:19:25 +02:00
|
|
|
- IOC: C:\Windows\System32\Tasks\At1 (substitute 1 with subsequent number of at job)
|
|
|
|
- IOC: C:\Windows\Tasks\At1.job
|
2021-01-10 16:04:52 +01:00
|
|
|
- IOC: Registry Key - Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\At1.
|
2019-09-21 04:19:25 +02:00
|
|
|
Resources:
|
|
|
|
- Link: https://freddiebarrsmith.com/at.txt
|
|
|
|
- Link: https://sushant747.gitbooks.io/total-oscp-guide/privilege_escalation_windows.html - Escalate to System from Administrator
|
|
|
|
- Link: https://www.secureworks.com/blog/where-you-at-indicators-of-lateral-movement-using-at-exe-on-windows-7-systems
|
|
|
|
Acknowledgement:
|
2019-10-07 23:51:26 +02:00
|
|
|
- Person: 'Freddie Barr-Smith'
|
|
|
|
Handle:
|
|
|
|
- Person: 'Riccardo Spolaor'
|
|
|
|
Handle:
|
|
|
|
- Person: 'Mariano Graziano'
|
|
|
|
Handle:
|
|
|
|
- Person: 'Xabier Ugarte-Pedrero'
|
|
|
|
Handle:
|