Detection rules › Sigma

Remote schedule task creation via named pipes (ATexec)

Status
experimental
Severity
medium
Log source
product windows, service security
Author
mdecrevoisier
Source
github.com/mdecrevoisier/SIGMA-detection-rules

Detects scenarios where an attacker remotely creates a scheduled task over named pipes to execute commands or elevate privileges.

Known false positives

  • Administrator activity, backup solutions

MITRE ATT&CK coverage

Telemetry coverage

Rule body

title: Remote schedule task creation via named pipes (ATexec)
description: Detects scenarios where an attacker remotely creates a scheduled task over named pipes to execute commands or elevate privileges.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0002-Execution/T1053.005-Scheduled%20Task
- https://github.com/SecureAuthCorp/impacket/blob/master/examples/atexec.py
- https://u0041.co/blog/post/1
- https://blog.menasec.net/2019/03/threat-hunting-25-scheduled-tasks-for.html
tags:
- attack.execution
- attack.t1053.005
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 5145
    ShareName: '\\*\IPC$'
    RelativeTargetName: atsvc
    AccessList|contains: '%%4417' # WriteData
  condition: selection
falsepositives:
- Administrator activity, backup solutions
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  EventID: 5145
  ShareName: '\\*\IPC$'
  RelativeTargetName: atsvc
  AccessList|contains: '%%4417'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
AccessListmatch
  • %%4417 corpus 11 (sigma 8, elastic 2, splunk 1)
field:"AccessList" kind:match value:"%%4417"
RelativeTargetNameeq
  • atsvc corpus 4 (sigma 3, kusto 1)
field:"RelativeTargetName" kind:eq value:"atsvc"
ShareNamewildcard
  • \\*\IPC$ corpus 11 (sigma 11)
field:"ShareName" kind:wildcard value:"\\*\IPC$"