This detection identifies adversaries deploying a password harvesting tool that creates or modifies a pass.txt file to capture credentials and sensitive data within the environment. Proactively hunting for this behavior in Azure Sentinel is critical because the presence of such a file often indicates an early-stage compromise where attackers are establishing persistence and exfiltrating authentication details before broader detection occurs.
rule Hacktools_CN_Burst_pass {
meta:
description = "Disclosed hacktool set - file pass.txt"
author = "Florian Roth"
date = "17.11.14"
score = 60
hash = "55a05cf93dbd274355d798534be471dff26803f9"
strings:
$s0 = "123456.com" fullword ascii
$s1 = "123123.com" fullword ascii
$s2 = "360.com" fullword ascii
$s3 = "123.com" fullword ascii
$s4 = "juso.com" fullword ascii
$s5 = "sina.com" fullword ascii
$s7 = "changeme" fullword ascii
$s8 = "master" fullword ascii
$s9 = "google.com" fullword ascii
$s10 = "chinanet" fullword ascii
$s12 = "lionking" fullword ascii
condition:
all of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 11 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the detection rule “Disclosed hacktool set - file pass.txt”, along with suggested filters or exclusions:
Scenario: CI/CD Pipeline Artifact Generation
pass.txt during the compilation of legacy applications or as part of a password rotation script within the build directory.Jenkins, GITHUB_ACTIONS) and restrict the scope to known CI/CD directories (e.g., C:\Builds\* or /var/lib/jenkins/workspace/*).Scenario: Scheduled Password Reset Utility
Reset-UserPasswords.ps1) that exports new temporary passwords for onboarding employees into a file named pass.txt located in the HR department’s shared drive before archiving them.powershell.exe or cscript.exe) and the specific file path pattern (\\HR-Share\Onboarding\pass.txt).Scenario: Legacy Terminal Emulator Configuration
pass.txt file within their user profile directory when configuring SSH connections for server maintenance.PuTTY.exe, SecureCRT.exe, or mstsc.exe and the file path resides within standard user profiles (C:\Users\*\AppData\Local\*).**Scenario: Automated Backup Verification