Join our Newsletter — 33% off our NHI Course
Home› Glossary› Governance, Ownership & Risk› CM-7 Least Functionality
Governance, Ownership & Risk

CM-7 Least Functionality

← Back to Glossary
By NHI Mgmt Group Updated November 26, 2026 Domain: Governance, Ownership & Risk

CM-7 Least Functionality is a NIST SP 800-53 Configuration Management control requiring systems to be configured to provide only essential capabilities, and to prohibit or restrict unnecessary functions, ports, protocols, software and services. Removing unused components shrinks the attack surface attackers can probe, and defenders verify it through configuration baselines and periodic reviews of what is enabled.

What CM-7 Means in Practice

CM-7 is a least-functionality control, so the goal is not merely “secure configuration” in the abstract, but deliberately reducing the set of functions a system can perform. In practice, this means disabling or removing features, services, protocols, and software that are not required for the business use case, then keeping that decision anchored to a baseline.

The control is especially important because unused capability is still reachable capability. Every extra service, listener, module, or admin tool expands the ways an attacker can enumerate the environment, find a weakness, or abuse a forgotten function that defenders did not intend to expose.

CM-7 also depends on disciplined exceptions. Organisations sometimes need a function that is normally restricted, but the control is about making those allowances explicit, reviewed, and limited rather than leaving broad capability enabled by default.

How Least Functionality Reduces Attack Surface

Least functionality is one of the simplest ways to shrink exposure because security teams can only defend what exists. If a feature is not installed, enabled, or permitted, it cannot be misconfigured, exploited, or used as a lateral-movement foothold in the same way a live service can.

This matters across operating systems, applications, endpoints, and infrastructure. Unnecessary remote access tools, legacy protocols, admin consoles, scripting surfaces, and bundled utilities often become the first places attackers probe, especially when they are left on for convenience or compatibility.

The control also improves defensive clarity. A smaller enabled surface makes baselines easier to define, change drift easier to spot, and reviews more meaningful because deviations stand out against a narrower set of approved capabilities.

What Organisations Verify for CM-7

Verification is as important as the restriction itself. Teams usually confirm least functionality through approved configuration baselines, periodic review of enabled services and software, and checks that compare the current state against what the system is supposed to provide.

A practical CM-7 review looks for features that were enabled for installation, testing, or legacy compatibility and never removed. It also checks whether a service is still needed by the current workload, not merely whether it was once useful to a previous owner, project, or deployment model.

This is where the control connects tightly to configuration management discipline more broadly. Least functionality works best when inventory, baseline governance, and change control are aligned, because the team needs to know what exists before it can decide what should remain enabled.

For a structured breakdown of the CM family, the evidence assessors typically expect, and how CM-7 fits into the broader control set, see NIST SP 800-53 CM Configuration Management.

Common Failure Modes and Control Boundaries

CM-7 fails most often when “restricted” really means “documented but still enabled.” That gap appears when teams retain unused protocols for support reasons, keep extra software for hypothetical troubleshooting, or accept long-lived exceptions that never expire.

Another boundary issue is assuming least functionality is only about servers. Workstations, build hosts, admin jump points, cloud images, and even security tooling can carry unnecessary capabilities that weaken the environment if they are left broad by default.

The control is also easy to undermine through inconsistent rollout. If a hardened baseline exists but new deployments, golden images, or cloned environments reintroduce unused services, the organisation gets the appearance of standardisation without the actual reduction in attack surface.

MITRE ATT&CK’s mitigation guidance on removing abused features is a useful way to think about this operationally, because it frames least functionality as direct attack-surface reduction rather than cosmetic hardening. See M1042 Disable or Remove Feature or Program for a mitigation-oriented view of the same principle.

Risk and Threat Considerations

Least functionality reduces the number of reachable components an attacker can enumerate, abuse, or pivot through. When unnecessary services, protocols, or tools stay enabled, they create avoidable exposure, especially if those components are old, weakly monitored, or rarely tested.

Failure mechanism: Attackers exploit forgotten features, legacy listeners, or permissive admin tools because defenders have more enabled paths than they can reliably secure and observe.

Impact: The result can be easier initial access, broader lateral movement options, weaker detection coverage, and a larger remediation burden after compromise.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK addresses the attack and risk surface, while NIST SP 800-53 Rev 5, CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5CM-7 — Least FunctionalityThis term is the CM-7 control itself and defines the requirement directly.
Recommendation — Remove or restrict unnecessary functions, ports, protocols, software, and services from systems.
CIS Controls v8CIS-2 — Inventory and Control of Software AssetsSoftware inventory and unsupported or unauthorized software control support least functionality.
CIS-4 — Secure Configuration of Enterprise Assets and SoftwareSecure baselines and configuration hardening operationalise least functionality across assets.
Recommendation — Inventory software continuously and remove or block unnecessary or unauthorized components. Enforce secure baselines that disable unnecessary services, ports, and functions.
MITRE ATT&CKM1042 — Disable or Remove Feature or ProgramThis mitigation directly maps to removing abused features and reducing attack surface.
Recommendation — Disable or remove features attackers abuse and verify they remain unavailable.
NIST CSF 2.0PR.PS-01 — Platform SecurityLeast functionality is a core platform hardening practice that reduces exposure.
Recommendation — Apply hardened build standards that disable unnecessary platform functions and services.

Practitioner Guidance

Why practitioners should care: CM-7 is one of the few controls that directly lowers complexity while also lowering risk. If a system offers only the functions it truly needs, the defender reduces both the number of things to protect and the number of places an attacker can hide.

Common misunderstanding: Teams often treat least functionality as a one-time hardening activity. In reality, it is a living configuration decision, because new features, software, and admin conveniences tend to creep back in unless someone owns the baseline.

When a control is written as “restrict or prohibit unnecessary functions,” the real governance question becomes who approves exceptions and how quickly they are retired. That is why the strongest CM-7 programmes tie baseline approval to change control, not to informal local preference.

A useful operational companion is Secure Configuration and Hardening Policy Template, which helps translate least-functionality intent into a maintainable baseline and exception model.

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
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org