This detection identifies the presence of GetPass.exe, a known component of the Chinese Hacktool set often deployed to extract credentials and system information from endpoints. Proactively hunting for this artifact in Azure Sentinel is critical because its low severity classification may cause it to be overlooked, yet its execution could indicate early-stage reconnaissance or data exfiltration by state-sponsored actors targeting sensitive identity stores.
rule Dos_GetPass {
meta:
description = "Chinese Hacktool Set - file GetPass.exe"
author = "Florian Roth"
reference = "http://tools.zjqhr.com/"
date = "2015-06-13"
hash = "d18d952b24110b83abd17e042f9deee679de6a1a"
strings:
$s0 = "GetLogonS" ascii
$s3 = "/showthread.php?t=156643" ascii
$s8 = "To Run As Administ" ascii
$s18 = "EnableDebugPrivileg" fullword ascii
$s19 = "sedebugnameValue" fullword ascii
condition:
uint16(0) == 0x5a4d and filesize < 890KB and all of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 5 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the Chinese Hacktool Set - file GetPass.exe detection rule, including suggested filters and exclusions:
Password Management Deployment via SCCM/Intune
GetPass.exe to a temporary folder (C:\Windows\CCMCache) before moving it to the final destination, triggering the file creation event.\CCMCache\, \Microsoft Intune Management Extension\, or specific installation directories like C:\Program Files (x86)\GetPass\. Additionally, filter by parent process names such as ccmexec.exe or IntuneManagementExtension.exe.Scheduled Credential Backup Job
GetPass.exe in silent mode to export the vault database to a network share (e.g., \\fileserver\backups). The detection triggers on the execution of the binary during this automated window.svchost.exe with the service name Schedule, or specifically filter for the command line argument containing /export or /silent. You may also exclude events occurring strictly between 01:00 and 04:00 UTC if this is a known maintenance window.Third-Party RMM Agent Health Check