Join our Newsletter — 33% off our NHI Course
Threats, Abuse & Incident Response

Port 22

← Back to Glossary
By NHI Mgmt Group Updated October 31, 2026 Domain: Threats, Abuse & Incident Response

Port 22 is commonly associated with SSH, a protocol used for secure remote administration. When a system shows unusual volume on port 22, or uses that port in ways that do not match expected services, it can indicate scanning, brute force activity, misconfiguration, or abuse of remote access paths.

What Port 22 Signals in Practice

Port 22 is best understood as the default SSH service port, so its presence usually tells you that a host is intended to support secure remote administration. The operational question is not whether the port exists, but whether the exposed service, banner, and access pattern match the asset’s expected role and hardening standard.

Because SSH is a high-value remote access path, port 22 often becomes a first-pass indicator of administrative reachability. That makes it useful for baselining, but also easy to misunderstand: the same port can reflect legitimate maintenance access, a test system left enabled, or an internet-exposed management service that should not be public.

Why Port 22 Becomes a Security Indicator

Port 22 matters because attackers routinely probe it when they are looking for remote access paths they can enumerate, brute force, or abuse. When a system unexpectedly listens on SSH, or when traffic spikes without a clear change window, the port itself becomes a signal of exposure, not just a transport detail.

The risk is highest when SSH is reachable from broad networks, when authentication is weak, or when the service is present on assets that should not offer direct remote login. In those cases, port 22 can reveal misconfiguration, shadow administration paths, or an externally reachable management plane that was never meant to be public.

How Organisations Interpret Unusual Port 22 Activity

Port 22 should be assessed in the context of asset inventory, expected service placement, and network exposure. A host that legitimately uses SSH in a restricted admin subnet is a very different case from a host with the same port exposed on the internet or appearing on an asset that should be application-only.

Investigators also look for corroborating signals such as repeated login failures, new source IPs, unusual connection timing, and service banners that do not match the platform’s normal configuration. In practice, port 22 is most useful when paired with context from scanning, configuration management, and remote access policy rather than treated as a stand-alone alert.

Remediation and Hardening for SSH Exposure

When port 22 is unnecessarily exposed, the first question is whether the service should exist at all on that system. If it must remain enabled, the safer pattern is to constrain who can reach it, reduce the authentication surface, and make the service an exception that is explicitly owned and monitored rather than a default assumption.

Where patching or service redesign cannot happen immediately, compensating controls matter: restrict network reachability, disable password-based access where appropriate, narrow admin source ranges, and confirm that the host is not accepting remote logins from untrusted segments. The goal is to turn port 22 from an open invitation into a tightly governed administration path.

Risk and Threat Considerations

Unusual SSH exposure can be both an early warning and an active attack path. Port 22 is a frequent target for scanning and brute force attempts, and if remote access succeeds the attacker may gain a direct foothold into the system’s administrative plane.

Failure mechanism: Attackers enumerate the port, test credentials or keys, and then use the SSH session for persistence, lateral movement, or privileged operations when access controls are weak or overly broad.

Impact: Successful abuse can expose system data, service credentials, configuration files, and privileged access paths, while also creating a durable remote-control channel that is harder to distinguish from legitimate administration.

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 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5AC-17 — Remote AccessPort 22 is a remote administration path that must be controlled.
IA-2 — Identification and Authentication (Organizational Users)SSH exposure depends on strong user authentication before remote login.
CM-7 — Least FunctionalityUnexpected port 22 listeners often indicate unnecessary services or scope creep.
Recommendation — Restrict SSH remote access to approved users, systems, and network paths. Enforce strong authentication for any SSH administrative access. Remove SSH from assets that do not require remote shell access.
MITRE ATT&CKT1021.004 — Remote Services: SSHSSH is a common remote service abused for initial access and lateral movement.
Recommendation — Map SSH exposure and login activity to T1021.004 and hunt for abuse patterns.
CIS Controls v8CIS-6 — Access Control ManagementSSH exposure is governed by who can reach and use the remote access path.
Recommendation — Limit SSH access to authorized admin sources and approved accounts.

Practitioner Guidance

Why practitioners should care: Port 22 is often one of the clearest indicators that a device is offering remote administration, so it deserves explicit ownership rather than informal exception handling. If the service is expected, treat it as a controlled management surface with a clear inventory entry and a defined exposure boundary.

What to watch for: The most important signals are unexpected internet exposure, login failures from unfamiliar sources, and SSH presence on systems that should not accept direct administrative access. When those conditions appear, the issue is usually not the port number itself, but the trust decision behind it.

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 October 31, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org