Office Document Creating Schedule Task

Office Document Creating Schedule Task

Description

this search detects a potential malicious office document that create schedule task entry through macro VBA api or through loading taskschd.dll. This technique was seen in so many malicious macro malware that create persistence , beaconing using task schedule malware entry The search will return the first time and last time the task was registered, as well as the Command to be executed, Task Name, Author, Enabled, and whether it is Hidden or not. schtasks.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. The following DLL(s) are loaded when schtasks.exe or TaskService is launched -taskschd.dll. If found loaded by another process, it's possible a scheduled task is being registered within that process context in memory. Upon triage, identify the task scheduled source. Was it schtasks.exe or via TaskService? Review the job created and the Command to be executed. Capture any artifacts on disk and review. Identify any parallel processes within the same timeframe to identify source.'

   Help

Office Document Creating Schedule Task Help

To successfully implement this search, you need to be ingesting logs with the process name and ImageLoaded (Like sysmon EventCode 7) from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. Also be sure to include those monitored dll to your own sysmon config.

   Search

Open in Search