This rule detects the presence of Agent Tesla, a remote access trojan that injects into processes to capture sensitive data such as credentials and keystrokes. Proactively hunting for these IOCs in Azure Sentinel allows the SOC to identify compromised endpoints early, preventing the exfiltration of critical business data before the adversary achieves their objectives.
Malware Family: Agent Tesla Total IOCs: 3 IOC Types: sha1_hash, md5_hash, sha256_hash
| Type | Value | Threat Type | First Seen | Confidence |
|---|---|---|---|---|
| md5_hash | 22ce7aa4be44869abd89ae411023739c | payload | 2026-09-05 | 95% |
| sha256_hash | 0e8021b43a43c8927aadebd29f5c04d0c6500d5f91f18f10e169695e7870c82c | payload | 2026-09-05 | 95% |
| sha1_hash | 43b89773b250ed4cb5a9a8b1fa56db88260ccbbd | payload | 2026-09-05 | 95% |
// Hunt for files matching known malicious hashes
// Source: ThreatFox - Agent Tesla
let malicious_hashes = dynamic(["22ce7aa4be44869abd89ae411023739c", "0e8021b43a43c8927aadebd29f5c04d0c6500d5f91f18f10e169695e7870c82c", "43b89773b250ed4cb5a9a8b1fa56db88260ccbbd"]);
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 |
setup.exe or install.msi in temporary directories.
C:\Program Files\, C:\Program Files (x86)\) and verify that the executable has a valid digital signature from a trusted vendor (e.g., Adobe, Zoom, Oracle).%TEMP% or %LOCALAPPDATA%\Temp). If these binaries are named generically (e.g., sync_helper.exe or backup_agent.exe) and reside in a path matching the IOC, they can trigger false positives.
VeeamBackup.exe, OneDrive.exe) and ensure the file path contains keywords like backup, sync, or temp combined with a trusted vendor name.pyautogui wrappers or C# test harnesses) in development folders. These may use generic names or reside in non-standard directories that mimic Agent Tesla behavior.
dev, test, or qa in your CMDB