1FF70682-0A51-30E8-076D-740BE8CEE98B
(GUID_ATSvc)378E52B0-C0A9-11CF-822D-00AA0051E40F
(GUID_SASec)86D35949-83C9-4044-B424-DB363231FD0C
(GUID_ITaskSchedulerService)
ATSvc/SASec:
taskcomp.dll
(loads into)svchost.exe
ITaskSchedulerService
schedsvc.dll
(loads into)svchost.exe
ATSvc/SASec:
- ncacn_np:
\pipe\atsvc
ITaskSchedulerService:
- ncacn_ip_tcp
- ncacn_np:
\pipe\atsvc
-
SASec is used to get or set account information that is associated with tasks.
-
Network:
- Methods:
-
ITaskSchedulerServices:
SchRpcRegisterTask
SchRpcEnumTasks
-
ATSVC:
NetrJobAdd
-
- Methods:
-
Host:
-
Inbound network connection to
svchost.exe
over pipe\pipe\atsvc
orTCP_IP port
-
Registry Key Creation:
-
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree
-
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tasks
-
Sysmom Event 12/13
-
File Creation:
C:\Windows\System32\Tasks
ORC:\Windows\Tasks
ORC:\Windows\SYSWOW64\Tasks
- Sysmon Event 11
-
RPC Filter Example:
rpc
filter
add rule layer=um actiontype=permit
add condition field=if_uuid matchtype=equal data=1FF70682-0A51-30E8-076D-740BE8CEE98B
add condition field=remote_user_token matchtype=equal data=D:(A;;CC;;;DA)
add filter
add rule layer=um actiontype=block
add condition field=if_uuid matchtype=equal data=1FF70682-0A51-30E8-076D-740BE8CEE98B
add filter
add rule layer=um actiontype=permit
add condition field=if_uuid matchtype=equal data=378E52B0-C0A9-11CF-822D-00AA0051E40F
add condition field=remote_user_token matchtype=equal data=D:(A;;CC;;;DA)
add filter
add rule layer=um actiontype=block
add condition field=if_uuid matchtype=equal data=378E52B0-C0A9-11CF-822D-00AA0051E40F
add filter
add rule layer=um actiontype=permit
add condition field=if_uuid matchtype=equal data=86D35949-83C9-4044-B424-DB363231FD0C
add condition field=remote_user_token matchtype=equal data=D:(A;;CC;;;DA)
add filter
add rule layer=um actiontype=block
add condition field=if_uuid matchtype=equal data=86D35949-83C9-4044-B424-DB363231FD0C
add filter
quit
By default local administrators can create/start scheduled tasks remotely.
If remote scheduled tasks is an operational need, create a group specific to this action. Apply changes to the rpc filter, remove DAs from the SDDL string.