Detectionhightest

Suspicious PsExec Execution

detects execution of psexec or paexec with renamed service name, this rule helps to filter out the noise if psexec is used for legit purposes or if attacker uses a different psexec client other than sysinternal one

Open in Detection LabConvert ruleBuild Package
Samir BousseadenCreated 2019-04-03Updated 2022-08-11c462f537-a1e3-41a6-b5fc-b2c2cef9bf82windows
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 Logic2 selectors
detection:
    selection1:
        EventID: 5145
        ShareName: '\\\\\*\\IPC$' # looking for the string \\*\IPC$
        RelativeTargetName|endswith:
            - '-stdin'
            - '-stdout'
            - '-stderr'
    filter:
        RelativeTargetName|startswith: 'PSEXESVC'
    condition: selection1 and not filter
False Positives
Unknown

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

Rule Metadata
Rule ID
c462f537-a1e3-41a6-b5fc-b2c2cef9bf82
Status
test
Level
high
Type
Detection
Created
2019-04-03
Modified
2022-08-11
Path
rules/windows/builtin/security/win_security_susp_psexec.yml
Raw Tags
attack.lateral-movementattack.t1021.002
View on GitHub