meltedinhex/analyst-ai-pack / skills/hunting-anomalous-authentication-patterns
hunting-anomalous-authentication-patterns
VerifiedHunts for anomalous authentication such as password spraying, brute force, and impossible-travel logons by aggregating Windows logon success/failure events per account and source over time. Activates for requests to hunt anomalous logons, detect password spraying or brute force, or find suspicious authentication patterns.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 340 B |
| SKILL.md | skill md | 2.8 KB |
| references/api-reference.md | markdown | 1.3 KB |
| scripts/analyst.py | script | 3.5 KB |
references/api-reference.md
View on GitHub# API Reference: Hunting Anomalous Authentication Patterns
## Overview
`scripts/analyst.py` aggregates Windows logon success (4624) and failure (4625) telemetry (CSV or
JSON-lines) to detect password spraying (one source vs many accounts), brute force (many failures
per account), and failure-then-success transitions. It parses telemetry only and executes nothing.
## Dependencies
| Package | Version | Purpose |
|---------|---------|---------|
| (stdlib) | — | csv, json, file IO |
## Core functions
### `hunt(path, spray_accounts=5, brute_failures=10)`
Returns spray sources, brute-force accounts, breakthrough accounts, and the thresholds used.
## Detection logic
- **Spray**: distinct accounts failed per source ≥ `spray_accounts`.
- **Brute force**: failures per account ≥ `brute_failures`.
- **Breakthrough**: ≥3 failures then a trailing success for an account.
## Usage
```bash
python scripts/analyst.py hunt logons.csv --spray-accounts 5 --brute-failures 10
```
## Sources
- MITRE ATT&CK T1110.003 Password Spraying — https://attack.mitre.org/techniques/T1110/003/
- Windows Security Event 4625/4624 — https://learn.microsoft.com/windows/security/threat-protection/auditing/event-4625
- Spray vs brute-force aggregation approach from public detection-engineering practice
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |