Malware Bypasses DNS via Direct-to-IP C2

Nearly Half of Malware Bypasses DNS Security with Direct-to-IP C2

HIGH
August 4, 2026
9m read
MalwareThreat IntelligenceSecurity Operations

Related Entities

Products & Tech

Advanced WildFireGhidra

Full Report

Executive Summary

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.


Threat Overview

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:

  • 45.32% of malware samples with C2 activity made at least one D2IP connection.
  • 23.17% of all observed C2 connection attempts were D2IP.
  • Malware using D2IP includes prominent families like Phorpiex (a dropper and spam botnet) and SectopRAT (a tool for browser traffic interception).
  • In contrast, only 1% of benign software samples exhibited similar behavior, making D2IP a high-fidelity indicator of malicious activity.

This technique is not theoretical; it is actively used in the wild to exfiltrate data, drop additional payloads, and maintain persistence while evading detection.


Technical Analysis

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:

  • Obfuscated Protocols: One campaign used a non-standard \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.
  • Infrastructure Rotation: To defeat static IP blocking, some malware families rotate both their C2 IP addresses and destination ports on a regular schedule, requiring a more dynamic defense.
  • Browser Proxying: SectopRAT was observed using D2IP connections to establish a silent proxy, relaying all of the victim's browser traffic to an attacker-controlled server via endpoints like /churl. This allows for the theft of credentials, session cookies, and sensitive data in real-time.

MITRE ATT&CK Techniques


Impact Assessment

The widespread use of D2IP has severe implications for enterprise security:

  • Evasion of Core Defenses: Any security strategy that heavily relies on DNS logs for threat hunting or DNS filtering for blocking is rendered ineffective against these threats.
  • Creation of a Network Blind Spot: D2IP traffic appears as generic IP-based connections, lacking the context of a domain name. This makes it difficult for security analysts to triage alerts or understand the nature of the communication without deeper packet inspection.
  • Ineffectiveness of IP Blocklists: While blocking known-bad IPs is useful, attackers using D2IP often leverage public cloud infrastructure or rotate IPs frequently, making static blocklists a perpetually losing game.

This research forces a re-evaluation of network security monitoring, pushing beyond DNS to a more fundamental analysis of IP traffic flows.


IOCs — Directly from Articles

Type
ip_address_v4
Value
154.92.19.71
Description
Hard-coded C2 for a backdoor using WebSocket.
Type
ip_address_v4
Value
178.16.54.109
Description
C2 server hosting Phorpiex/Trik malware.
Type
ip_address_v4
Value
87.120.107.33
Description
C2 server for SectopRAT.
Type
ip_address_v4
Value
194.76.227.94
Description
C2 server for SectopRAT.
Type
file_hash_sha256
Value
cc43cdbe8eb9874f55fffbe23b560b673eb9f31fb9a953926bba29464fd2dd07
Description
Sample associated with the \GET protocol.

Cyber Observables — Hunting Hints

The following patterns may help identify D2IP activity:

Type
Network Traffic Pattern
Value
Outbound connection to an external IP with no preceding DNS query for that IP from the same host.
Description
This is the core principle of ZT-IP and a strong indicator of D2IP.
Type
String Pattern
Value
^\\GET
Description
Raw HTTP request bodies starting with \GET instead of GET.
Type
URL Pattern
Value
/churl
Description
URL path used by SectopRAT to relay victim browser URLs.
Type
Process Name
Value
svchost.exe
Description
Suspicious outbound network connections from generic system processes that typically don't initiate them.

Detection & Response

The most effective strategy is to adopt the Zero Trust IP (ZT-IP) model proposed in the article.

  1. Implement ZT-IP: Configure network monitoring and firewall policies to correlate outbound IP connections with DNS logs. Any connection attempt from an endpoint to an external IP that was not first resolved via an approved internal DNS server should be flagged as suspicious and potentially blocked.
  2. Network Flow Analysis: Collect and analyze network flow data (e.g., NetFlow, IPFIX, sFlow). Create baselines for normal traffic and write queries to hunt for connections that fit the D2IP profile (e.g., destination_ip NOT IN (dns_resolved_ips)).
  3. Endpoint Detection and Response (EDR): Deploy EDR agents to monitor process execution and network connections at the source. An EDR can detect a process like word.exe making a direct connection to an IP in China, which is highly anomalous.

D3FEND Techniques


Mitigation

Defending against D2IP requires moving beyond DNS and implementing controls at the network and endpoint layers.

  1. Egress Traffic Filtering (ZT-IP Enforcement): The primary mitigation is to configure perimeter firewalls to enforce a ZT-IP policy. The default rule should be to deny all outbound traffic. Explicit rules should only allow traffic to destinations that have been vetted, such as through a recent DNS query. This is a powerful but advanced technique that requires careful implementation to avoid breaking legitimate applications.
  2. Proxy All Outbound Traffic: Force all user and server traffic through an explicit forward proxy that inspects and logs all connections. This centralizes control and prevents applications from making arbitrary connections to the internet.
  3. Endpoint Hardening: Use application control solutions to prevent unauthorized executables from running in the first place. This stops the malware before it can even attempt a C2 connection.
  4. Network Segmentation: Segment networks to prevent compromised systems from connecting to the internet directly. Force traffic from critical server segments through more heavily monitored and restricted network choke points.

Timeline of Events

1
August 4, 2026
This article was published

MITRE ATT&CK Mitigations

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.

Mapped D3FEND Techniques:

Deploy NIPS/NIDS with signatures to detect known D2IP malware C2 patterns, such as the '\GET' protocol.

Mapped D3FEND Techniques:

Use endpoint protection to detect and block the malware samples (e.g., by hash) before they can execute and initiate a C2 connection.

Mapped D3FEND Techniques:

D3FEND Defensive Countermeasures

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.

Sources & References

Almost Half of Malware Samples Communicate Direct to IP
Unit 42 (unit42.paloaltonetworks.com) August 3, 2026

Article Author

Jason Gomes

Jason Gomes

• Cybersecurity Practitioner

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.

Threat Intelligence & AnalysisSecurity Orchestration (SOAR/XSOAR)Incident Response & Digital ForensicsSecurity Operations Center (SOC)SIEM & Security AnalyticsCyber Fusion & Threat SharingSecurity Automation & IntegrationManaged Detection & Response (MDR)

Editorial Standards & Analyst Review

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.

Tags

D2IPDirect-to-IPC2Command and ControlDNS EvasionPhorpiexSectopRATZero Trust

📢 Share This Article

Help others stay informed about cybersecurity threats

🎯 MITRE ATT&CK Mapped

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.

🧠 Enriched & Analyzed

Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.

🛡️ Actionable Guidance

Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.

🔗 STIX Visualizer

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 Generator

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.