Join our Newsletter — 33% off our NHI Course
Home› Guides› Attack Surface Reduction Programme: Decommissioning, Consolidating and Closing…
Guide Vulnerability Management

Attack Surface Reduction Programme: Decommissioning, Consolidating and Closing Exposed Services

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 12 min read
On this page

Most organisations can now see their exposed services, but the list keeps growing because nobody is accountable for making it shorter. An attack surface reduction programme turns discovery output into fewer internet-facing systems, fewer duplicate platforms and fewer forgotten assets, through decisions with owners, deadlines and safe change. This guide is for security and infrastructure leaders who already run some form of discovery and need a repeatable way to decommission, consolidate and close what they find. It covers the decision framework, safe closure with rollback, shadow IT and orphaned assets, governance that stops regrowth, and metrics you can defend without borrowed benchmarks. It is about reducing the estate itself; it is not about Microsoft Defender for Endpoint attack surface reduction (ASR) rules, which are endpoint behaviour controls covered in How to Deploy Attack Surface Reduction Rules.

Key takeaways

  • Removal beats monitoring. A service that no longer exists cannot be exploited, scanned, patched late or forgotten, so every finding should first be tested against "can this go?"
  • Ownership is the bottleneck. Assets without a named, accountable owner are the ones that stay exposed; attribution comes before any technical fix.
  • Use three outcomes, not one. Decommission what has no purpose, consolidate what duplicates something else, and harden or broker access to what must stay.
  • Closure is a change, so treat it like one. Scream tests, backups of configuration, DNS clean-up and a tested rollback plan make removal safe enough that teams stop resisting it.
  • Measure the estate, not the scanner. Track counts of exposed services, unowned assets and time to close against your own baseline rather than industry figures.

Attack surface reduction vs management

Attack surface management (ASM) finds and monitors what is exposed. Reduction is the programme that acts on it. The two share data but have different owners, outputs and success measures. See the Attack Surface Management Guide for discovery techniques; this page starts where that one ends.

AspectAttack surface managementAttack surface reduction programme
Main questionWhat do we expose, and what changed?Does this need to exist, and in this form?
Typical ownerSecurity operations or vulnerability managementCISO and infrastructure or platform leadership jointly
OutputFindings, alerts, risk scoresDecommissioned systems, merged platforms, closed ports, retired domains
CadenceContinuousQuarterly waves plus a standing intake for new findings
Success measureCoverage and detection speedFewer assets, fewer exposed services, fewer unowned items
Main failureAlert fatigue and unworked backlogsStalled decisions and fear of breaking something

NIST SP 800-53 Rev. 5 already expects this behaviour: CM-7 Least Functionality requires a system to provide only essential capabilities and to prohibit or restrict unneeded functions, ports, protocols and services, and enhancement CM-7(1) Periodic Review requires reviewing the system to identify and then disable or remove unnecessary and nonsecure ones. CISA's Cross-Sector Cybersecurity Performance Goals make the same point in goal 2.W, No Exploitable Services on the Internet, which also asks for unnecessary operating system applications and network protocols to be disabled on internet-facing assets.

Discovery and ownership

You cannot reduce what you cannot attribute. Reuse the inventory you already have, then close the gaps that matter for reduction: who owns each asset, what it is for and what depends on it.

Sources to reconcile

  • Asset register or CMDB: the authoritative record. NCSC asset management guidance recommends one record that everyone agrees on, with "last seen" timestamps so you can tell how current an entry is. See the Asset Inventory and CMDB Security Guide.
  • External discovery: ASM or scanner output for IP ranges, domains, certificates and exposed services.
  • Cloud control planes: account and subscription lists, resource inventories and tags.
  • Finance and procurement: NCSC recommends reconciling procurement and cloud billing records against the asset register to find unrecorded purchases, which is often the fastest way to surface shadow IT.
  • DNS zones and registrar accounts: every record that points somewhere, and every domain you pay for.
  • Identity systems: service accounts, app registrations and API keys tied to each system, since a decommissioned server with a live credential is only half removed.

Shadow IT and orphaned assets

