Skip to content
WETNav

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.

Worst caseHigh

Switches

/interactive

Lets the job interact with the desktop of the logged-on user.

Low
/every<value>

Runs the job on the given days each week or month.

Medium
/next<value>

Runs the job on the next occurrence of the given day.

Low
/delete

Deletes a scheduled job.

Low

Command lines to worry about

  • High

    Remote job scheduled with at

    at schedules a job on a remote host (\\host). An old lateral movement method. Jobs created this way also appear as scheduled tasks.

    Detection regex\bat(\.exe)?\s+\\\\\S+\s+\d

    T1053.002T1021.002

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.

  • High
    Interactive 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

  • High
    Suspicious 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.