mirror of
https://github.com/SHOGGOTH-SECTOR/sica-fondt.git
synced 2026-08-01 08:30:20 +00:00
Place useful parts of the surrounding repos into sica-fondt by layer, per the
body model (Ada = membrane; brain/endocrine/capabilities/knowledge non-Ada):
- brain/ LLM reasoning + providers (dapr, hermes, MoMoA)
- capabilities/ REPRAG sidecars: hermes tools/skills, dapr tools, parallel
dispatch, A51 channels, and the OSINT cluster
- knowledge/ LORAG corpus: 754 cyber-skills, agency personas, secure-coding,
MITRE ATT&CK data
- reference/ defensive threat-reference (C3, shhbruh doc) + AdaYaml parser
License handling: AGPL sources (worldosint, advanced_evolution, mercury,
Reticulum) and GPL DeTTECT are SPEC-only clean-room/port descriptions — no
copyleft code copied. MIT/Apache/data parts copied as working trees.
Safety: shhbruh escape/persistence material and C3 covert-C2 kept as reference
only, not wired into the running organism. See CONSOLIDATION.md.
https://claude.ai/code/session_01UehUqEXXJJCsHoA4voCU5c
74 lines
2.2 KiB
Markdown
74 lines
2.2 KiB
Markdown
---
|
|
name: hunting-credential-stuffing-attacks
|
|
description: 'Detects credential stuffing attacks by analyzing authentication logs for login velocity anomalies, ASN diversity,
|
|
password spray patterns, and geographic distribution of failed logins. Uses statistical analysis on Splunk or raw log data.
|
|
Use when investigating account takeover campaigns or building detection rules for auth abuse.
|
|
|
|
'
|
|
domain: cybersecurity
|
|
subdomain: security-operations
|
|
tags:
|
|
- hunting
|
|
- credential
|
|
- stuffing
|
|
- attacks
|
|
version: '1.0'
|
|
author: mahipal
|
|
license: Apache-2.0
|
|
nist_csf:
|
|
- DE.CM-01
|
|
- RS.MA-01
|
|
- GV.OV-01
|
|
- DE.AE-02
|
|
---
|
|
|
|
# Hunting Credential Stuffing Attacks
|
|
|
|
|
|
## When to Use
|
|
|
|
- When investigating security incidents that require hunting credential stuffing attacks
|
|
- When building detection rules or threat hunting queries for this domain
|
|
- When SOC analysts need structured procedures for this analysis type
|
|
- When validating security monitoring coverage for related attack techniques
|
|
|
|
## Prerequisites
|
|
|
|
- Familiarity with security operations concepts and tools
|
|
- Access to a test or lab environment for safe execution
|
|
- Python 3.8+ with required dependencies installed
|
|
- Appropriate authorization for any testing activities
|
|
|
|
## Instructions
|
|
|
|
Analyze authentication logs to detect credential stuffing by identifying patterns
|
|
of distributed login failures, high IP diversity, and suspicious ASN distribution.
|
|
|
|
```python
|
|
import pandas as pd
|
|
from collections import Counter
|
|
|
|
# Load auth logs
|
|
df = pd.read_csv("auth_logs.csv", parse_dates=["timestamp"])
|
|
|
|
# Credential stuffing indicator: many IPs trying few accounts
|
|
ip_per_account = df[df["status"] == "failed"].groupby("username")["source_ip"].nunique()
|
|
accounts_under_attack = ip_per_account[ip_per_account > 50]
|
|
```
|
|
|
|
Key detection indicators:
|
|
1. High unique source IPs per failed username
|
|
2. Low success rate across many accounts (< 1%)
|
|
3. ASN concentration from cloud/proxy providers
|
|
4. Geographic impossibility (same account, distant locations)
|
|
5. User-agent uniformity across distributed IPs
|
|
|
|
## Examples
|
|
|
|
```python
|
|
# Password spray: one password tried across many accounts
|
|
spray = df[df["status"] == "failed"].groupby(["source_ip", "password_hash"]).agg(
|
|
accounts=("username", "nunique")).reset_index()
|
|
sprays = spray[spray["accounts"] > 10]
|
|
```
|