Install any skill in seconds. Free to start, no credit card required.
Get Started Free →mukul975/hunting-saas-sso-token-abuse
Detect SSO and OAuth token replay and SaaS lateral movement.
Passed 18 of 22 test cases with the skill, and 14 of 22 without it.
and 4 more in the full report
4 fixed14 passed either way4 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 4 test cases the skill fixed. Same model, same prompt, with and without the skill.
I need an incident response playbook and hunting guide to deal with stolen SaaS OAuth tokens and Primary Refresh Tokens following a cloud identity compromise. Outline a step-by-step strategy covering how to query non-interactive sign-ins for anomalous hosting provider usage, search audit logs for suspicious OAuth application consents, and programmatically invalidate active user sessions.
| Checked | Without skill | With skill |
|---|---|---|
| Includes Okta System Log queries filtering for the policy.evaluate_sign_on eventType. | Missed | Passed |
| Includes the Azure CLI az rest command to POST to the Graph API revokeSignInSessions endpoint. | Missed | Passed |
| Searches AuditLogs for OAuth permission grant operations. | Passed | Passed |
The instructions your model reads when the skill loads.
Adversaries increasingly bypass MFA not by defeating it but by stealing the artifacts issued after a successful authentication — session cookies, OAuth access/refresh tokens, and Primary Refresh Tokens (PRTs). With a stolen token an attacker replays the existing session ("pass-the-cookie" / token replay), inheriting the victim's authenticated state across federated SaaS without ever prompting for credentials or MFA. Mandiant's M-Trends reporting and Microsoft/Okta incident data both highlight token theft as a dominant cloud lateral-movement technique, mapped to MITRE ATT&CK T1550.001 Use Alternate Authentication Material: Application Access Token.
Detection relies on correlating identity telemetry rather than watching for failed logins. In Microsoft Entra ID the key tables are SigninLogs (interactive), AADNonInteractiveUserSignInLogs (where replayed cookies/refresh tokens commonly surface), and AADServicePrincipalSignInLogs. Entra now exposes linkable identifiers — SessionId and UniqueTokenIdentifier — that let a hunter stitch every artifact derived from one root authentication event together and spot a single session being used from multiple IPs, ASNs, or device fingerprints. In Okta the System Log carries authentication.sso, policy.evaluate_sign_on, and user.session.start events with a deviceToken/session context; the same session token appearing from divergent IPs/user-agents is the tell. Okta Identity Threat Protection (ITP) can natively flag "suspected session hijacking."
This skill provides a hypothesis-driven hunt: baseline normal session behavior, then look for impossible travel within a single session, refresh-token reuse, token use from anomalous infrastructure (hosting/VPS ASNs), and SaaS access patterns inconsistent with the user's device. Source: MITRE ATT&CK T1550.001; Microsoft Entra ID sign-in log documentation; Okta System Log reference; Mandiant M-Trends.
# Confirm the diagnostic settings export SigninLogs + non-interactive logs to a workspace
az monitor diagnostic-settings list --resource \
/providers/Microsoft.aadiam/diagnosticSettings -o table
curl -s -H "Authorization: SSWS $OKTA_API_TOKEN" \
"https://<org>.okta.com/api/v1/logs?filter=eventType eq \"user.session.start\"&since=2026-06-01T00:00:00Z"
requests for the Okta API)SessionId / UniqueTokenIdentifiertest cases passed, vs 14 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.