Join our Newsletter — 33% off our NHI Course
Home› Guides› MITRE ATT&CK T1665 Hide Infrastructure: Seeing Through Cloaked…
Guide Network Security

MITRE ATT&CK T1665 Hide Infrastructure: Seeing Through Cloaked and Borrowed C2

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 12 November 2026 10 min read
On this page

Adversary infrastructure is built to look harmless to the people and tools that check it: scanners get a 404, sandboxes get nothing, and your sign-in logs show a home broadband address in your own city. MITRE ATT&CK v20 tracks this as T1665 Hide Infrastructure, a Command and Control technique on Windows, Linux, macOS, ESXi and network devices. It covers filtering traffic from defensive tools, masking malicious domains from scanners and researchers, using proxies and VPNs to blend with normal traffic and bypass conditional access or geolocation checks, and borrowing trusted services such as URL shorteners and marketing platforms that later redirect to malicious infrastructure. This guide covers the procedure examples ATT&CK records, what defenders can actually observe, the v20 detection strategy, practical controls and how to test them. It is for SOC, threat intelligence, email security and identity teams. For proxy chains specifically see the T1090 Proxy Defensive Guide; for C2 overall, the Command and Control (C2) Guide.

Key takeaways

  • The goal is to fail your checks quietly. Hide Infrastructure is less about encryption than selection: who gets the real content, and who gets a harmless page.
  • Location is no longer evidence. ATT&CK records APT29 using residential endpoints in the same ISP range as the victim, and Quad7 Activity rotating compromised small office router addresses.
  • Trusted services front malicious ones. Microsoft reports Star Blizzard hiding domains behind email marketing platform links, link shorteners and open redirects before an Evilginx server.
  • Identity controls carry the most weight. Phishing-resistant MFA and device-bound access remove the value of a clean-looking IP address and a convincing redirect chain.
  • Detection needs your own vantage points. Detonation from realistic, rotating egress, click-time URL analysis and internal telemetry see what external scanners are deliberately denied.

How adversaries hide infrastructure

MethodWhat it doesExamples recorded in ATT&CK v20 or cited sources
Filtering defendersServes real content only to intended targets; scanners, sandboxes and researchers get errors or decoys by IP, geography, user agent or browser checksTA571 gates using IP filtering and geofencing (Proofpoint); Star Blizzard server-side checks for automation tools such as Selenium and PhantomJS (Microsoft); SocGholish filtering cited in the technique
Blending source addressesRoutes traffic through residential proxies, VPNs, cloud regions or compromised devices near the victimAPT29 using compromised residential endpoints in the victim's ISP range and, in the SolarWinds compromise, VPN IPs from the victim's country; Quad7 Activity rotating SOHO IPs during password spraying; ZIRCONIUM using an ORB network
Chaining hopsUses chains of jump hosts or devices so the operator never connects directlyJumbledPath using a chain of jump hosts to reach compromised devices
Masquerading namesGives C2 hosts and domains names that match the victim or well-known servicesAPT29 setting C2 hostnames to match legitimate hostnames in the victim environment; DarkGate hard-coding domains that imitate Akamai CDN or Amazon Web Services
Borrowing trusted platformsUses public cloud, URL shorteners, marketing services or reverse proxy DNS to present benign content firstOperation Digital Eye using public cloud infrastructure; Star Blizzard using HubSpot and MailerLite generated subdomains and a reverse proxy DNS provider (Microsoft)
Hiding commands in errorsPuts C2 inside responses that look like failuresUPSTYLE requesting a non-existent page and receiving hidden commands in the resulting error message

T1665 depends on Resource Development: T1583 Acquire Infrastructure and T1584 Compromise Infrastructure supply the domains, VPS, cloud accounts and hijacked devices, and filtering researchers overlaps with T1497 Virtualization/Sandbox Evasion. See T1583 Acquire Infrastructure, T1584 Compromise Infrastructure and MITRE ATT&CK T1497 Virtualization/Sandbox Evasion. AI crawlers and agents can be cloaked against in the same way; see AML.T0134 AI Targeted Cloaking.

