This hunt detects adversary activity involving NjRAT remote access trojan indicators to identify potential command-and-control communications and lateral movement within the network. Proactively hunting for these specific IOCs in Azure Sentinel is critical because NjRAT’s widespread use by threat actors allows for early detection of persistent threats before they escalate into full-scale data exfiltration or ransomware attacks.
Malware Family: NjRAT Total IOCs: 3 IOC Types: sha256_hash, md5_hash, sha1_hash
| Type | Value | Threat Type | First Seen | Confidence |
|---|---|---|---|---|
| sha1_hash | ff5db489782f10217946f75450803f6c835108c5 | payload | 2026-07-25 | 95% |
| md5_hash | 0268fde13e99c555ed4a4c6ef193b9ea | payload | 2026-07-25 | 95% |
| sha256_hash | 155d1dce8e17b107b531b80b648f1a3fcbcbed764d76a39b0b3972d9424dd2f7 | payload | 2026-07-25 | 95% |
// Hunt for files matching known malicious hashes
// Source: ThreatFox - NjRAT
let malicious_hashes = dynamic(["ff5db489782f10217946f75450803f6c835108c5", "0268fde13e99c555ed4a4c6ef193b9ea", "155d1dce8e17b107b531b80b648f1a3fcbcbed764d76a39b0b3972d9424dd2f7"]);
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 4 specific false positive scenarios for the ThreatFox: NjRAT IOCs detection rule, along with recommended filters and exclusions tailored for an enterprise environment:
Scenario: Automated Patch Management Execution
ProcessName matches ccmexec.exe (SCCM) or IvantiService.exe AND AccountType is “System” or “Computer Account”. Additionally, filter out events occurring during defined maintenance windows (e.g., 02:00–04:00 UTC).Scenario: Remote Desktop and Support Sessions
ParentProcessName is svchost.exe or specific service accounts (e.g., DOMAIN\Helpdesk-Svc) and the destination IP belongs to the known CIDR ranges of the support vendor’s data centers.Scenario: Scheduled Antivirus Definition Updates