#T1053.002 At
Technique
- Tactics: Execution, Persistence, Privilege Escalation
- Description:
Adversaries may abuse the at utility to perform task scheduling for initial or recurring execution of malicious code. The at utility exists as an executable within Windows, Linux, and macOS for scheduling tasks at a specified time and date. Although deprecated in favor of Scheduled Task's schtasks in Windows environments, using at requires that the Task Scheduler service be running, and the user to be logged on as a member of the local Administrators group. In addition to explicitly running the
atcommand, adversaries may also schedule a task with at by directly leveraging the Windows Management InstrumentationWin32_ScheduledJobWMI class.(Citation: Malicious Life by Cybereason)On Linux and macOS, at may be invoked by the superuser as well as any users added to the
at.allowfile. If theat.allowfile does not exist, theat.denyfile is checked. Every username not listed inat.denyis allowed to invoke at. If theat.denyexists and is empty, global use of at is permitted. If neither file exists (which is often the baseline) only the superuser is allowed to use at.(Citation: Linux at)Adversaries may use at to execute programs at system startup or on a scheduled basis for Persistence. at can also be abused to conduct remote Execution as part of Lateral Movement and/or to run a process under the context of a specified account (such as SYSTEM).
In Linux environments, adversaries may also abuse at to break out of restricted environments by using a task to spawn an interactive system shell or to run system commands. Similarly, at may also be used for Privilege Escalation if the binary is allowed to run as superuser via
sudo.(Citation: GTFObins at) - First Seen: APT Threat Landscape in Japan 2020 • 2021-05-21
-
1
Tagged Reports
-
1
Unique Authors
-
1
Active Days