Cases worth knowing

  • Salt Typhoon and JumbledPath: the Salt Typhoon telecom intrusions analysis, based on Cisco Talos research, describes access mostly through stolen network device credentials, movement from one telecom's devices into another's, and JumbledPath capturing packets across chains of devices while clearing logs, with access lasting more than three years in one case. ATT&CK records JumbledPath's jump host chains under T1665.
  • Star Blizzard: Microsoft's December 2023 report, updated into 2025, describes redirector servers running scripts that detect automation before deciding whether to continue a redirect, campaign subdomains on email marketing platforms, a DNS provider acting as a reverse proxy to mask VPS addresses, and, in 2024, domains spread across registrars, chained link shorteners and open redirects. Microsoft notes the actor abandons techniques once they are made public.
  • TA571: Proofpoint's October 2023 report describes 404 TDS URLs and up to two gates per campaign that filtered by IP address and geofencing and validated recipients, so only targeted users received the payload and sandboxes and researchers did not.
  • APT29: ATT&CK records the group using residential proxies in the victim's ISP range and, during the SolarWinds compromise, hostnames matching the victim's own. See the APT29 (Midnight Blizzard) Threat Actor Profile.

What to detect and where

ATT&CK v20 ships one detection strategy, DET0411. Its analytics cover Windows (connection events 5156 and 5157 with DNS data on short-lived domains, unusual registration data or short TTLs), Linux (iptables or nftables changes that block selected IPs, and responses altered by user agent or geography), macOS (changes to DNS or proxy settings), network devices (tunnels and proxy traffic to unusual destinations and geography mismatches) and ESXi (VM-level DNS to rapidly changing domains and selective dropping of scanner traffic). Much of T1665 happens on the adversary's side, so the practical question is which parts touch your telemetry.

ObservableWhere you see itPractical use
Sign-ins from residential, VPN or anonymising addresses near your users, with new devicesIdentity provider logs, SaaS audit logsPair IP reputation with device and session signals; never trust location alone
Different content for your sandbox and for a user, or URLs that return 404 to scannersEmail security, URL detonation, proxy logsDetonate from realistic egress and user agents; revisit URLs at click time
Redirect chains through shorteners, marketing platforms or open redirects ending at a young domainProxy logs, email gateway URL rewriting, browser telemetryScore the final destination, not the first hop
C2 hostnames or certificates imitating your naming convention or a major CDNDNS, TLS SNI and certificate logs, Certificate TransparencyWatch for look-alikes of your own host and brand names
Host firewall rules that block security vendor or responder rangesLinux auditd, configuration management, EDRMatches the v20 Linux analytic; also catches tampering on your own servers used as infrastructure
Your own routers, cameras or servers relaying third-party trafficFlow logs for device segmentsPrevents your estate becoming someone else's hiding place

Supporting guides: the Operational Relay Box Networks Guide, the Newly Registered Domains Guide, the Certificate Transparency Monitoring Guide for Web Teams and the SocGholish and Fake Browser Update Malware Guide.

Mitigations and practical controls

ATT&CK v20 lists no mitigation object for T1665, because most of the behaviour happens on infrastructure the defender does not own. The controls below are NHI Mgmt Group recommendations drawn from the cited vendor and government reporting.

  1. Bind access to identity and device, not network location: phishing-resistant MFA and compliant device requirements, as Microsoft recommends for Star Blizzard, defeat both residential proxies and Evilginx-style adversary-in-the-middle pages. See the Phishing-Resistant MFA Guide.
  2. Restrict non-human identities by network and workload: API keys, service accounts and integration tokens should be usable only from known egress ranges or through workload identity, since they cannot do interactive MFA.
  3. Analyse URLs at click time and from realistic vantage points: rewrite links, re-check at click, and run detonation from rotating residential-like egress with ordinary browser fingerprints so gates see a plausible target.
  4. Treat trusted-platform links as untrusted until resolved: follow shorteners, marketing redirects and open redirects to the final destination before scoring.
  5. Filter and inspect egress: block uncategorised and newly registered destinations for servers and route user traffic through logging proxies. See M1037 Filter Network Traffic and M1021 Restrict Web-Based Content.
  6. Do not become infrastructure: patch or retire end-of-life edge devices and rotate network device credentials and SNMP strings, the lesson of the Salt Typhoon intrusions. See the Edge Device Security Guide.
  7. Report abuse: notify platforms, registrars and reverse proxy providers; Microsoft reported that the DNS provider Star Blizzard used took action once notified.

Rolling it out and testing

  1. Run conditional access rules that block anonymous and high-risk network sign-ins in report-only mode for two weeks, then enforce for administrators and service accounts first, keeping the previous policy for rollback.
  2. Compare sandbox verdicts from your current egress with verdicts from a residential-style egress on a sample of suspicious URLs; a gap shows how much cloaking you miss.
  3. In an authorised exercise, send test phishing through a shortener and a redirect chain to a test domain you own and confirm the gateway resolves and scores the final hop.
  4. Test the Linux analytic by adding a benign firewall rule in a lab and confirming the alert.

Choosing an approach: small organisations should start with phishing-resistant MFA, device compliance and a secure email gateway with click-time protection. Large organisations should add multi-vantage detonation, look-alike domain and certificate monitoring, and intelligence that tracks proxy networks and redirect services as entities.

Detection and measurement

  • Location-independent access: share of users, administrators and service accounts protected by phishing-resistant MFA or workload identity.
  • Cloaking gap: percentage of suspicious URLs whose verdict changes between standard and residential-style detonation.
  • Redirect resolution: share of inbound links resolved to the final destination before delivery or click.
  • Look-alike detection time: time from certificate issuance or domain registration of a look-alike to alert.
  • Edge hygiene: number of end-of-life internet-facing devices, trending to zero.

Common failure patterns

  • Trusting geolocation: "same country, same ISP" rules pass attacker traffic that was built to match them.
  • Sandboxing from a data centre range: gates recognise it and serve nothing, and the URL is marked clean.
  • Scoring only the first hop: a trusted shortener or marketing domain carries the reputation of the platform, not the destination.
  • Static IP blocklists: rotating SOHO and residential addresses make them stale within days and risk blocking real customers.
  • Unmanaged edge devices: your own routers and appliances join relay chains, as the Salt Typhoon analysis shows for telecom networks.

Framework mapping

FrameworkReferenceRelevance
ATT&CK v20T1665; DET0411; related T1090, T1583, T1584, T1497Technique, detection strategy, enabling techniques
MITRE D3FEND (related techniques)D3-UGLPA User Geolocation Logon Pattern Analysis; D3-RPA Relay Pattern Analysis; D3-DNRA Domain Name Reputation AnalysisLogon location patterns, relay behaviour, domain reputation
NIST SP 800-53 Rev. 5SC-7(5); SC-7(8); SI-4(4); SI-4(13)Egress control, proxies, traffic and event pattern analysis
NIST CSF 2.0DE.CM-01; DE.AE-02; PR.IR-01Monitor, analyse, protect networks
CIS Controls v8.19.3 Maintain and Enforce Network-Based URL Filters; 6.5 Require MFA for Administrative AccessURL filtering and strong authentication
ISO/IEC 27001:2022 Annex A5.7 Threat intelligence; 8.23 Web filtering; 8.16 Monitoring activitiesIntelligence, filtering, monitoring

Practitioner checklist

  • Enforce phishing-resistant MFA and device compliance, starting with administrators.
  • Restrict service accounts and API keys to known egress ranges or workload identity.
  • Resolve redirect chains and re-check URLs at click time.
  • Detonate suspicious URLs from realistic, rotating egress and compare verdicts.
  • Monitor look-alike domains and certificates for your hostnames and brands.
  • Alert on host firewall changes that block selected IP ranges.
  • Retire or patch end-of-life edge devices and rotate device credentials.
  • Expire proxy IP indicators automatically and track infrastructure as entities.

Standards and references

Related NHI Mgmt Group resources: ATT&CK Command and Control Tactic · Operational Relay Box Networks Guide · Salt Typhoon Threat Actor Profile · MITRE ATT&CK T1078 Valid Accounts Guide · MITRE ATT&CK T1568 Dynamic Resolution · MITRE ATT&CK T1573 Encrypted Channel · MITRE ATT&CK T1104 Multi-Stage Channels

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 12 November 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick the PDF box to continue.