SharpHound Discovery via RPC Firewall OpNum 12 Sessions
Alerts on RPC Firewall EventID 3 for SharpHound-style discovery RPC calls to interface UUID with OpNum 12.
FreeUnreviewedSigmahighv1
sharphound-discovery-via-rpc-firewall-opnum-12-sessions-6d580420
title: SharpHound Discovery via RPC Firewall OpNum 12 Sessions
id: 80c76691-af42-4be4-9255-438ca2a5dff7
status: test
description: This rule flags RPC Firewall audit events for RPC interface 4b324fc8-1670-01d3-1278-5a47bf6ee188 on operation number 12. SharpHound commonly uses remote RPC to enumerate connectivity and local group membership, which can help an attacker map and target subsequent systems. The detection relies on RPC Firewall event logs (RPCFW) with a matching EventID, InterfaceUuid, and OpNum.
references:
- https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-srvs/02b1f559-fda2-4ba3-94c2-806eb2777183
- https://github.com/jsecurity101/MSRPC-to-ATTACK/blob/ddd4608fe8684fcf2fcf9b48c5f0b3c28097f8a3/documents/MS-SRVS.md
- https://github.com/zeronetworks/rpcfirewall
- https://zeronetworks.com/blog/stopping-lateral-movement-via-the-rpc-firewall/
- https://github.com/SigmaHQ/sigma/blob/master/rules/application/rpc_firewall/rpc_firewall_sharphound_recon_sessions.yml
author: Sagie Dulce, Dekel Paz, Huntrule Team
date: 2022-01-01
tags:
- attack.discovery
- attack.t1033
logsource:
product: rpc_firewall
category: application
definition: 'Requirements: install and apply the RPC Firewall to all processes with "audit:true action:block uuid:4b324fc8-1670-01d3-1278-5a47bf6ee188 opnum:12'
detection:
selection:
EventLog: RPCFW
EventID: 3
InterfaceUuid: 4b324fc8-1670-01d3-1278-5a47bf6ee188
OpNum: 12
condition: selection
falsepositives:
- Unknown
level: high
license: DRL-1.1
related:
- id: 6d580420-ff3f-4e0e-b6b0-41b90c787e28
type: derived
What it detects
This rule flags RPC Firewall audit events for RPC interface 4b324fc8-1670-01d3-1278-5a47bf6ee188 on operation number 12. SharpHound commonly uses remote RPC to enumerate connectivity and local group membership, which can help an attacker map and target subsequent systems. The detection relies on RPC Firewall event logs (RPCFW) with a matching EventID, InterfaceUuid, and OpNum.
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.