NCSC describes shadow IT as IT used for business purposes that sits outside asset management, risk management or corporate IT processes, and warns it creates unknown risk. Orphaned assets are the other half of the problem: systems that were once approved but whose owner has left, whose project ended or whose team was reorganised. Treat them differently:

  • Shadow IT with a live business user: bring it under management or move the users to an approved platform; outright removal without a replacement just pushes it further out of sight.
  • Orphaned asset with traffic: find the consumer from logs before deciding; the asset may support a process nobody documented.
  • Orphaned asset with no traffic: move straight to the scream test path below.
  • Unattributable after a fixed period: set a rule such as 14 days of active attribution effort, then the security function or platform owner becomes the default owner and the asset enters the decommission queue. CIS Safeguard 1.2 Address Unauthorized Assets expects unauthorised assets to be removed, denied remote connection or quarantined.

Decision framework: decommission, consolidate, harden

Every in-scope asset gets one of four outcomes, decided by the owner with security input and recorded with a date. The aim is to make "keep exposed as is" the hardest outcome to choose.

SignalDefault outcomeTypical actionApprover
No owner, no traffic in 30 to 90 daysDecommissionScream test, then remove host, DNS records, certificates and credentialsPlatform owner
Purpose ended (project, campaign, migration source, test environment)DecommissionArchive data under retention rules, then removeBusiness owner
End of support with no extended support contractDecommission or replaceMigrate workload, retire the component (NIST SP 800-53 SA-22 Unsupported System Components)Business owner and CISO
Duplicates another approved platform (second VPN, extra file transfer service, parallel CMS)ConsolidateMigrate users to the standard platform, then decommission the duplicateArchitecture board
Management interface reachable from the internetRestrictMove to an internal management network or put behind a separate access brokerInfrastructure owner
Needed, internet-facing, single purposeHarden and keepClose unused ports and protocols, require strong authentication, add to monitoringService owner
Needed but only by known partiesBroker accessReplace open exposure with private connectivity, allow-listing or an identity-aware proxyService owner

Decision guidance

  • Decommission vs consolidate: if the asset's users can be served by an existing approved platform within one quarter, consolidate; if they cannot name a current need, decommission.
  • Restrict vs harden: management planes and administrative protocols (SSH, RDP, SNMP, SMB, Telnet, out-of-band controllers) should be restricted rather than hardened in place. CISA Binding Operational Directive 23-02 requires US federal civilian agencies to either remove such interfaces from the internet or put them behind a separate Zero Trust policy enforcement point within 14 days of discovery, and that is a sensible bar for any organisation.
  • Small organisations: start with external exposure only and a simple spreadsheet decision log; one consolidation (for example, a single remote access route) often removes more risk than a year of hardening.
  • Large organisations: run reduction in business-unit waves with a central decision log, and give the architecture board authority over duplicate platforms, since consolidation crosses team boundaries.
  • Exceptions: allow them only with a named risk owner, compensating controls and an expiry date of no more than 12 months.

Closing exposed services safely

Fear of outages is the main reason reduction stalls. A predictable, reversible procedure removes most of that fear. NCSC decommissioning guidance lists the risks of getting it wrong: unauthorised access to data left behind, lost services, disruption, inability to roll back, and exploitation of left-behind services or devices.

  1. Confirm the record. Owner, purpose, data held, upstream and downstream dependencies, and related test or pre-production systems that may also become redundant.
  2. Raise a change. Use the normal change process with a standard change type for low-risk closures. See the Change Management Security guide.
  3. Back up for rollback. Export configuration, firewall rules, DNS records and certificates; NCSC advises keeping backups for a set period and testing the rollback plan, or key parts of it, before starting.
  4. Scream test. Block inbound access (security group, firewall rule or listener stop) without deleting anything, announce it to affected users, and watch for complaints and failed connections for a fixed period, typically two to four weeks.
  5. Decide. If nobody needs it, proceed; if someone does, record the real owner and move the asset to the harden or broker path.
  6. Remove in the right order. Delete DNS records before releasing the resource, revoke certificates, disable and delete service accounts, API keys and app registrations, then remove the host or service. Microsoft guidance on dangling DNS makes "remove DNS entry" a required decommissioning step because a CNAME left pointing at a released cloud resource name can be claimed by someone else.
  7. Handle data. Archive under retention rules, then sanitise storage before reuse or disposal.
  8. Verify and update. Rescan externally to confirm the service is gone, update the asset register, and close the change only on verified absence.

Rollback is simple when steps 3 and 4 are followed: reopen the blocked rule. After deletion, rollback means a rebuild from the configuration backup, so keep backups for at least the scream test period plus one quarter.

Where identity fits

