Detection rules › Sigma

HackTool - Impacket Tools Execution

Status
test
Severity
high
Log source
product windows, category process_creation
Author
Florian Roth (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects the execution of different compiled Windows binaries of the impacket toolset (based on names or part of their names - could lead to false positives)

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: HackTool - Impacket Tools Execution
id: 4627c6ae-6899-46e2-aa0c-6ebcb1becd19
status: test
description: Detects the execution of different compiled Windows binaries of the impacket toolset (based on names or part of their names - could lead to false positives)
references:
    - https://github.com/ropnop/impacket_static_binaries/releases/tag/0.9.21-dev-binaries
author: Florian Roth (Nextron Systems)
date: 2021-07-24
modified: 2023-02-07
tags:
    - attack.collection
    - attack.execution
    - attack.credential-access
    - attack.t1557.001
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        - Image|contains:
              - '\goldenPac'
              - '\karmaSMB'
              - '\kintercept'
              - '\ntlmrelayx'
              - '\rpcdump'
              - '\samrdump'
              - '\secretsdump'
              - '\smbexec'
              - '\smbrelayx'
              - '\wmiexec'
              - '\wmipersist'
        - Image|endswith:
              - '\atexec_windows.exe'
              - '\dcomexec_windows.exe'
              - '\dpapi_windows.exe'
              - '\findDelegation_windows.exe'
              - '\GetADUsers_windows.exe'
              - '\GetNPUsers_windows.exe'
              - '\getPac_windows.exe'
              - '\getST_windows.exe'
              - '\getTGT_windows.exe'
              - '\GetUserSPNs_windows.exe'
              - '\ifmap_windows.exe'
              - '\mimikatz_windows.exe'
              - '\netview_windows.exe'
              - '\nmapAnswerMachine_windows.exe'
              - '\opdump_windows.exe'
              - '\psexec_windows.exe'
              - '\rdp_check_windows.exe'
              - '\sambaPipe_windows.exe'
              - '\smbclient_windows.exe'
              - '\smbserver_windows.exe'
              - '\sniff_windows.exe'
              - '\sniffer_windows.exe'
              - '\split_windows.exe'
              - '\ticketer_windows.exe'
              # - '\addcomputer_windows.exe'
              # - '\esentutl_windows.exe'
              # - '\getArch_windows.exe'
              # - '\lookupsid_windows.exe'
              # - '\mqtt_check_windows.exe'
              # - '\mssqlclient_windows.exe'
              # - '\mssqlinstance_windows.exe'
              # - '\ntfs-read_windows.exe'
              # - '\ping_windows.exe'
              # - '\ping6_windows.exe'
              # - '\raiseChild_windows.exe'
              # - '\reg_windows.exe'
              # - '\registry-read_windows.exe'
              # - '\services_windows.exe'
              # - '\wmiquery_windows.exe'
    condition: selection
falsepositives:
    - Legitimate use of the impacket tools
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    - Image|contains:
          - '\goldenPac'
          - '\karmaSMB'
          - '\kintercept'
          - '\ntlmrelayx'
          - '\rpcdump'
          - '\samrdump'
          - '\secretsdump'
          - '\smbexec'
          - '\smbrelayx'
          - '\wmiexec'
          - '\wmipersist'
    - Image|endswith:
          - '\atexec_windows.exe'
          - '\dcomexec_windows.exe'
          - '\dpapi_windows.exe'
          - '\findDelegation_windows.exe'
          - '\GetADUsers_windows.exe'
          - '\GetNPUsers_windows.exe'
          - '\getPac_windows.exe'
          - '\getST_windows.exe'
          - '\getTGT_windows.exe'
          - '\GetUserSPNs_windows.exe'
          - '\ifmap_windows.exe'
          - '\mimikatz_windows.exe'
          - '\netview_windows.exe'
          - '\nmapAnswerMachine_windows.exe'
          - '\opdump_windows.exe'
          - '\psexec_windows.exe'
          - '\rdp_check_windows.exe'
          - '\sambaPipe_windows.exe'
          - '\smbclient_windows.exe'
          - '\smbserver_windows.exe'
          - '\sniff_windows.exe'
          - '\sniffer_windows.exe'
          - '\split_windows.exe'
          - '\ticketer_windows.exe'

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
Imageends_with
  • \GetADUsers_windows.exe corpus 2 (sigma 2)
  • \GetNPUsers_windows.exe corpus 2 (sigma 2)
  • \GetUserSPNs_windows.exe corpus 2 (sigma 2)
  • \atexec_windows.exe corpus 2 (sigma 2)
  • \dcomexec_windows.exe corpus 2 (sigma 2)
  • \dpapi_windows.exe corpus 2 (sigma 2)
  • \findDelegation_windows.exe corpus 2 (sigma 2)
  • \getPac_windows.exe corpus 2 (sigma 2)
  • \getST_windows.exe corpus 2 (sigma 2)
  • \getTGT_windows.exe corpus 2 (sigma 2)
  • \ifmap_windows.exe corpus 2 (sigma 2)
  • \mimikatz_windows.exe corpus 2 (sigma 2)
  • \netview_windows.exe corpus 2 (sigma 2)
  • \nmapAnswerMachine_windows.exe corpus 2 (sigma 2)
  • \opdump_windows.exe corpus 2 (sigma 2)
  • \psexec_windows.exe corpus 2 (sigma 2)
  • \rdp_check_windows.exe corpus 2 (sigma 2)
  • \sambaPipe_windows.exe corpus 2 (sigma 2)
  • \smbclient_windows.exe corpus 2 (sigma 2)
  • \smbserver_windows.exe corpus 2 (sigma 2)
  • \sniff_windows.exe corpus 2 (sigma 2)
  • \sniffer_windows.exe corpus 2 (sigma 2)
  • \split_windows.exe corpus 2 (sigma 2)
  • \ticketer_windows.exe corpus 2 (sigma 2)
Imagematch
  • \goldenPac corpus 2 (sigma 2)
  • \karmaSMB corpus 2 (sigma 2)
  • \kintercept corpus 2 (sigma 2)
  • \ntlmrelayx corpus 3 (sigma 3)
  • \rpcdump corpus 2 (sigma 2)
  • \samrdump corpus 2 (sigma 2)
  • \secretsdump corpus 2 (sigma 2)
  • \smbexec corpus 2 (sigma 2)
  • \smbrelayx corpus 3 (sigma 3)
  • \wmiexec corpus 2 (sigma 2)
  • \wmipersist corpus 2 (sigma 2)