[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A7M6MT5JQAHCAAS9NKSFQP":3,"skill-same:01M7A7M6MT5JQAHCAAS9NKSFQP":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":14,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M7A7M6MT5JQAHCAAS9NKSFQP","hunting-saas-sso-token-abuse",null,"Hunts for stolen-session and OAuth\u002FPRT token replay (T1550.001) by correlating Microsoft Entra ID SigninLogs SessionId\u002FUniqueTokenIdentifier fields and Okta System Log sso\u002Fsession events to spot impossible travel, refresh-token reuse, and token use from anomalous ASNs. Use when hunting MFA-bypass via stolen cookies\u002Ftokens, investigating impossible-travel alerts, or scoping SaaS lateral movement after phishing.","NeelakshSaxena\u002FVayu","NeelakshSaxena","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F87892838?v=4","01M7A3B9YFS6F6N9DD1787DT86","Neelaksh Saxena","01M7A3B9ZKBT09MNMPX2XN69BY",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhunting-saas-sso-token-abuse\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhunting-saas-sso-token-abuse\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: hunting-saas-sso-token-abuse\ndescription: Hunts for stolen-session and OAuth\u002FPRT token replay (T1550.001) by correlating Microsoft Entra ID SigninLogs SessionId\u002FUniqueTokenIdentifier fields and Okta System Log sso\u002Fsession events to spot impossible travel, refresh-token reuse, and token use from anomalous ASNs. Use when hunting MFA-bypass via stolen cookies\u002Ftokens, investigating impossible-travel alerts, or scoping SaaS lateral movement after phishing.\ndomain: cybersecurity\nsubdomain: soc-operations\ntags:\n- threat-hunting\n- sso\n- oauth\n- token-theft\n- pass-the-cookie\n- entra-id\n- okta\n- detection-engineering\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- DE.CM-01\nmitre_attack:\n- T1550.001\n---\n# Hunting SaaS SSO Token Abuse\n\n## Overview\n\nAdversaries increasingly bypass MFA not by defeating it but by stealing the artifacts issued *after* a successful authentication — session cookies, OAuth access\u002Frefresh tokens, and Primary Refresh Tokens (PRTs). With a stolen token an attacker replays the existing session (\"pass-the-cookie\" \u002F 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\u002FOkta 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**.\n\nDetection 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\u002Frefresh 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`\u002Fsession context; the same session token appearing from divergent IPs\u002Fuser-agents is the tell. Okta Identity Threat Protection (ITP) can natively flag \"suspected session hijacking.\"\n\nThis 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\u002FVPS 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.\n\n## When to Use\n\n- Threat hunting for MFA-bypass via stolen tokens\u002Fcookies across Entra ID and SaaS\n- Investigating an alert for impossible travel, anomalous OAuth grant, or token reuse\n- Validating detection coverage for T1550.001 after a phishing\u002FAiTM incident\n- Building Sentinel\u002FSplunk\u002FOkta detections for session-token replay\n- Post-incident hunting to scope SaaS lateral movement from a compromised identity\n\n## Prerequisites\n\n- Entra ID sign-in logs flowing to a queryable store (Microsoft Sentinel \u002F Log Analytics):\n  ```bash\n  # Confirm the diagnostic settings export SigninLogs + non-interactive logs to a workspace\n  az monitor diagnostic-settings list --resource \\\n    \u002Fproviders\u002FMicrosoft.aadiam\u002FdiagnosticSettings -o table\n  ```\n- Okta System Log access via API or SIEM ingestion:\n  ```bash\n  curl -s -H \"Authorization: SSWS $OKTA_API_TOKEN\" \\\n    \"https:\u002F\u002F\u003Corg>.okta.com\u002Fapi\u002Fv1\u002Flogs?filter=eventType eq \\\"user.session.start\\\"&since=2026-06-01T00:00:00Z\"\n  ```\n- An IP enrichment source (GeoIP + ASN\u002Fhosting-provider classification)\n- Read access to the SIEM (KQL for Sentinel, SPL for Splunk)\n- Python 3.9+ for the helper script (`requests` for the Okta API)\n\n## Objectives\n\n- Baseline normal per-user session behavior (IPs, ASNs, devices, SaaS apps)\n- Correlate Entra sign-in artifacts by `SessionId` \u002F `UniqueTokenIdentifier`\n- Detect a single session used from multiple IPs\u002FASNs (token replay)\n- Detect impossible travel within one authenticated session\n- Detect refresh-token reuse and anomalous OAuth grants\n- Hunt Okta System Log for reused session tokens across contexts\n- Produce findings and feed confirmed patterns into standing detections\n\n## MITRE ATT&CK Mapping\n\n| ID | Name | Use in this skill |\n|----|------|-------------------|\n| T1550.001 | Use Alternate Authentication Material: Application Access Token | Core technique — replaying stolen OAuth tokens\u002Fcookies |\n| T1539 | Steal Web Session Cookie | The cookie theft that precedes pass-the-cookie replay |\n| T1528 | Steal Application Access Token | Acquisition of OAuth tokens via phishing\u002Fillicit consent |\n| T1078.004 | Valid Accounts: Cloud Accounts | Replayed tokens grant valid-account access to SaaS |\n| T1098.001 | Account Manipulation: Additional Cloud Credentials | Follow-on persistence after token abuse |\n\n## Workflow\n\n### 1. Correlate Entra sign-in artifacts by session\nStitch interactive, non-interactive, and SP sign-ins for one session to see the full chain.\n```kusto\nunion SigninLogs, AADNonInteractiveUserSignInLogs\n| where TimeGenerated > ago(7d)\n| where isnotempty(SessionId)\n| summarize IPs=make_set(IPAddress), Apps=make_set(AppDisplayName),\n            Locations=make_set(tostring(LocationDetails.countryOrRegion)),\n            Count=count() by SessionId, UserPrincipalName\n| where array_length(IPs) > 1\n```\n\n### 2. Detect a single session used from multiple ASNs (token replay)\n```kusto\nAADNonInteractiveUserSignInLogs\n| where TimeGenerated > ago(24h)\n| extend ASN = tostring(parse_json(tostring(NetworkLocationDetails))[0].networkType)\n| summarize distinctIPs = dcount(IPAddress),\n            ipset = make_set(IPAddress) by SessionId, UserPrincipalName\n| where distinctIPs >= 2\n```\n\n### 3. Detect impossible travel within one authenticated session\n```kusto\nSigninLogs\n| where TimeGenerated > ago(7d)\n| project TimeGenerated, UserPrincipalName, IPAddress,\n          City=tostring(LocationDetails.city),\n          Country=tostring(LocationDetails.countryOrRegion), SessionId\n| order by UserPrincipalName, TimeGenerated asc\n| serialize\n| extend prevCountry = prev(Country), prevTime = prev(TimeGenerated),\n         prevUser = prev(UserPrincipalName)\n| where UserPrincipalName == prevUser and Country != prevCountry\n        and datetime_diff('minute', TimeGenerated, prevTime) \u003C 60\n```\n\n### 4. Detect token use from hosting\u002FVPS infrastructure\nReplayed tokens are frequently used from datacenter ASNs, unlike the user's residential\u002Fcorporate ranges.\n```kusto\nAADNonInteractiveUserSignInLogs\n| where TimeGenerated > ago(24h)\n| where ResultType == 0\n| extend asnOrg = tostring(parse_json(tostring(AutonomousSystemNumber)))\n| where IPAddress in (toscalar(externaldata(ip:string)[\"\u003Chosting-asn-iplist>\"]))\n| project TimeGenerated, UserPrincipalName, AppDisplayName, IPAddress\n```\n\n### 5. Hunt anomalous OAuth grants \u002F illicit consent (token theft precursor)\n```kusto\nAuditLogs\n| where TimeGenerated > ago(30d)\n| where OperationName in (\"Consent to application\", \"Add OAuth2PermissionGrant\",\n                          \"Add delegated permission grant\")\n| extend app = tostring(TargetResources[0].displayName)\n| project TimeGenerated, InitiatedBy, app, Result\n```\n\n### 6. Hunt the Okta System Log for reused session tokens\nA single Okta session (`deviceToken`) used from divergent IPs\u002Fclients indicates hijack.\n```bash\ncurl -s -H \"Authorization: SSWS $OKTA_API_TOKEN\" \\\n  \"https:\u002F\u002F\u003Corg>.okta.com\u002Fapi\u002Fv1\u002Flogs?filter=eventType eq \\\"policy.evaluate_sign_on\\\"&since=2026-06-15T00:00:00Z\" \\\n  | jq -r '.[] | [.authenticationContext.externalSessionId, .client.ipAddress, .client.userAgent.rawUserAgent] | @tsv' \\\n  | sort | uniq -c | sort -rn\n```\n\n### 7. Splunk equivalent for Okta session reuse\n```spl\nindex=okta eventType=\"policy.evaluate_sign_on\"\n| stats dc(client.ipAddress) as ip_count\n        values(client.ipAddress) as ips\n        values(client.userAgent.rawUserAgent) as agents\n        by authenticationContext.externalSessionId actor.alternateId\n| where ip_count > 1\n```\n\n### 8. Triage and respond\nFor confirmed token abuse, revoke sessions and rotate, then promote the hunt to a rule.\n```bash\n# Revoke all refresh tokens \u002F sessions for the user in Entra\naz rest --method POST \\\n  --url \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002Fusers\u002F\u003CuserId>\u002FrevokeSignInSessions\"\n```\nSee `scripts\u002Fagent.py` to pull Okta logs and flag reused session tokens automatically.\n\n## Tools and Resources\n\n| Resource | Purpose | Link |\n|----------|---------|------|\n| MITRE ATT&CK T1550.001 | Technique reference | https:\u002F\u002Fattack.mitre.org\u002Ftechniques\u002FT1550\u002F001\u002F |\n| Entra sign-in logs schema | KQL hunting field reference | https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fentra\u002Fidentity\u002Fmonitoring-health\u002Freference-azure-monitor-sign-ins-log-schema |\n| Azure-Sentinel hunting repo | Community KQL detections | https:\u002F\u002Fgithub.com\u002FAzure\u002FAzure-Sentinel |\n| Okta System Log API | Event hunting source | https:\u002F\u002Fdeveloper.okta.com\u002Fdocs\u002Freference\u002Fapi\u002Fsystem-log\u002F |\n| Mandiant M-Trends | Token-theft threat landscape | https:\u002F\u002Fwww.mandiant.com\u002Fm-trends |\n| AzureAD-Attack-Defense | PRT\u002Ftoken replay detection guidance | https:\u002F\u002Fgithub.com\u002FCloud-Architekt\u002FAzureAD-Attack-Defense |\n\n## Preventive Controls to Recommend\n\nDetection should pair with controls that make stolen tokens far less useful:\n\n- **Entra Conditional Access \"token protection\"** binds the sign-in session to the\n  device, so an exfiltrated cookie\u002FPRT cannot be replayed off-device.\n- **Continuous Access Evaluation (CAE)** revokes access in near-real-time on risk\n  events instead of waiting for token expiry.\n- **Phishing-resistant MFA (FIDO2\u002Fpasskeys)** blocks the AiTM proxy phishing that\n  harvests tokens in the first place.\n- **Short token lifetimes + refresh-token rotation** shrink the replay window and turn\n  refresh-token reuse into an unambiguous compromise signal.\n- **Okta Identity Threat Protection (ITP)** flags suspected session hijacking natively.\n\n## False-Positive Tuning\n\n| Benign cause | Tuning |\n|--------------|--------|\n| Corporate VPN\u002Fproxy egress (many users, few IPs) | Allowlist known egress IPs\u002FASNs |\n| Mobile carrier IP rotation | Widen impossible-travel time\u002Fdistance thresholds |\n| Legitimate multi-device users | Correlate device IDs, not just IPs |\n| Backend\u002FAPI calls within one session | Exclude expected service principals |\n\n## Key Indicators\n\n| Indicator | Signal |\n|-----------|--------|\n| One `SessionId` across multiple IPs\u002FASNs | Token\u002Fcookie replay |\n| Non-interactive sign-in from new datacenter IP | Replayed refresh token |\n| Impossible travel within \u003C 1h | Concurrent session use |\n| Refresh-token reuse after rotation | Strong compromise signal |\n| New OAuth consent to unfamiliar app | Illicit-consent token theft |\n| Okta session token from divergent user-agents | Session hijack |\n\n## Validation Criteria\n\n- [ ] Entra `SigninLogs` and `AADNonInteractiveUserSignInLogs` queryable\n- [ ] Okta System Log accessible via API or SIEM\n- [ ] Per-session correlation by `SessionId` produces results\n- [ ] Multi-IP \u002F multi-ASN single-session query implemented\n- [ ] Impossible-travel-within-session query implemented\n- [ ] Anomalous OAuth consent hunt implemented\n- [ ] Okta reused-session-token hunt implemented\n- [ ] Confirmed findings triaged and sessions revoked\n- [ ] Effective queries promoted to standing detection rules\n- [ ] False-positive baseline (VPN\u002Fproxy egress) documented\n","# Hunting SaaS SSO Token Abuse\n\n## Overview\n\nAdversaries increasingly bypass MFA not by defeating it but by stealing the artifacts issued *after* a successful authentication — session cookies, OAuth access\u002Frefresh tokens, and Primary Refresh Tokens (PRTs). With a stolen token an attacker replays the existing session (\"pass-the-cookie\" \u002F 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\u002FOkta 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**.\n\nDetection 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\u002Frefresh 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`\u002Fsession context; the same session token appearing from divergent IPs\u002Fuser-agents is the tell. Okta Identity Threat Protection (ITP) can natively flag \"suspected session hijacking.\"\n\nThis 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\u002FVPS 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.\n\n## When to Use\n\n- Threat hunting for MFA-bypass via stolen tokens\u002Fcookies across Entra ID and SaaS\n- Investigating an alert for impossible travel, anomalous OAuth grant, or token reuse\n- Validating detection coverage for T1550.001 after a phishing\u002FAiTM incident\n- Building Sentinel\u002FSplunk\u002FOkta detections for session-token replay\n- Post-incident hunting to scope SaaS lateral movement from a compromised identity\n\n## Prerequisites\n\n- Entra ID sign-in logs flowing to a queryable store (Microsoft Sentinel \u002F Log Analytics):\n  ```bash\n  # Confirm the diagnostic settings export SigninLogs + non-interactive logs to a workspace\n  az monitor diagnostic-settings list --resource \\\n    \u002Fproviders\u002FMicrosoft.aadiam\u002FdiagnosticSettings -o table\n  ```\n- Okta System Log access via API or SIEM ingestion:\n  ```bash\n  curl -s -H \"Authorization: SSWS $OKTA_API_TOKEN\" \\\n    \"https:\u002F\u002F\u003Corg>.okta.com\u002Fapi\u002Fv1\u002Flogs?filter=eventType eq \\\"user.session.start\\\"&since=2026-06-01T00:00:00Z\"\n  ```\n- An IP enrichment source (GeoIP + ASN\u002Fhosting-provider classification)\n- Read access to the SIEM (KQL for Sentinel, SPL for Splunk)\n- Python 3.9+ for the helper script (`requests` for the Okta API)\n\n## Objectives\n\n- Baseline normal per-user session behavior (IPs, ASNs, devices, SaaS apps)\n- Correlate Entra sign-in artifacts by `SessionId` \u002F `UniqueTokenIdentifier`\n- Detect a single session used from multiple IPs\u002FASNs (token replay)\n- Detect impossible travel within one authenticated session\n- Detect refresh-token reuse and anomalous OAuth grants\n- Hunt Okta System Log for reused session tokens across contexts\n- Produce findings and feed confirmed patterns into standing detections\n\n## MITRE ATT&CK Mapping\n\n| ID | Name | Use in this skill |\n|----|------|-------------------|\n| T1550.001 | Use Alternate Authentication Material: Application Access Token | Core technique — replaying stolen OAuth tokens\u002Fcookies |\n| T1539 | Steal Web Session Cookie | The cookie theft that precedes pass-the-cookie replay |\n| T1528 | Steal Application Access Token | Acquisition of OAuth tokens via phishing\u002Fillicit consent |\n| T1078.004 | Valid Accounts: Cloud Accounts | Replayed tokens grant valid-account access to SaaS |\n| T1098.001 | Account Manipulation: Additional Cloud Credentials | Follow-on persistence after token abuse |\n\n## Workflow\n\n### 1. Correlate Entra sign-in artifacts by session\nStitch interactive, non-interactive, and SP sign-ins for one session to see the full chain.\n```kusto\nunion SigninLogs, AADNonInteractiveUserSignInLogs\n| where TimeGenerated > ago(7d)\n| where isnotempty(SessionId)\n| summarize IPs=make_set(IPAddress), Apps=make_set(AppDisplayName),\n            Locations=make_set(tostring(LocationDetails.countryOrRegion)),\n            Count=count() by SessionId, UserPrincipalName\n| where array_length(IPs) > 1\n```\n\n### 2. Detect a single session used from multiple ASNs (token replay)\n```kusto\nAADNonInteractiveUserSignInLogs\n| where TimeGenerated > ago(24h)\n| extend ASN = tostring(parse_json(tostring(NetworkLocationDetails))[0].networkType)\n| summarize distinctIPs = dcount(IPAddress),\n            ipset = make_set(IPAddress) by SessionId, UserPrincipalName\n| where distinctIPs >= 2\n```\n\n### 3. Detect impossible travel within one authenticated session\n```kusto\nSigninLogs\n| where TimeGenerated > ago(7d)\n| project TimeGenerated, UserPrincipalName, IPAddress,\n          City=tostring(LocationDetails.city),\n          Country=tostring(LocationDetails.countryOrRegion), SessionId\n| order by UserPrincipalName, TimeGenerated asc\n| serialize\n| extend prevCountry = prev(Country), prevTime = prev(TimeGenerated),\n         prevUser = prev(UserPrincipalName)\n| where UserPrincipalName == prevUser and Country != prevCountry\n        and datetime_diff('minute', TimeGenerated, prevTime) \u003C 60\n```\n\n### 4. Detect token use from hosting\u002FVPS infrastructure\nReplayed tokens are frequently used from datacenter ASNs, unlike the user's residential\u002Fcorporate ranges.\n```kusto\nAADNonInteractiveUserSignInLogs\n| where TimeGenerated > ago(24h)\n| where ResultType == 0\n| extend asnOrg = tostring(parse_json(tostring(AutonomousSystemNumber)))\n| where IPAddress in (toscalar(externaldata(ip:string)[\"\u003Chosting-asn-iplist>\"]))\n| project TimeGenerated, UserPrincipalName, AppDisplayName, IPAddress\n```\n\n### 5. Hunt anomalous OAuth grants \u002F illicit consent (token theft precursor)\n```kusto\nAuditLogs\n| where TimeGenerated > ago(30d)\n| where OperationName in (\"Consent to application\", \"Add OAuth2PermissionGrant\",\n                          \"Add delegated permission grant\")\n| extend app = tostring(TargetResources[0].displayName)\n| project TimeGenerated, InitiatedBy, app, Result\n```\n\n### 6. Hunt the Okta System Log for reused session tokens\nA single Okta session (`deviceToken`) used from divergent IPs\u002Fclients indicates hijack.\n```bash\ncurl -s -H \"Authorization: SSWS $OKTA_API_TOKEN\" \\\n  \"https:\u002F\u002F\u003Corg>.okta.com\u002Fapi\u002Fv1\u002Flogs?filter=eventType eq \\\"policy.evaluate_sign_on\\\"&since=2026-06-15T00:00:00Z\" \\\n  | jq -r '.[] | [.authenticationContext.externalSessionId, .client.ipAddress, .client.userAgent.rawUserAgent] | @tsv' \\\n  | sort | uniq -c | sort -rn\n```\n\n### 7. Splunk equivalent for Okta session reuse\n```spl\nindex=okta eventType=\"policy.evaluate_sign_on\"\n| stats dc(client.ipAddress) as ip_count\n        values(client.ipAddress) as ips\n        values(client.userAgent.rawUserAgent) as agents\n        by authenticationContext.externalSessionId actor.alternateId\n| where ip_count > 1\n```\n\n### 8. Triage and respond\nFor confirmed token abuse, revoke sessions and rotate, then promote the hunt to a rule.\n```bash\n# Revoke all refresh tokens \u002F sessions for the user in Entra\naz rest --method POST \\\n  --url \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002Fusers\u002F\u003CuserId>\u002FrevokeSignInSessions\"\n```\nSee `scripts\u002Fagent.py` to pull Okta logs and flag reused session tokens automatically.\n\n## Tools and Resources\n\n| Resource | Purpose | Link |\n|----------|---------|------|\n| MITRE ATT&CK T1550.001 | Technique reference | https:\u002F\u002Fattack.mitre.org\u002Ftechniques\u002FT1550\u002F001\u002F |\n| Entra sign-in logs schema | KQL hunting field reference | https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fentra\u002Fidentity\u002Fmonitoring-health\u002Freference-azure-monitor-sign-ins-log-schema |\n| Azure-Sentinel hunting repo | Community KQL detections | https:\u002F\u002Fgithub.com\u002FAzure\u002FAzure-Sentinel |\n| Okta System Log API | Event hunting source | https:\u002F\u002Fdeveloper.okta.com\u002Fdocs\u002Freference\u002Fapi\u002Fsystem-log\u002F |\n| Mandiant M-Trends | Token-theft threat landscape | https:\u002F\u002Fwww.mandiant.com\u002Fm-trends |\n| AzureAD-Attack-Defense | PRT\u002Ftoken replay detection guidance | https:\u002F\u002Fgithub.com\u002FCloud-Architekt\u002FAzureAD-Attack-Defense |\n\n## Preventive Controls to Recommend\n\nDetection should pair with controls that make stolen tokens far less useful:\n\n- **Entra Conditional Access \"token protection\"** binds the sign-in session to the\n  device, so an exfiltrated cookie\u002FPRT cannot be replayed off-device.\n- **Continuous Access Evaluation (CAE)** revokes access in near-real-time on risk\n  events instead of waiting for token expiry.\n- **Phishing-resistant MFA (FIDO2\u002Fpasskeys)** blocks the AiTM proxy phishing that\n  harvests tokens in the first place.\n- **Short token lifetimes + refresh-token rotation** shrink the replay window and turn\n  refresh-token reuse into an unambiguous compromise signal.\n- **Okta Identity Threat Protection (ITP)** flags suspected session hijacking natively.\n\n## False-Positive Tuning\n\n| Benign cause | Tuning |\n|--------------|--------|\n| Corporate VPN\u002Fproxy egress (many users, few IPs) | Allowlist known egress IPs\u002FASNs |\n| Mobile carrier IP rotation | Widen impossible-travel time\u002Fdistance thresholds |\n| Legitimate multi-device users | Correlate device IDs, not just IPs |\n| Backend\u002FAPI calls within one session | Exclude expected service principals |\n\n## Key Indicators\n\n| Indicator | Signal |\n|-----------|--------|\n| One `SessionId` across multiple IPs\u002FASNs | Token\u002Fcookie replay |\n| Non-interactive sign-in from new datacenter IP | Replayed refresh token |\n| Impossible travel within \u003C 1h | Concurrent session use |\n| Refresh-token reuse after rotation | Strong compromise signal |\n| New OAuth consent to unfamiliar app | Illicit-consent token theft |\n| Okta session token from divergent user-agents | Session hijack |\n\n## Validation Criteria\n\n- [ ] Entra `SigninLogs` and `AADNonInteractiveUserSignInLogs` queryable\n- [ ] Okta System Log accessible via API or SIEM\n- [ ] Per-session correlation by `SessionId` produces results\n- [ ] Multi-IP \u002F multi-ASN single-session query implemented\n- [ ] Impossible-travel-within-session query implemented\n- [ ] Anomalous OAuth consent hunt implemented\n- [ ] Okta reused-session-token hunt implemented\n- [ ] Confirmed findings triaged and sessions revoked\n- [ ] Effective queries promoted to standing detection rules\n- [ ] False-positive baseline (VPN\u002Fproxy egress) documented\n",{"name":5,"tags":25,"author":34,"domain":35,"license":15,"version":36,"nist_csf":37,"subdomain":39,"description":7,"mitre_attack":40},[26,27,28,29,30,31,32,33],"threat-hunting","sso","oauth","token-theft","pass-the-cookie","entra-id","okta","detection-engineering","mahipal","cybersecurity","1.0",[38],"DE.CM-01","soc-operations",[41],"T1550.001","main","7540bbccf0c1ded6156a467b02c95b61ad62413f",".agents\u002Fskills\u002Fhunting-saas-sso-token-abuse","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena","Currently exploring the intersection of tech","2026-09-11 03:02:31",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add NeelakshSaxena\u002FVayu --skill hunting-saas-sso-token-abuse",{"tool":55,"command":56},"bunx","bunx skills add NeelakshSaxena\u002FVayu --skill hunting-saas-sso-token-abuse",{"tool":58,"command":59},"pnpm","pnpm dlx skills add NeelakshSaxena\u002FVayu --skill hunting-saas-sso-token-abuse","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhunting-saas-sso-token-abuse\u002FSKILL.md",true,[63,67,73,77],{"path":64,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fapi-reference.md","REFERENCE","参考文档",2231,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhunting-saas-sso-token-abuse\u002Freferences\u002Fapi-reference.md",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fstandards.md",1423,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhunting-saas-sso-token-abuse\u002Freferences\u002Fstandards.md",{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"scripts\u002Fagent.py","SCRIPT","脚本",5280,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhunting-saas-sso-token-abuse\u002Fscripts\u002Fagent.py",[84,91,98,105,112,119],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":20},"01M7ACCCVNCFKMA9X6D15X6G98","runpodctl","Runpod CLI for managing GPU\u002FCPU workloads from the terminal — pods, serverless endpoints, templates, network volumes, Hub deploys, models, SSH, and file transfer (send\u002Freceive). Use for terminal\u002FCI\u002Fscripting, Hub browse\u002Fdeploy, SSH setup, `doctor`, or when the Runpod MCP tools are not connected. For structured tool calls in an MCP-enabled session, prefer runpod-mcp.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpodctl\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":20},"01M7ACC63SRHEA5KMCHSMZK2TC","runpod","Start here for any Runpod task — running GPU\u002FCPU pods, deploying serverless endpoints, templates, network volumes, building images, or understanding how Runpod works. Routes to the right skill (runpod-mcp, runpodctl, flash, companion-clis, runpod-usage, runpod-templates, runpod-migrate) and indexes two dozen live-verified end-to-end examples (golden paths) — use it when the lane is unclear, and for any multi-step or provisioning task even when it is not.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":20},"01M7ACC0Q1C89N9BZBV91CTQTF","runpod-usage","How Runpod works and how to work it — pods vs serverless, GPU\u002FVRAM selection, storage, building a container, networking, plus the agentic pod development loop (provision → ssh-exec → set up → poll readiness) and on-pod install hygiene (uv\u002Fapt). Use to answer \"how does X work\", \"which GPU\", \"how do I build a container\", or \"how do I stand up a workload on a pod\". Guidance, not a tool — execute with runpodctl, runpod-mcp, or flash.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-usage\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":20},"01M7ACBRPE345GF5GM5B8P8RRC","runpod-templates","Runpod's official prebuilt pod templates (ComfyUI, PyTorch, and others): what each image ships, which ports and paths it uses, how to pick one, how to pin a version, and what is missing on first boot. Use when a task says \"run \u003CX> on a pod\" and an official template already covers it, instead of building an image — and when a user needs help with or wants to fix something about a Runpod template they are already running (won't boot, can't reach the UI, missing models, wrong CUDA line, broken ComfyUI workflow metadata on imported workflows): start here and route onward. Deploy with runpodctl or runpod-mcp; end-to-end walkthroughs live in the runpod router's golden paths.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-templates\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":20},"01M7ACBJATHKVX1TWES2F44GY8","runpod-migrate","Migrate a codebase from the Runpod GraphQL API or REST v1 to REST v2 — inventory which parts use which API version, rewrite the call sites, flag breaking changes, and verify. Use when someone asks to move to v2, asks what v2 would change, or asks which Runpod API their code is on. For managing infrastructure rather than migrating code, use runpod-mcp or runpodctl.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-migrate\u002FSKILL.md",[],[],{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":20},"01M7ACBC7GHVH6T9YEAPCG2AP8","runpod-mcp","Manage Runpod infrastructure — pods, serverless endpoints, jobs, templates, network volumes, container-registry auth, GPU\u002FCPU catalog, and billing — via the Runpod MCP server's structured tool calls. Use when the Runpod MCP tools (create-pod, list-endpoints, …) are connected in this session, or to connect them (hosted OAuth or local npx). Prefer this over runpodctl for plain infra CRUD when MCP is available; use runpodctl for the terminal, file transfer, or SSH setup.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-mcp\u002FSKILL.md",[],[]]