Research from Palo Alto Networks' Unit 42 reveals a prevalent and dangerous evasion technique used by modern malware. An analysis of over 4 million malware samples from Advanced WildFire found that nearly half (45.32%) of samples with command-and-control (C2) activity communicate directly with hard-coded IP addresses. This direct-to-IP (D2IP) method completely bypasses DNS resolution, rendering a wide array of common security tools—including DNS filtering, protective sinkholing, and anomaly detection—blind to the malicious traffic. This behavior was observed across various threat types, from ransomware droppers to botnets like Phorpiex and RATs like SectopRAT. To counter this, Unit 42 proposes a "Zero Trust IP" (ZT-IP) approach, which treats any outbound IP connection not preceded by a valid internal DNS query as untrusted and subject to blocking.
DNS security is a cornerstone of modern network defense. However, its effectiveness hinges on the assumption that malware will use DNS to resolve C2 domains. The Unit 42 study demonstrates this assumption is dangerously flawed. By hard-coding IP addresses directly into the malware binary, attackers create a covert communication channel that is invisible to DNS-level monitoring.
The scale of this issue is significant. Key findings from the 30-day study include:
This technique is not theoretical; it is actively used in the wild to exfiltrate data, drop additional payloads, and maintain persistence while evading detection.
The core of the D2IP technique is simple: the malware developer embeds the C2 server's IP address as a string within the executable file. When the malware runs, it initiates a TCP or UDP connection directly to this IP, with no need to perform a DNS lookup. Analysis with tools like Ghidra confirmed hard-coded IP addresses in numerous samples.
Unit 42 researchers also identified more sophisticated variations:
\GET protocol. Instead of a standard GET /path HTTP/1.1, the malware sent requests starting with \GET, followed by a long encoded string. This was designed to evade pattern-matching intrusion detection systems./churl. This allows for the theft of credentials, session cookies, and sensitive data in real-time.T1071.001 - Application Layer Protocol: Web Protocols: Malware uses HTTP/S-like traffic for C2, but to a hard-coded IP address.T1571 - Non-Standard Port: The backdoor using wss://154.92.19[.]71:39989 communicates over a non-standard port to evade port-based firewall rules.T1105 - Ingress Tool Transfer: Phorpiex uses D2IP to connect to 178.16.54[.]109 and download additional malicious executables like st.exe.T1090.002 - Proxy: External Proxy: SectopRAT establishes an external proxy to exfiltrate all browser traffic.The widespread use of D2IP has severe implications for enterprise security:
This research forces a re-evaluation of network security monitoring, pushing beyond DNS to a more fundamental analysis of IP traffic flows.
154.92.19.71178.16.54.10987.120.107.33194.76.227.94cc43cdbe8eb9874f55fffbe23b560b673eb9f31fb9a953926bba29464fd2dd07\GET protocol.The following patterns may help identify D2IP activity:
^\\GET\GET instead of GET./churlsvchost.exeThe most effective strategy is to adopt the Zero Trust IP (ZT-IP) model proposed in the article.
destination_ip NOT IN (dns_resolved_ips)).word.exe making a direct connection to an IP in China, which is highly anomalous.Defending against D2IP requires moving beyond DNS and implementing controls at the network and endpoint layers.
Implement egress filtering rules that block direct-to-IP connections not authorized by a prior DNS lookup (ZT-IP).
Mapped D3FEND Techniques:
Use a forward proxy to inspect and control all outbound web traffic, preventing direct connections from endpoints.
Deploy NIPS/NIDS with signatures to detect known D2IP malware C2 patterns, such as the '\GET' protocol.
Use endpoint protection to detect and block the malware samples (e.g., by hash) before they can execute and initiate a C2 connection.
The most direct countermeasure to Direct-to-IP (D2IP) C2 is strict outbound traffic filtering based on the Zero Trust IP (ZT-IP) principle. This involves configuring egress firewalls with a default-deny policy for outbound connections. Legitimate traffic should only be allowed if it meets specific criteria, chief among them being a preceding, successful DNS lookup from an internal, trusted resolver. For implementation, network teams must integrate firewall logs with DNS server logs. A SIEM or SOAR platform can automate this by creating a short-lived 'allow' rule on the firewall for an IP address immediately after a client receives it in a DNS response. Any host attempting to connect to an external IP that is not on this dynamic allow-list is blocked, and a high-priority alert is generated. This effectively neuters the D2IP technique used by malware like Phorpiex and SectopRAT. Initial deployment should be in a monitoring-only mode to baseline legitimate applications with hard-coded IPs before moving to an enforcement policy.
For organizations not yet ready for full ZT-IP enforcement, Network Traffic Analysis provides a powerful detection method. Deploy network sensors (like Zeek) or enable NetFlow/IPFIX on network devices to capture metadata for all connections. In a SIEM, security teams can write detection rules to hunt for the primary indicator of D2IP: a client establishing a connection to an external IP address without a corresponding prior DNS query. The query would look for flows.destination_ip WHERE flows.destination_ip NOT IN (SELECT resolved_ip FROM dns_logs WHERE client_ip=flows.source_ip). This can be further refined by focusing on non-browser processes, connections to non-standard ports, or connections to ASN/regions where the organization has no business. This analytical approach allows security teams to surface D2IP threats like the '\GET' protocol or SectopRAT's proxying without immediately blocking traffic, providing high-fidelity alerts for incident response.

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.
CyberNetSec.io uses automation to assist source monitoring, deduplication, observable extraction, and structured intelligence generation. Published analysis follows human-defined editorial standards and adds defensive context including MITRE ATT&CK, D3FEND, STIX, and Sigma where applicable. Read our editorial policy.
Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.
Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.
Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.
Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.
Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.