This hunt targets adversary behavior where threat actors deploy the MaskGramStealer malware to exfiltrate sensitive credentials and data from user endpoints via specific known indicators of compromise. Proactively hunting for these IOCs in Azure Sentinel is critical because early detection enables the SOC team to isolate compromised assets before the stealer establishes persistence or expands its lateral movement across the cloud environment.
Malware Family: MaskGramStealer Total IOCs: 3 IOC Types: sha256_hash, md5_hash, sha1_hash
| Type | Value | Threat Type | First Seen | Confidence |
|---|---|---|---|---|
| md5_hash | 2c9cbf61771160a3644e4a4fcbe98dd7 | payload | 2026-07-02 | 95% |
| sha256_hash | 85e1086d548cfd37e2550a0e74e6540394c555612a79f6afad183a8d7bf3eff4 | payload | 2026-07-02 | 95% |
| sha1_hash | eb54c551fb56feff3054a01af9877eb16f6ac09b | payload | 2026-07-02 | 95% |
// Hunt for files matching known malicious hashes
// Source: ThreatFox - MaskGramStealer
let malicious_hashes = dynamic(["2c9cbf61771160a3644e4a4fcbe98dd7", "85e1086d548cfd37e2550a0e74e6540394c555612a79f6afad183a8d7bf3eff4", "eb54c551fb56feff3054a01af9877eb16f6ac09b"]);
DeviceFileEvents
| where SHA256 in (malicious_hashes) or SHA1 in (malicious_hashes) or MD5 in (malicious_hashes)
| project Timestamp, DeviceName, FileName, FolderPath, SHA256, InitiatingProcessFileName
| order by Timestamp desc
| Sentinel Table | Notes |
|---|---|
DeviceFileEvents | Ensure this data connector is enabled |
Here are four specific false positive scenarios for the ThreatFox: MaskGramStealer IOCs rule in an enterprise environment, along with suggested filters or exclusions:
Endpoint Security Agent Updates and Signature Synchronization
svc-crowdstrike, Microsoft Defender Antivirus Service) or restrict the rule to trigger only if the process parent is not a known security vendor executable.IT Administration: Mass Software Deployment via SCCM/Intune
ccmexec.exe (SCCM) or IntuneManagementExtension.exe, specifically filtering out file creation events within the standard software distribution folders (e.g., C:\ProgramData\Microsoft\Windows\AppRepository).Scheduled Backup and Archive Operations