Detectionhightest

Impacket PsExec Execution

Detects execution of Impacket's psexec.py.

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
Bhabesh RajCreated Mon Dec 14Updated Thu Sep 2232d56ea1-417f-44ff-822b-882873f5f43bwindows
Log Source
Windowssecurity
ProductWindows← raw: windows
Servicesecurity← raw: security

Definition

The advanced audit policy setting "Object Access > Audit Detailed File Share" must be configured for Success/Failure

Detection Logic
Detection Logic1 selector
detection:
    selection1:
        EventID: 5145
        ShareName: '\\\\\*\\IPC$' # looking for the string \\*\IPC$
        RelativeTargetName|contains:
            - 'RemCom_stdin'
            - 'RemCom_stdout'
            - 'RemCom_stderr'
    condition: selection1
False Positives
Unknown

False positive likelihood has not been assessed. Additional context may be needed during triage.

Rule Metadata
Rule ID
32d56ea1-417f-44ff-822b-882873f5f43b
Status
test
Level
high
Type
Detection
Created
Mon Dec 14
Modified
Thu Sep 22
Path
rules/windows/builtin/security/win_security_impacket_psexec.yml
Raw Tags
attack.lateral-movementattack.t1021.002
View on GitHub