Invoke_SMBExec
Description
Detects Invoke-WmiExec or Invoke-SmbExec
Query · yara
strings:
$x1 = "Invoke-SMBExec -Target" fullword ascii
$x2 = "$packet_SMB_header = Get-PacketSMBHeader 0x71 0x18 0x07,0xc8 $SMB_tree_ID $process_ID_bytes $SMB_user_ID" fullword ascii
$s1 = "Write-Output \"Command executed with service $SMB_service on $Target\"" fullword ascii
$s2 = "$packet_RPC_data = Get-PacketRPCBind 1 0xb8,0x10 0x01 0x00,0x00 $SMB_named_pipe_UUID 0x02,0x00" fullword ascii
$s3 = "$SMB_named_pipe_bytes = 0x73,0x00,0x76,0x00,0x63,0x00,0x63,0x00,0x74,0x00,0x6c,0x00 # \\svcctl" fullword ascii
condition:
( filesize < 400KB and 1 of them )