Triage suspicious login

From dandye/ai-runbooks · View interactive version

Triage suspicious login is an AI agent skill from the GitHub repository dandye/ai-runbooks. Triage suspicious login alerts like impossible travel, untrusted location, or multiple failures. Use when investigating authentication anomalies. Analyzes user history, source IP reputation, login patterns, and determines if escalation is needed.

How to use this skill

Skill file

Suspicious Login Triage Skill

Guide initial triage of suspicious login alerts (impossible travel, untrusted location, multiple failed logins) for Tier 1 SOC Analysts.

Inputs

Workflow

Step 1: Get Case Context

secops-soar.get_case_full_details(case_id=CASE_ID)

Step 2: Extract Key Entities

secops-soar.list_events_by_alert(case_id=CASE_ID, alert_id=ALERT_ID)

Parse events to extract:

Step 3: User Context (SIEM)

secops-mcp.lookup_entity(entity_value=USER_ID)

Record: Recent activity, first/last seen, related alerts.

Step 4: Source IP Enrichment

Use /enrich-ioc with IOC_TYPE="IP Address":

Step 5: Hostname Context (if available)

secops-mcp.lookup_entity(entity_value=HOSTNAME)

Step 6: Recent Login Activity

Search for login patterns over the last 96 hours:

secops-mcp.search_security_events(
    text='metadata.event_type IN ("USER_LOGIN", "AUTH_ATTEMPT") AND principal.user.userid = "USER_ID"',
    hours_back=96
)

Analyze for:

Step 7: Check Related Cases

Use /find-relevant-case with search terms: [USER_ID, SOURCE_IP, HOSTNAME]

Step 8: (Optional) Identity Provider Check

If IDP tools available (e.g., Okta):

Step 9: Synthesize & Document

Use /document-in-case with findings summary:

Suspicious Login Triage for USER_ID from SOURCE_IP:
- User SIEM Summary: [...]
- Source IP GTI: [reputation, geo]
- Login Pattern: [normal/anomalous]
- Related Cases: [...]
- Recommendation: [Close as FP | Escalate to Tier 2]

Required Outputs

After completing this skill, you MUST report these outputs:

| Output | Description |

|--------|-------------|

| LOGIN_VERDICT | Assessment: legitimate, suspicious, or malicious |

| ANOMALY_INDICATORS | What made the login suspicious (impossible travel, new device, etc.) |

| RELATED_ACTIVITY | Other suspicious activity from user or source IP |

| RISK_SCORE | Numerical risk assessment (0-100) based on findings |

Decision Matrix

| Finding | Recommendation |

|---------|----------------|

| Known VPN/corporate IP + normal pattern | Close as FP |

| User confirmed travel + MFA used | Close as Benign TP |

| Malicious IP reputation | Escalate |

| Impossible travel + no MFA | Escalate urgently |

| Multiple failures then success from new IP | Escalate |

| Pattern matches user's normal behavior | Close as FP |

Key Patterns to Detect

Impossible Travel:

Credential Stuffing:

Account Takeover:

Lateral Movement:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.