Join our Newsletter — 33% off our NHI Course

How should security teams detect identity attacks when attackers are already inside valid sessions?

Security teams should look for deviations in behavior rather than relying only on authentication success. A valid session can still be malicious if the identity starts sending unusual requests, accessing unfamiliar systems, or changing routine actions. Correlating identity activity, SaaS events, and email-origin signals helps expose phishing, token theft, rogue MFA registration, and mailbox rule abuse before attackers persist.

Why This Matters for Security Teams

When an attacker is already inside a valid session, authentication logs can look clean while the account is actively being abused. That is why identity attack detection has shifted from “did the login succeed?” to “does the session behave like the real user?” This matters for SaaS, email, and cloud control planes because stolen tokens, rogue MFA enrolment, and mailbox-rule abuse often preserve the appearance of legitimacy.

Teams that rely only on perimeter alerts or password reset events miss the real signal: post-authentication behaviour. Current guidance increasingly treats identity telemetry as a sequence of actions, not a single event, and that is consistent with Ultimate Guide to NHIs and the attack patterns documented in 52 NHI Breaches Analysis. For defenders, the problem is not just compromise, but distinguishing normal session drift from attacker tradecraft before persistence is established.

In practice, many security teams discover identity abuse only after the attacker has already chained SaaS actions, delegated mailbox access, or exported data through a session that still looked valid.

How It Works in Practice

Effective detection starts by building a baseline of “normal” identity behaviour across email, SaaS, endpoint, and cloud platforms. The goal is to flag deviations in request sequence, timing, geolocation, API usage, consent grants, and administrative actions. Rather than asking whether the session is authenticated, teams ask whether the session is behaving in a way that is consistent with the user, device, and application context.

A practical stack usually combines identity logs, SaaS audit trails, and signal enrichment from threat intelligence. For example, a session that authenticates from a familiar device but immediately creates forwarding rules, registers a new MFA method, or accesses dormant applications deserves higher scrutiny. The same logic applies to token theft: a bearer token can be valid while the actor behind it is not. Frameworks such as MITRE ATT&CK Enterprise Matrix help map these behaviours to known tactics, while NIST Cybersecurity Framework 2.0 supports the broader detection and response lifecycle.

  • Correlate logins with post-authentication actions, not just successful sign-ins.
  • Track first-time SaaS events such as consent grants, role changes, and export activity.
  • Score sessions by anomaly, then enrich with device, IP reputation, and email-origin signals.
  • Prioritise mailbox rule changes, OAuth app consent, and MFA registration as high-risk events.

This approach works best when identity, email, and SaaS telemetry are centrally normalised; it tends to break down in heavily federated environments where vendors expose limited audit detail or where log retention is too short to reconstruct the session chain.

Common Variations and Edge Cases

Tighter behavioural detection often increases investigation volume, requiring organisations to balance precision against analyst capacity. That tradeoff is especially visible in environments with contractors, remote work, and frequent travel, where legitimate location and device changes are common. Current guidance suggests tuning for context rather than suppressing anomalies wholesale.

There is also no universal standard for this yet. Some teams use strict rules for high-risk actions such as privileged role assignment or inbox delegation, while others apply risk scoring only after several weak signals combine. Both approaches can work if they are backed by fast containment actions, such as session revocation, token invalidation, and forced reauthentication. The challenge is that modern attackers deliberately stay inside the “expected” path, so a single suspicious event is often less useful than a sequence of small deviations. The attack patterns described in Cisco DevHub NHI breach and the visibility gaps highlighted in The State of Non-Human Identity Security show why incomplete telemetry leaves defenders blind.

Best practice is evolving toward identity-centric detection that treats valid sessions as potentially hostile until behaviour proves otherwise, especially in SaaS-heavy organisations with weak MFA hygiene and broad OAuth exposure.

Standards & Framework Alignment

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

OWASP Agentic AI Top 10, CSA MAESTRO and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Agentic AI Top 10 A1 Behavioural abuse inside valid sessions mirrors agentic auth bypass and tool misuse.
CSA MAESTRO GOV-04 Governance requires continuous monitoring of runtime identity behaviour and trust changes.
NIST AI RMF GOVERN AI RMF stresses monitoring and accountability for dynamic, context-driven risk.
NIST CSF 2.0 DE.CM-1 Continuous monitoring is central to spotting malicious activity in valid sessions.
OWASP Non-Human Identity Top 10 NHI-06 Session abuse often follows weak secret handling, token theft, or over-privilege.

Detect unexpected action chains at runtime and block risky tool use before the session can pivot.