Detection rules › Sigma
Remote Task Creation via ATSVC Named Pipe
Detects remote task creation via at.exe or API interacting with ATSVC namedpipe
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Execution | T1053.002 Scheduled Task/Job: At |
| Persistence | T1053.002 Scheduled Task/Job: At |
| Privilege Escalation | T1053.002 Scheduled Task/Job: At |
Event coverage
| Provider | Event | Title |
|---|---|---|
| Security-Auditing | Event ID 5145 | A network share object was checked to see whether client can be granted desired access. |
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
selectionStage 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.
| Field | Kind | Values |
|---|---|---|
AccessList | match |
|
RelativeTargetName | eq |
|
ShareName | eq |
|