Every service you retire usually leaves identities behind: service accounts, managed identities, OAuth app registrations, SSH keys and API tokens that still work against other systems. The Microsoft Midnight Blizzard breach began with a password spray against a legacy non-production test tenant account without MFA and then abused a legacy test OAuth application with elevated access; see the Microsoft Midnight Blizzard breach. Include credential revocation in every decommissioning change, and see How to assign owners to orphaned service accounts and the Cloud Account and Resource Decommissioning guide.

Governance and preventing regrowth

Reduction without prevention becomes an annual clean-up. Put controls at the points where new exposure is created.

  • Registration before use: NCSC recommends collecting asset information before or at first use to limit shadow IT; enforce it with required tags in cloud policy and with procurement checks.
  • Exposure by exception: make public IPs, public storage and inbound internet rules require an approved pattern, enforced by cloud policy or infrastructure-as-code checks.
  • Standard platforms: publish one approved option for remote access, file transfer, web hosting and API gateways, so teams have no reason to run their own.
  • Expiry by default: give test environments, campaign sites and proof-of-concept resources an end date at creation, with automatic shutdown after reminders.
  • Decommissioning at procurement: NCSC advises considering decommissioning at the start of procurement; add exit and data deletion clauses to contracts.
  • Quarterly review: a short report to senior management on assets added, removed and excepted, as NCSC suggests for asset management status.

Framework mapping

FrameworkReferenceHow the programme meets it
NIST CSF 2.0ID.AM-01, ID.AM-02Reconciled inventories of hardware, software, services and systems
NIST CSF 2.0PR.PS-01, PR.PS-03Configuration management, and removing hardware commensurate with risk
NIST SP 800-53 Rev. 5CM-7, CM-7(1), CM-8, SA-22Least functionality, periodic review, component inventory, unsupported components
CIS Controls v8.1Safeguards 1.1, 1.2, 2.3, 4.8Asset inventory, addressing unauthorised assets and software, removing unnecessary services
CISA CPGs1.A, 2.W, 2.XAsset inventory, no exploitable services on the internet, limiting OT internet connections
MITRE ATT&CKT1190, T1133Fewer public-facing applications and external remote services to exploit

Measuring progress

Baseline before the first wave and report against your own starting point. Industry averages differ in scope and method, so they rarely compare like with like.

  • Exposed services count: distinct internet-reachable services, split by category (management interface, remote access, web, file transfer, database), trending down.
  • Unowned asset ratio: assets with no accountable owner as a share of the inventory, trending to near zero.
  • Decision latency: median days from finding to recorded decision, and from decision to verified closure.
  • Removal mix: the share of findings closed by decommissioning or consolidation versus hardening; a rising share of removals shows the programme is shrinking the estate.
  • Regrowth rate: new exposed services per month, and how many arrived outside approved patterns.
  • Exception health: open exceptions, and how many are past expiry.

Log decisions and changes so the metrics are reproducible: decision log entries, change records, scream test outcomes and the rescan that confirmed closure.

Common failure patterns

  • Monitoring without mandate: findings pile up because no one has authority to remove a system another team runs.
  • Deleting the host but not the DNS record: the dangling record becomes a takeover risk on your own domain.
  • Leaving credentials alive: the server is gone but its service account, key or OAuth app still works elsewhere.
  • Forgotten remote access: a legacy portal outside the standard access path, without MFA. Change Healthcare attackers used compromised credentials on a Citrix remote access portal without MFA; see the Change Healthcare breach.
  • Permanent exceptions: exceptions with no expiry become the real estate.
  • Skipping the scream test: one outage from a rushed removal can stop the programme for a year.

Practitioner checklist

  • Agree a joint mandate between security and infrastructure leadership, with authority to decommission unowned assets.
  • Baseline exposed services, unowned assets and duplicate platforms before the first wave.
  • Reconcile CMDB, external discovery, cloud inventories, DNS, billing and identity data.
  • Set a fixed attribution period after which unowned assets enter the decommission queue.
  • Record one outcome per asset: decommission, consolidate, restrict or harden.
  • Restrict internet-exposed management interfaces within 14 days of discovery.
  • Use scream tests and configuration backups before any deletion.
  • Remove DNS records, certificates and credentials as part of every decommissioning change.
  • Enforce registration before use, exposure by exception and expiry dates for temporary resources.
  • Report quarterly against your own baseline, including exceptions past expiry.

Standards and references

Related NHI Mgmt Group resources: Attack Surface Management Guide · Vulnerability Management Guide · Vulnerability Backlog Burn-Down Playbook · Exposure Management and CTEM Guide

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.

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 both boxes to continue.