Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

authentication-tracing

БесплатноБез исполняемых скриптовНе проверен

Use this skill when asked to trace authentication flows, analyze SessionId chains, investigate token reuse vs interactive MFA, or assess geographic anomalies…

SCStelzот SCStelz★ 256 звёзд на GitHub

Об этом скилле

Authentication Tracing - Instructions

Purpose

This skill performs forensic analysis of Entra ID authentication flows to determine whether anomalous sign-ins represent:

  • Legitimate activity (VPN usage, user travel, mobile carrier routing)
  • Token theft/credential compromise (stolen refresh tokens, session hijacking)

The key distinction is whether the user actively performed MFA at a suspicious location or if the authentication used a refresh token from a prior session.


📑 TABLE OF CONTENTS

  1. Critical Workflow Rules - Start here!
  2. Key Forensic Indicators - Understanding authentication signals
  3. IP Enrichment Data - JSON structure reference
  4. 6-Step Forensic Workflow - SessionId-based investigation
  5. Real-World Example - Complete walkthrough
  6. Authentication Methods Reference - Method patterns
  7. Risk Escalation Criteria - High/Medium/Low classification
  8. Best Practices - Summary checklist

⚠️ CRITICAL WORKFLOW RULES - READ FIRST ⚠️

🚨 MANDATORY CHECKPOINT: Before providing ANY risk assessment for authentication anomalies:

  1. STOP - Do not improvise or use general security knowledge
  2. READ the complete risk assessment framework in this document
  3. QUOTE specific instruction sections in your analysis
  4. VERIFY your conclusions match documented guidance before responding to user

Before executing ANY authentication tracing queries, you MUST:

  1. Read the SessionId-based workflow (Steps 1-6 below) in full
  2. Search the investigation JSON for IP enrichment data (ip_enrichment array) - PRIMARY DATA SOURCE
  3. Follow the documented steps in order (SessionId → Authentication chain → Interactive MFA → Risk assessment)
  4. Use IP enrichment context in your final risk assessment (VPN status, abuse scores, threat intel, auth patterns)

Skipping these steps will result in incomplete or incorrect analysis.


Key Forensic Indicators

When investigating anomalous sign-ins (e.g., from new countries, IPs, or devices), it's critical to determine whether the user actively performed MFA at that location or if the authentication used a refresh token from a prior session.

RequestSequence Field

Value Meaning Implication
RequestSequence: 1 or higher Interactive authentication User was challenged and responded
RequestSequence: 0 Token-based authentication No user interaction required

AuthenticationDetails Array Patterns

Interactive Pattern:

  • Array contains authentication method (e.g., "Passkey (device-bound)") with RequestSequence > 0
  • Followed by "Previously satisfied" entry

Token Reuse Pattern:

  • Array contains ONLY "Previously satisfied" entries
  • Shows "MFA requirement satisfied by claim in the token"

authenticationStepDateTime Correlation

  • If authenticationStepDateTime references a time when NO interactive auth occurred, it indicates token reuse
  • Cross-reference timestamps with events that have RequestSequence > 0 to trace token origin

IP Enrichment Data Structure (PRIMARY EVIDENCE SOURCE)

CRITICAL: The investigation JSON contains a comprehensive ip_enrichment array with authoritative detection flags.

Always reference this data FIRST before making VPN/proxy/Tor determinations.

Example IP Enrichment Entry (Actual JSON Structure)

{
  "ip": "203.0.113.42",           // ← KEY: Use "ip" field, not "ip_address"
  "city": "Singapore",
  "region": "Singapore",
  "country": "SG",
  "org": "AS12345 Example Hosting Ltd",
  "asn": "AS12345",
  "timezone": "Asia/Singapore",
  "risk_level": "HIGH",           // ← Overall risk assessment (LOW/MEDIUM/HIGH)
  "assessment": "⚠️ Threat Intelligence Match: Commercial VPN Service Detected",
  "is_vpn": true,                 // ← PRIMARY VPN DETECTION FLAG (ipinfo.io detection)
  "is_proxy": false,              // ← PRIMARY PROXY DETECTION FLAG
  "is_tor": false,                // ← PRIMARY TOR DETECTION FLAG
  "abuse_confidence_score": 0,    // ← AbuseIPDB score 0-100 (0=clean, 75+=high risk)
  "total_reports": 2,             // ← Number of abuse reports in AbuseIPDB
  "is_whitelisted": false,
  "threat_description": "Commercial VPN Service: Known Anonymization Infrastructure",
  "anomaly_type": "NewInteractiveIP",
  "first_seen": "2025-10-16",     // ← First sign-in from this IP (date string)
  "last_seen": "2025-10-16",      // ← Last sign-in from this IP (date string)
  "hit_count": 5,                  // ← Number of anomaly detectio
Полный SKILL.md на GitHub

Установить authentication-tracing в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл authentication-tracing?

Use this skill when asked to trace authentication flows, analyze SessionId chains, investigate token reuse vs interactive MFA, or assess geographic anomalies in sign-ins. Triggers on keywords like "trace authentication", "trace back to interactive MFA", "SessionId analysis", "token reuse", "geographic anomaly", "impossible travel", or when investigating suspicious sign-in locations. This skill provides forensic analysis of Entra ID authentication chains to distinguish legitimate activity from credential/token theft.

Как установить скилл authentication-tracing?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл authentication-tracing запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить authentication-tracing с