Skip to content

meltedinhex/analyst-ai-pack / skills/hunting-anomalous-authentication-patterns

hunting-anomalous-authentication-patterns

Verified

Hunts 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.

FileKindSize
LICENSEother340 B
SKILL.mdskill md2.8 KB
references/api-reference.mdmarkdown1.3 KB
scripts/analyst.pyscript3.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
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall