Most enterprise systems are static, homogeneous and predictable, which lets an attacker map them once and reuse that map for weeks. Moving target defence (MTD) changes some property of the system, such as memory layout, network address, port, configuration or the host itself, so that reconnaissance goes stale and exploits built for one state fail in the next. NIST SP 800-53 names the idea directly: control SC-30(3) describes changing processing and storage locations as "also referred to as moving target defense". This guide explains MTD techniques by layer, what each one disrupts in an attack, where MTD gives no protection at all, what it costs in monitoring and troubleshooting, and how it relates to zero trust and deception. It is written for security architects and network engineers deciding whether MTD is worth the operational effort. The wider field is in the Network Security Guide.
Key takeaways
- MTD raises attacker work factor, it does not remove vulnerabilities. It shortens the time an attacker's knowledge stays valid; the bug, misconfiguration or weak credential is still there.
- You already run some MTD. Address space layout randomisation (ASLR), ephemeral cloud instances, short-lived credentials and IPv6 temporary addresses are all moving target techniques.
- Valid credentials walk straight through. An insider or an attacker with a stolen token is routed to wherever the target has moved, because legitimate access must keep working.
- Your own tools must move with the target. Asset inventory, SIEM correlation, firewall rules and incident timelines all depend on stable identifiers; MTD breaks them unless identity, not address, is the key.
- Pair it with other controls. NIST SP 800-160 Vol. 2 notes that unpredictability is always applied with another technique; MTD works best alongside zero trust access, segmentation and deception.
What moving target defence is
MTD is a design approach that changes a system's attack surface over time, or across instances, so that an attacker cannot rely on what was observed earlier. In NIST terms it sits across several cyber resiliency techniques in SP 800-160 Vol. 2 Rev. 1 (December 2021):
| SP 800-160 Vol. 2 technique | Approaches it lists | MTD example | Related SP 800-53 control |
|---|---|---|---|
| Dynamic Positioning | Functional Relocation of Sensors, Functional Relocation of Cyber Resources, Asset Mobility, Fragmentation, Distributed Functionality | Moving workloads between hosts or regions; relocating sensors | SC-30(3) Change Processing and Storage Locations |
| Non-Persistence | Non-Persistent Information, Services and Connectivity | Rebuilding instances from a golden image; short-lived sessions and connections | SI-14 Non-persistence, SI-14(1), SI-14(3) |
| Unpredictability | Temporal Unpredictability, Contextual Unpredictability | Random rotation timing; randomised memory layout | SC-30(2) Randomness |
| Diversity | Architectural, Design, Synthetic, Information, Path and Supply Chain Diversity | Different OS or library builds per tier; multiple network paths | SC-29 Heterogeneity |
| Deception (adjacent) | Obfuscation, Disinformation, Misdirection, Tainting | Decoy services alongside moving real ones | SC-26 Decoys, SC-30(4) Misleading Information |
The SP 800-53 guidance for SC-30(3) explains the goal: static, homogeneous and deterministic systems let adversaries succeed with less cost and effort, and changing locations introduces targeting uncertainty, increases the attacker's work factor and raises the chance they reveal their tradecraft while searching. The SC-30 base control also warns that these techniques add complexity and management overhead, which is the central trade-off of this page.
Techniques by layer: network, host, application and cloud
The table lists common MTD techniques with the attacker stage each one disrupts, mapped to MITRE ATT&CK tactics and techniques where the link is direct.
| Layer | Technique | What changes | Attacker stage disrupted |
|---|---|---|---|
| Network | IP address hopping or rotation | Externally visible or internal addresses of a service change on a schedule | Reconnaissance (T1595.001 Scanning IP Blocks); target lists go stale |
| Network | Port hopping or single-packet authorisation | Service port changes, or stays closed until an authenticated knock | Discovery (T1046 Network Service Discovery) |
| Network | IPv6 temporary addresses | Hosts use short-lived interface identifiers for outbound traffic | Tracking and correlation of a host over time |
| Network | Path diversity and route randomisation | Traffic takes different paths between endpoints | Interception at a fixed point; single-path denial of service |
| Host | Address space layout randomisation (ASLR) | Base addresses of stack, heap, libraries and executable per process | Exploitation (memory corruption exploits that need fixed addresses); D3FEND D3-SAOR |
| Host | Non-persistent hosts (reimage on schedule or per session) | The whole host returns to a known state | Persistence; dwell time after initial compromise |
| Host | Software diversity (different builds or compilers) | Binary layout or implementation differs between instances | Exploit reuse across many identical hosts |
| Application | Rotating credentials, keys and session tokens | Secrets and tokens expire quickly | Credential reuse; D3FEND D3-CRO Credential Rotation |
| Application | Randomised identifiers and endpoints | Object IDs, URLs or API paths are unguessable or per session | Enumeration and forced browsing |
| Cloud | Ephemeral instances and containers | Workloads are replaced from images rather than patched in place | Persistence; lateral movement from a long-lived foothold |
| Cloud | Workload relocation across hosts, zones or regions | Where a workload runs | Targeted attacks on a known host or co-residency |
ASLR: the familiar example
ASLR shows both the value and the limits. On Linux, kernel.randomize_va_space set to 1 randomises the mmap base, stack and VDSO, so shared libraries and PIE executables load at random addresses; 2 adds heap (brk) randomisation, which the kernel documentation notes can break some legacy binaries. On Windows, Exploit Protection offers Force randomization for images (Mandatory ASLR), which rebases DLLs even if they were not linked with /DYNAMICBASE, and Randomize memory allocations (Bottom-up ASLR) with high entropy for 64-bit processes; Microsoft notes that Mandatory ASLR alone has no entropy and should be paired with Bottom-up ASLR, and neither has an audit mode. ASLR is defeated by information leaks that reveal an address, which is why it is combined with other mitigations. See the Exploit Mitigations Guide.
Non-persistence: the cloud-native example
SP 800-53 SI-14 describes non-persistent components that start in a known state and are terminated periodically or at session end, achieved by refreshing components, reimaging or virtualisation, with SI-14(1) requiring the software and data used for refreshes to come from trusted sources. Immutable infrastructure and auto-scaling groups that replace instances on a schedule deliver this almost for free. See the Immutable Infrastructure Security Guide.
What MTD frustrates and what it does not
| Attacker situation | Does MTD help? | Why |
|---|---|---|
| Opportunistic internet scanning | Partly | Address and port changes make scan results stale, but a service that must be publicly reachable stays findable through DNS or the front door |
| Memory corruption exploit needing fixed addresses | Yes, until a leak | ASLR forces the attacker to find an information disclosure first |
| Long dwell after compromise | Yes | Reimaging and ephemeral workloads remove footholds unless the attacker persists elsewhere, for example in credentials or the image pipeline |
| Attacker with valid credentials (T1078 Valid Accounts) | No | Legitimate access paths must follow the moving target, so authentication routes the attacker to it |
| Malicious insider | No | Insiders use the same resolution and access mechanisms as everyone else |
| Application logic flaws, injection | No | The flaw moves with the application |
| Compromised golden image or CI pipeline | Makes it worse | Every refresh redeploys the attacker's code; SI-14(1) trusted sources matter |
| Data exfiltration from a reachable store | Little | Moving the store does not limit what an authorised session can read |
The honest summary: MTD buys time against reconnaissance-heavy and exploit-reuse attacks, and against persistence. It does nothing for identity-based attacks, which is why credential controls matter more than address changes for most organisations. No reliable, general effectiveness figure exists for MTD in enterprise networks; treat vendor claims of percentage reductions with caution and test against your own threat model.
Operational costs and failure modes
- Monitoring loses its keys: SIEM rules, NetFlow analysis and threat hunting often key on IP address. If addresses rotate, correlation across a rotation boundary fails unless logs carry a stable asset or workload identity. Record every mapping change with a timestamp.
- Troubleshooting gets harder: engineers cannot ping a known address or rely on a fixed route, and intermittent faults become hard to reproduce. Keep a resolver or control plane that answers "where is this service now?".
- Firewall and allow-list churn: address-based rules break or must be generated automatically; partners with static allow lists may lose access.
- Incident response timelines: forensics needs the state at the time of the event. Non-persistent hosts destroy evidence unless memory and disk capture are triggered before reimage, or logs are shipped off-host continuously.
- Performance and availability: rotation can drop long-lived connections, and heap randomisation or software diversity can break legacy software. Test in a pilot and set rotation intervals that sessions can tolerate.
- The control plane becomes the crown jewel: whatever orchestrates the movement knows the current map. Protect it like a privileged system.
Deciding whether MTD is worth it
- Choose host and cloud MTD first: ASLR, PIE, ephemeral workloads and short-lived credentials are low cost and well supported; turn them on everywhere.
- Consider network MTD for: high-value services with a small, known set of clients (management interfaces, OT gateways, internal APIs) where single-packet authorisation or address rotation can be managed centrally.
- Avoid network MTD where: services are public by design, monitoring is immature, or the team cannot yet correlate by identity.
- Small organisations: get MTD benefits through platform defaults (OS ASLR, managed container platforms, cloud auto-scaling) rather than bespoke hopping schemes.
- Large organisations: can justify network MTD for crown-jewel segments, provided asset inventory, SIEM and change records are identity-keyed first.
Implementing MTD in phases
- Baseline: confirm ASLR settings on Linux (
randomize_va_space= 2 where compatible) and Windows Exploit Protection, PIE builds, and credential lifetimes. - Make identity the correlation key: ensure logs carry hostnames, workload identities or asset IDs, not only addresses.
- Introduce non-persistence: rebuild a stateless tier from images on a schedule, with off-host logging and pre-reimage evidence capture.
- Pilot network MTD: protect one management plane with single-packet authorisation or rotation, measure operational tickets and detection quality for a month.
- Add randomness: randomise rotation timing within a window, as SP 800-160 Vol. 2 pairs Unpredictability with Dynamic Positioning.
- Roll back safely: keep a static fallback configuration that can be restored quickly if rotation breaks a critical service, and record each rollback.
Detection and measurement
- Hit rate on stale addresses: connection attempts to retired addresses or ports; legitimate clients should be near zero, so remaining traffic is reconnaissance worth investigating.
- Mean host lifetime: average age of instances in tiers meant to be non-persistent.
- Credential lifetime: median validity of tokens, keys and certificates for workloads.
- Correlation coverage: share of security events that carry a stable identity field.
- Operational cost: incidents and tickets attributed to rotation, tracked against the pilot baseline.
- ASLR coverage: share of binaries built as PIE and hosts with full randomisation enabled.
Where MTD fits alongside zero trust and deception
Zero trust decides whether each request is allowed based on identity, device and context; MTD makes it harder to find and reuse the thing being requested. They complement each other, and zero trust is what makes MTD survivable: once access is brokered by identity rather than by network location, addresses can move without breaking legitimate users. A ZTNA broker that hides applications until the user authenticates is already a form of concealment. See the ZTNA Guide and the Microsegmentation vs ZTNA guide.
Deception plants decoys (D3FEND D3-DNR Decoy Network Resource, D3-DE Decoy Environment) for the attacker to touch; MTD moves the real assets. Combined, an attacker scanning a segment finds decoys at stable addresses and real services that keep moving, so any interaction with an old address or a decoy is a high-fidelity alert. See the Deception Technology Guide.
Identity is the limit and the enabler. Because valid credentials defeat MTD, short-lived credentials and rotation (D3FEND D3-CRO) are the identity-layer moving target that matters most. See the Short-Lived Credentials Migration Guide for Legacy Applications.
Framework mapping
| MTD practice | NIST SP 800-53 Rev. 5 | MITRE D3FEND | ATT&CK frustrated |
|---|---|---|---|
| Relocating processing and storage | SC-30, SC-30(3) | No single named technique | T1018 Remote System Discovery, T1046 |
| Randomness in operations and assets | SC-30(2) | D3-SAOR Segment Address Offset Randomization (memory) | T1203, T1210 (exploits needing fixed addresses) |
| Non-persistent components | SI-14, SI-14(1), SI-14(3) | No single named technique | Persistence tactics generally |
| Diversity | SC-29, SC-29(1) | No single named technique | Exploit reuse across identical hosts |
| Decoys alongside moving assets | SC-26, SC-30(4) | D3-DNR, D3-DE | T1595, T1046 |
| Credential rotation | IA-5 | D3-CRO | Limits but does not stop T1078 |
Common failure patterns
- Selling MTD as a fix: address rotation in front of an unpatched service delays a scanner but not an attacker who resolves the service name.
- Blinding the SOC: rotation rolled out before logs carry stable identities, so detections and hunts silently stop matching.
- Reimaging away the evidence: non-persistent hosts rebuilt during an incident before memory and disk were captured.
- Refreshing from a poisoned source: a compromised golden image or pipeline is redeployed on every rotation.
- Ignoring credentials: hosts rotate hourly while service account keys live for years, so the attacker simply logs in again.
- Weak randomness: predictable rotation schedules or low-entropy ASLR (for example 32-bit processes) give attackers a pattern to follow.
Practitioner checklist
- Enable full ASLR (
randomize_va_space= 2 where compatible, Windows Mandatory plus Bottom-up ASLR) and build executables as PIE. - Make stable identity, not IP address, the correlation key in SIEM, inventory and firewall policy before any network MTD.
- Rebuild stateless tiers from trusted images on a schedule, with off-host logging and pre-reimage evidence capture.
- Shorten credential, token and certificate lifetimes for workloads alongside host rotation.
- Pilot network MTD only on high-value services with known clients, with a static fallback ready.
- Randomise rotation timing within a window rather than using a fixed schedule.
- Protect the orchestration or control plane that knows the current map as a privileged system.
- Alert on traffic to retired addresses and decoys as likely reconnaissance.
- Measure operational tickets and detection coverage before and after rollout.
Standards and references
- NIST: SP 800-160 Vol. 2 Rev. 1 Developing Cyber-Resilient Systems
- NIST: SP 800-53 Rev. 5 (SC-29, SC-30, SI-14)
- MITRE D3FEND: Segment Address Offset Randomization
- MITRE D3FEND: Decoy Network Resource
- MITRE ATT&CK: T1046 Network Service Discovery
- Linux kernel documentation: sysctl kernel parameters (randomize_va_space)
- Microsoft Learn: Exploit protection reference
Related NHI Mgmt Group resources: Network Security Guide · ZTNA Guide · Cloud Network Security Guide · Deception Technology Guide · Cyber Resilience Guide