Detection rules › Sigma

Remote Task Creation via ATSVC Named Pipe

Status
test
Severity
medium
Log source
product windows, service security
Author
Samir Bousseaden
Source
github.com/SigmaHQ/sigma

Detects remote task creation via at.exe or API interacting with ATSVC namedpipe

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: Remote Task Creation via ATSVC Named Pipe
id: f6de6525-4509-495a-8a82-1f8b0ed73a00
status: test
description: Detects remote task creation via at.exe or API interacting with ATSVC namedpipe
references:
    - https://web.archive.org/web/20230409194125/https://blog.menasec.net/2019/03/threat-hunting-25-scheduled-tasks-for.html
author: Samir Bousseaden
date: 2019-04-03
modified: 2024-08-01
tags:
    - attack.privilege-escalation
    - attack.execution
    - attack.lateral-movement
    - attack.persistence
    - car.2013-05-004
    - car.2015-04-001
    - attack.t1053.002
logsource:
    product: windows
    service: security
    definition: 'The advanced audit policy setting "Object Access > Audit Detailed File Share" must be configured for Success/Failure'
detection:
    selection:
        EventID: 5145
        ShareName: '\\\\\*\\IPC$' # looking for the string \\*\IPC$
        RelativeTargetName: atsvc
        AccessList|contains: 'WriteData'
    condition: selection
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

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

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
AccessListmatch
  • WriteData corpus 4 (sigma 4)
RelativeTargetNameeq
  • atsvc corpus 4 (sigma 3, kusto 1)
ShareNameeq
  • \\\\\*\\IPC$ corpus 7 (sigma 7)