A man-in-the-endpoint attack is an attack where malware or injected code runs on the victim’s own device and intercepts data, sessions or commands before they are protected or after they are decrypted. It often targets browsers, credential stores, memory or local APIs, so security depends on endpoint hardening, application control and tamper-resistant telemetry.
How man-in-the-endpoint attacks work
A man-in-the-endpoint attack succeeds because the device itself is already compromised. Instead of intercepting traffic on the network, the attacker operates inside the endpoint, where they can read plaintext after decryption, capture browser state, or manipulate commands before they leave the machine. That makes the endpoint the trust boundary, not the transport path.
This is why endpoint compromise can defeat protections that are strong in transit. TLS, secure portals and authentication hardening still matter, but they do not help if malware or injected code can observe the session after the user has logged in.
Why this attack is dangerous
The main danger is that the endpoint becomes a privileged observation point for secrets and sessions. An attacker with code execution on the device can target browser cookies, token caches, password managers, clipboard data, local APIs and in-memory credentials, then reuse that material to impersonate the user or pivot into connected systems. The risk is often greater than simple packet interception because the attacker sees the application state as the user sees it.
Top 10 Endpoint Security Risks is useful background here because endpoint tampering, local admin abuse, credential theft and EDR interference are recurring conditions that make this attack practical.
How organisations assess exposure
Exposure assessment starts with knowing which endpoints can reach sensitive applications, hold privileged browser sessions or store reusable secrets. Internet-facing laptops, unmanaged BYOD devices, developer workstations and machines with broad local privilege deserve special attention because they are more likely to host the exact malware, extensions or remote management tooling that this attack abuses.
Telemetry quality also matters. If the endpoint is the place where data is decrypted, then weak logging, blocked sensor updates or tamperable security tooling can hide the compromise. Organisations should also review whether application control, browser hardening and device trust signals are actually enforced on the endpoints that matter most.
Defences and recovery after compromise
The right defence is layered: reduce the chance of code running locally, limit what local code can see, and make stolen session material less reusable. That means enforcing application allowlisting where possible, removing local admin standing privilege, hardening browsers and extensions, and using strong session protections so stolen tokens are harder to replay. For high-value workflows, endpoint trust should be treated as a prerequisite, not an assumption.
When compromise is suspected, the response should not stop at the device cleanup. Review whether credentials, active sessions, API keys, certificates or cached secrets were exposed through that endpoint, then rotate or revoke the material that could have been captured. NIST Cybersecurity Framework 2.0 is a good way to organise the identify, protect, detect, respond and recover steps around this kind of endpoint-borne compromise.
Risk and Threat Considerations
Man-in-the-endpoint attacks are especially dangerous because they bypass perimeter assumptions and exploit the one place where the organisation must eventually trust the user experience. If an attacker can run code on the device, they can often capture secrets after decryption, interfere with local controls, or alter commands before they are submitted.
Failure mechanism: Malware, injected code or hostile browser extensions gain visibility inside the endpoint process space or user session, where encrypted traffic has already been decrypted and sensitive state is available in memory or local storage.
Impact: The attacker can steal credentials, hijack sessions, alter transactions, abuse local APIs and persist even when network-layer protections look healthy, which can turn one compromised device into account takeover or downstream lateral movement.
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 CSF 2.0 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | PR.AA-05 — Identity and Access Management | Endpoint compromise directly undermines access control and session trust. |
| PR.PS-01 — Platform Security | The attack depends on hardening the endpoint platform against local code execution. | |
| DE.CM-01 — Continuous Monitoring | Detecting endpoint interception depends on telemetry that can reveal tampering and abnormal local activity. | |
| Recommendation — Treat endpoint trust as part of access control and reduce the impact of stolen sessions. Harden endpoints to prevent local code, injection and tampering from reaching user sessions. Monitor endpoints for process injection, extension abuse and local telemetry tampering. | ||
| CIS Controls v8 | CIS-4 — Secure Configuration of Enterprise Assets and Software | Endpoint hardening and browser control are central to preventing local interception. |
| CIS-8 — Audit Log Management | Compromise review depends on logs and sensor data that can show endpoint interference. | |
| CIS-10 — Malware Defenses | The core threat is malware or injected code running on the victim device. | |
| Recommendation — Apply secure configuration baselines to reduce local code execution and browser abuse. Centralise and protect logs so endpoint tampering does not erase compromise evidence. Use malware defenses to detect and block code that can intercept sessions on the endpoint. | ||
| MITRE ATT&CK | T1055 — Process Injection | Injected code on the endpoint is a primary mechanism for intercepting data and commands. |
| T1550 — Use Alternate Authentication Material | Stolen cookies, tokens and similar material are the usual payoff of endpoint interception. | |
| Recommendation — Hunt for process injection on sensitive hosts and treat it as a likely precondition to session theft. Assume captured sessions may be reused and revoke or rotate authentication material quickly. | ||
Practitioner Guidance
Why practitioners should care: This term is a reminder that endpoint trust is part of authentication and session security, not just endpoint hygiene. If a device can read the session after login, then strong external controls may still fail at the last mile.
What to watch for: Repeated browser extension abuse, unexpected local privilege, tampering with security tooling, unusual process injection and suspicious use of local APIs are all signals that the device itself may be the attack surface. Treat those as potential session compromise indicators, not just malware events.
Man-in-the-Middle Attacks Guide helps distinguish network interception from endpoint interception, while MITRE ATT&CK T1557 Adversary-in-the-Middle gives useful contrast for understanding where relay and interception techniques stop and endpoint compromise begins.
Related resources from NHI Mgmt Group
- Who is accountable when a man-in-the-middle attack succeeds through weak authentication?
- Why do endpoint-only controls miss many real attack chains?
- Who should own hardening and monitoring when identity, endpoint, and collaboration platforms all become attack paths?
- How should security teams reduce the risk of endpoint security agents becoming an attack path into Windows environments?
Deepen Your Knowledge
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.
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