Detection rules › Sigma
DNS hosts file accessed via network share
Detects scenarios where an attacker attempt read the Hosts file content via network share.
Known false positives
- None
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Discovery |
Telemetry coverage
Rule body
title: DNS hosts file accessed via network share
description: Detects scenarios where an attacker attempt read the Hosts file content via network share.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0007-Discovery/T1018-Remote%20System%20Discovery
- https://www.picussecurity.com/resource/blog/how-to-beat-nefilim-ransomware-attacks
- https://github.com/login-securite/DonPAPI
tags:
- attack.discovery
- attack.t1018
author: mdecrevoisier
status: experimental
logsource:
product: windows
service: security
detection:
selection:
EventID: 5145
ShareName: '\\*\C$'
RelativeTargetName: 'Windows\System32\Drivers\etc\hosts'
condition: selection
falsepositives:
- None
level: high
Stages and Predicates
Stage 0: condition
selectionStage 1: selection
selection:
EventID: 5145
ShareName: '\\*\C$'
RelativeTargetName: 'Windows\System32\Drivers\etc\hosts'
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
RelativeTargetName | eq |
| field:"RelativeTargetName" kind:eq value:"Windows\System32\Drivers\etc\hosts" |
ShareName | wildcard |
| field:"ShareName" kind:wildcard value:"\\*\C$" |