This detection identifies adversary activity involving the Pupy remote access tool by monitoring specific Indicators of Compromise (IOCs) that signal potential command and control communications or lateral movement. A proactive hunt in Azure Sentinel is essential to rapidly isolate compromised endpoints and prevent data exfiltration, given Pupy’s high severity classification and its frequent use in advanced persistent threats targeting cloud environments.
Malware Family: pupy Total IOCs: 2 IOC Types: ip:port
| Type | Value | Threat Type | First Seen | Confidence |
|---|---|---|---|---|
| ip:port | 45[.]140[.]204[.]12:443 | botnet_cc | 2026-08-09 | 75% |
| ip:port | 45[.]140[.]204[.]12:9000 | botnet_cc | 2026-08-09 | 75% |
// Hunt for network connections to known malicious IPs
// Source: ThreatFox - pupy
let malicious_ips = dynamic(["45.140.204.12"]);
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(["45.140.204.12"]);
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 |
Here are specific false positive scenarios and corresponding exclusion strategies for the ThreatFox: pupy IOCs detection rule in an enterprise environment:
Scenario: Automated Security Scanning by EDR Agents
pupy signatures as part of a broader malware definition update, triggering network connections to known IOCs without actual infection.svc-crowdstrike, MsiDefender) or filter out processes matching the EDR agent executable names (C:\Program Files\CrowdStrike\fsqu.exe or C:\Windows\System32\MsMpEng.exe).Scenario: Scheduled Software Deployment via Configuration Management
pupy is used as a legitimate remote management utility for internal IoT devices or legacy kiosks, causing the deployment engine to establish connections with pupy-related IOCs during nightly maintenance windows.ccmexec.exe, java.exe running under a specific user context like svc-deployment) and restrict the alert scope to non-workstation IP ranges (e.g., exclude the 10.20.x.x management subnet).Scenario: Legitimate Remote Access by DevOps Engineers