Tasks Folder Evasion

 Original Source: [Sigma source]
Title: Tasks Folder Evasion
Status: test
Description:The Tasks folder in system32 and syswow64 are globally writable paths. Adversaries can take advantage of this and load or influence any script hosts or ANY .NET Application in Tasks to load and execute a custom assembly into cscript, wscript, regsvr32, mshta, eventvwr
References:
  -https://twitter.com/subTee/status/1216465628946563073
  -https://gist.github.com/am0nsec/8378da08f848424e4ab0cc5b317fdd26
Author: Sreeman
Date: 2020-01-13
modified:2022-12-25
Tags:
  • -'attack.privilege-escalation'
  • -'attack.persistence'
  • -'attack.execution'
  • -'attack.stealth'
  • -'attack.t1574.001'
Logsource:
  • product: windows
  • category: process_creation
Detection:
  selection1:
    CommandLine|contains:
      -'echo '
      -'copy '
      -'type '
      -'file createnew'

  selection2:
    CommandLine|contains:
      -' C:\Windows\System32\Tasks\'
      -' C:\Windows\SysWow64\Tasks\'

  condition:all of selection*
Falsepositives:
  -Unknown
Level: high