This hunt identifies potential NjRAT infections by correlating network traffic against known Indicator of Compromise (IOC) data, a remote access trojan frequently used for persistent command-and-control. Proactively hunting for these IOCs in Azure Sentinel is critical to detect stealthy lateral movement and data exfiltration attempts before the adversary establishes a foothold within the environment.
Malware Family: NjRAT Total IOCs: 2 IOC Types: ip:port
| Type | Value | Threat Type | First Seen | Confidence |
|---|---|---|---|---|
| ip:port | 188[.]209[.]158[.]187:1177 | botnet_cc | 2026-09-28 | 50% |
| ip:port | 156[.]223[.]177[.]158:1177 | botnet_cc | 2026-09-28 | 50% |
// Hunt for network connections to known malicious IPs
// Source: ThreatFox - NjRAT
let malicious_ips = dynamic(["156.223.177.158", "188.209.158.187"]);
CommonSecurityLog
| where DestinationIP in (malicious_ips) or SourceIP in (malicious_ips)
| project TimeGenerated, SourceIP, DestinationIP, DestinationPort, DeviceAction, Activity
| order by TimeGenerated desc
// Hunt in Defender for Endpoint network events
let malicious_ips = dynamic(["156.223.177.158", "188.209.158.187"]);
DeviceNetworkEvents
| where RemoteIP in (malicious_ips)
| project Timestamp, DeviceName, RemoteIP, RemotePort, InitiatingProcessFileName, ActionType
| order by Timestamp desc
| Sentinel Table | Notes |
|---|---|
CommonSecurityLog | Ensure this data connector is enabled |
DeviceNetworkEvents | Ensure this data connector is enabled |
env=dev or env=staging in the CMDB, or filter out alerts where the parent process is a known container runtime (e.g., dockerd, containerd) or virtualization manager (e.g., vmware-vmx, qemu-system-x86_64).tag=pentest or tag=redteam) or exclude alerts occurring within specific time windows defined in the change management system. Additionally, whitelist specific source IPs or hostnames registered in the pen-test inventory.Backup-Validation AD group or those with a specific hostname prefix (e.g., bval-). Ensure these hosts are segmented in a dedicated VLAN and exclude their MAC addresses or IP ranges from the IOC match criteria if the rule is network-based.source=synthetic or `purpose=