Join our Newsletter — 33% off our NHI Course
Home› Glossary› Threats, Abuse & Incident Response› SSH Stepping Stones Detection
Threats, Abuse & Incident Response

SSH Stepping Stones Detection

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

SSH Stepping Stones Detection is a security technique for spotting an attacker who uses one SSH host as an intermediate hop to reach another target. It looks for chained sessions, unusual login paths, and timing or source patterns that suggest lateral movement through multiple servers.

What SSH stepping stones detection is trying to uncover

SSH stepping stones detection focuses on a common attacker pattern: using one compromised SSH host as a relay point to reach another system. The detection goal is not just “was there an SSH login”, but whether the sequence, timing, and source relationships reveal an intermediate hop that hides the real origin of activity.

This matters because the first host can function as a trust bridge. If defenders only look at the final destination, they may miss the earlier compromise, the pivot path, or the broader lateral movement campaign behind it.

Why chained SSH sessions are hard to see

SSH stepping stones are difficult to identify because each individual login may look legitimate in isolation. An attacker can reuse valid credentials, hop through internal servers, or blend into routine admin traffic, which makes the path visible only when events are correlated across systems and over time.

The signal often comes from relationships rather than single alerts: unusual source addresses, repeated connection patterns across hosts, short dwell time on an intermediate node, or a chain of sessions that does not match normal administrative workflows.

That is why host-level logs, auth logs, and network telemetry need to be analysed together. A single server rarely has enough context to prove stepping-stone behaviour on its own.

What defenders look for in SSH pivot behaviour

Useful indicators include bursts of SSH activity from one internal server to another, a user authenticating on one host and then appearing quickly on a second host that is not part of the usual admin path, and session timing that suggests automated relay rather than interactive use.

Defenders also watch for mismatches between expected source and observed source, such as a login arriving from a server that normally should not initiate administrative access. MITRE D3FEND is useful here because it frames detection as a defensive mapping problem, where correlated observations are used to identify adversary techniques.

Where SSH is part of a broader admin estate, detection logic should also account for bastions, jump hosts, agent forwarding, and other legitimate chaining patterns so that true relays are separated from approved access paths. SANS Security Resources provides practical material for building that kind of detection and triage workflow.

Why it matters to incident response and hardening

Stepping-stone activity usually means the attacker has already crossed one boundary and is trying to expand access. That makes it both a detection problem and a containment problem: the intermediate host may be compromised, the credentials used there may be exposed, and the path may point to additional targets that need immediate review.

Strong SSH governance reduces the chances that one server can be used as a universal relay. The SSH Key and SSH Certificate Management Guide is a useful companion for understanding how key sprawl, orphaned access, and certificate-based SSH patterns affect the ability to spot and contain lateral movement.

For hosts that rely on forwarded logs or security telemetry, especially virtual infrastructure and exposed management systems, detection improves when authentication and shell activity are retained centrally and reviewed for anomalous SSH starts, privilege changes, and follow-on movement. ESXi Logs Detection Guide is a relevant example of how host telemetry can expose SSH-enabled intrusion paths.

Risk and Threat Considerations

SSH stepping stones are risky because they turn one compromised host into a concealment layer for broader lateral movement. The main danger is not the intermediate login itself, but the attacker’s ability to hide origin, reuse trust relationships, and move deeper before defenders connect the dots.

Failure mechanism: A compromised SSH host accepts valid-looking sessions and relays the attacker onward, while scattered logs fail to reveal the full chain or the unusual source path.

Impact: Hidden pivoting can delay containment, expand blast radius, expose additional servers or keys, and allow the attacker to persist inside the environment with less visibility.

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 CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
MITRE ATT&CKT1021.004 — SSHSSH stepping stones are an SSH-based lateral movement pattern.
T1219 — Remote Access SoftwarePivot hosts can function as attacker-controlled remote access paths.
Recommendation — Map SSH relay chains to T1021.004 and hunt for unusual internal hops. Correlate remote access from intermediary hosts to identify hidden relay activity.
CIS Controls v8CIS-8 — Audit Log ManagementDetection depends on preserving and correlating SSH and host authentication logs.
Recommendation — Centralize and review SSH-authentication logs to surface chained session patterns.
NIST SP 800-53 Rev 5AU-6 — Audit Record Review, Analysis, and ReportingStepping-stone detection requires cross-host audit analysis and correlation.
IA-5 — Authenticator ManagementSSH pivots are often enabled by reusable credentials, keys, or agents.
Recommendation — Review audit records across hosts to identify abnormal source-destination SSH chains. Manage SSH authenticators to reduce reuse and limit relay opportunities.

Practitioner Guidance

What to watch for: Treat any internal SSH source that suddenly becomes a launcher for new administrative sessions as a potential pivot point. The most useful reviews are correlation-based, not host-only: look across source host, destination host, timing, authentication method, and the normal admin topology.

Governance implication: Access paths should be deliberate and reviewable. Bastions, jump hosts, key rotation, and session logging matter because they reduce ambiguity when analysts need to distinguish legitimate chaining from adversary relays.

Practitioner takeaway: The strongest detections usually come from understanding the expected SSH route first, then flagging anything that behaves like an improvised bridge.

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