Detection rules › Sigma
User files dump via network share (DonPapi, Lazagne)
Detects scenarios where an attacker attempt to dump user profile information via network share.
Known false positives
- Roaming user profile, vulnerability scanners
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Credential Access |
Telemetry coverage
Rule body
title: User files dump via network share (DonPapi, Lazagne)
description: Detects scenarios where an attacker attempt to dump user profile information via network share.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0006-Credential%20Access/T1555-Credentials%20from%20Password%20Stores
- https://github.com/login-securite/DonPAPI
tags:
- attack.credential_access
- attack.t1555
author: mdecrevoisier
status: experimental
logsource:
product: windows
service: security
detection:
selection:
EventID: 5145
ShareName: '\\*\C$'
RelativeTargetName|re:
- Users\\.*\\Desktop.*
- Users\\.*\\Recent.*
- Users\\.*\\Downloads.*
#- Users\\.* # More broader filter
filter:
- RelativeTargetName|re: Users\\.*\\AppData\\.* # handled in another rule
- IpAddress:
- '%vulnerability_scanners%'
- '%admin_netork_administration%'
condition: selection and not filter | count(RelativeTargetName) by Computer > 15 # Counting over different user names in the path can also decrease false positives
timeframe: 5m
falsepositives:
- Roaming user profile, vulnerability scanners
level: high
Stages and Predicates
Stage 0: condition
selection and not filter | count(RelativeTargetName) by Computer > 15 # Counting over different user names in the path can also decrease false positivesStage 1: selection
selection:
EventID: 5145
ShareName: '\\*\C$'
RelativeTargetName|re:
- Users\\.*\\Desktop.*
- Users\\.*\\Recent.*
- Users\\.*\\Downloads.*
Stage 2: not filter
filter:
- RelativeTargetName|re: Users\\.*\\AppData\\.*
- IpAddress:
- '%vulnerability_scanners%'
- '%admin_netork_administration%'
Exclusions
The rule actively suppresses these predicates.
| Field | Kind | Excluded values | Search |
|---|---|---|---|
IpAddress | eq | %admin_netork_administration% | excludes:IpAddress field:"IpAddress" value:"%admin_netork_administration%" |
IpAddress | eq | %vulnerability_scanners% | excludes:IpAddress field:"IpAddress" value:"%vulnerability_scanners%" |
RelativeTargetName | regex_match | Users\.*\AppData\.* | excludes:RelativeTargetName field:"RelativeTargetName" value:"Users\.*\AppData\.*" |
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
RelativeTargetName | regex_match |
| field:"RelativeTargetName" kind:regex_match |
ShareName | wildcard |
| field:"ShareName" kind:wildcard value:"\\*\C$" |