Persistence · Windows · LOLBAS
at.exe
AT scheduler
The legacy task scheduler. Deprecated in favour of schtasks and removed from modern Windows, but still seen on older systems and in older tooling for persistence and remote execution.
Legitimate use
Older admin scripts used it to schedule jobs; schtasks is the current tool.
Switches
Lets the job interact with the desktop of the logged-on user.
LowRuns the job on the given days each week or month.
MediumRuns the job on the next occurrence of the given day.
LowDeletes a scheduled job.
LowCommand lines to worry about
Where it is recorded
- Security4688Process creation with the full command line, when command-line auditing is enabled.
- Sysmon1Process creation with command line, hashes and parent process.
- Security4698A scheduled task was created; at jobs surface here on systems that still support them.
- Task Scheduler106Task registered in the Task Scheduler operational log.
Community detections
2 SigmaHQ rules for at.exe. The explainer checks every pasted command line against all of them.
- HighInteractive AT Job
Detects an interactive AT job, which may be used as a form of privilege escalation.
T1053.002by E.M. Anhaus (originally from Atomic Blue Detections, Endgame), oscd.community
- HighSuspicious Process By Web Server Process
Detects potentially suspicious processes being spawned by a web server process which could be the result of a successfully placed web shell or exploitation
T1505.003T1190by Thomas Patzke, Florian Roth (Nextron Systems), Zach Stanford @svch0st, Tim Shelton, Nasreddine Bencherchali (Nextron Systems)
Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.