This hunt detects adversary behavior involving the execution of known MaskGramStealer indicators to identify active credential and data theft campaigns within the environment. A proactive search is essential in Azure Sentinel to rapidly isolate compromised endpoints before attackers can exfiltrate sensitive user credentials or escalate privileges using these specific IOCs.
Malware Family: MaskGramStealer Total IOCs: 3 IOC Types: sha256_hash, md5_hash, sha1_hash
| Type | Value | Threat Type | First Seen | Confidence |
|---|---|---|---|---|
| sha256_hash | be14447b6480a1e999401100061a9c999992d96ec12eaaa86d796cf486d3db99 | payload | 2026-07-25 | 95% |
| sha1_hash | f35652e55ae95e3052466f77f40f50d79e06c1ef | payload | 2026-07-25 | 95% |
| md5_hash | 9d15fd606542c103035ec3a3b9ec8da8 | payload | 2026-07-25 | 95% |
// Hunt for files matching known malicious hashes
// Source: ThreatFox - MaskGramStealer
let malicious_hashes = dynamic(["be14447b6480a1e999401100061a9c999992d96ec12eaaa86d796cf486d3db99", "f35652e55ae95e3052466f77f40f50d79e06c1ef", "9d15fd606542c103035ec3a3b9ec8da8"]);
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 specific false positive scenarios and corresponding filters for the ThreatFox: MaskGramStealer IOCs detection rule in an enterprise environment:
Scenario: Endpoint Protection Scanning of Quarantine Archives
Process Name matches known security agents (e.g., FalconSensor.exe, MsMpEng.exe) AND the File Path contains keywords like \Quarantine\ or \Definitions\.Scenario: Scheduled Backup Jobs Accessing Shared Resource Libraries
Process Name matching backup services (e.g., VeeamBackupService.exe, rubrik-agent.exe) running under a dedicated User Account named svc-backup-admin or similar service accounts, specifically when the event type is File Access rather than Execution.Scenario: Software Deployment via Configuration Management Tools