Detection rules › Sigma

NTFS symbolic link creation

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

Detects scenarios where an attacker attempts to create a symbolic link.

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: NTFS symbolic link creation
description: Detects scenarios where an attacker attempts to create a symbolic link.
references:
- https://twitter.com/Alh4zr3d/status/1630912251560329224
tags:
- attack.persistence
- attack.t1547.009 # Boot or Logon Autostart Execution: Shortcut Modification 
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category: process_creation
detection:
  selection:
    NewProcessName|endswith: '\mklink.exe'
    CommandLine|contains:
      - '/h' # hard link
      - '/d' # directory symbolic link
      - '/j' # directory junction
  condition: selection
falsepositives:
- admin activity on file server
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  NewProcessName|endswith: '\mklink.exe'
  CommandLine|contains:
    - '/h'
    - '/d'
    - '/j'

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
CommandLinematch
  • /d corpus 4 (sigma 3, kusto 1)
  • /h
  • /j
NewProcessNameends_with
  • \mklink.exe