Detection rules › Sigma

Capture Credentials with Rpcping.exe

Status
test
Severity
medium
Log source
product windows, category process_creation
Author
Julia Fomina, oscd.community
Source
github.com/SigmaHQ/sigma

Detects using Rpcping.exe to send a RPC test connection to the target server (-s) and force the NTLM hash to be sent in the process.

MITRE ATT&CK coverage

TacticTechniques
Credential AccessT1003 OS Credential Dumping

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Capture Credentials with Rpcping.exe
id: 93671f99-04eb-4ab4-a161-70d446a84003
status: test
description: Detects using Rpcping.exe to send a RPC test connection to the target server (-s) and force the NTLM hash to be sent in the process.
references:
    - https://lolbas-project.github.io/lolbas/Binaries/Rpcping/
    - https://twitter.com/vysecurity/status/974806438316072960
    - https://twitter.com/vysecurity/status/873181705024266241
    - https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/hh875578(v=ws.11)
author: Julia Fomina, oscd.community
date: 2020-10-09
modified: 2025-10-31
tags:
    - attack.credential-access
    - attack.t1003
logsource:
    category: process_creation
    product: windows
detection:
    selection_main_img:
        - Image|endswith: '\RpcPing.exe'
        - OriginalFileName: '\RpcPing.exe'
    selection_main_flag:
        CommandLine|contains|windash: '-s'
    selection_cli_ntlm:
        CommandLine|contains|windash: '-u'
        CommandLine|contains: 'NTLM'
    selection_cli_ncacn:
        CommandLine|contains|windash: '-t'
        CommandLine|contains: 'ncacn_np'
    condition: all of selection_main_* and 1 of selection_cli_*
falsepositives:
    - Unlikely
level: medium

Stages and Predicates

Stage 0: condition

all of selection_main_* and 1 of selection_cli_*

Stage 1: selection_main_img

selection_main_img:
    - Image|endswith: '\RpcPing.exe'
    - OriginalFileName: '\RpcPing.exe'

Stage 2: selection_main_flag

selection_main_flag:
    CommandLine|contains|windash: '-s'

Stage 3: selection_cli_ntlm

selection_cli_ntlm:
    CommandLine|contains|windash: '-u'
    CommandLine|contains: 'NTLM'

Stage 4: selection_cli_ncacn

selection_cli_ncacn:
    CommandLine|contains|windash: '-t'
    CommandLine|contains: 'ncacn_np'

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
  • -s transforms: windash corpus 10 (sigma 4, kusto 4, elastic 1, splunk 1)
  • -t transforms: windash corpus 3 (sigma 2, splunk 1)
  • -u transforms: windash corpus 6 (sigma 5, splunk 1)
  • NTLM
  • ncacn_np
Imageends_with
  • \RpcPing.exe
OriginalFileNameeq
  • \RpcPing.exe