mirror of
https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git
synced 2026-07-18 21:49:40 +03:00
Complete folder anatomy for all 649 cybersecurity skills + update LICENSE to Mahipal
- Add scripts/agent.py and references/api-reference.md to all remaining skills - Update all 648 LICENSE files: copyright now reads 'Mahipal' - Add implementing-security-monitoring-with-datadog (new skill with full anatomy) - All 649 skills now have: SKILL.md, LICENSE, scripts/agent.py, references/api-reference.md
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
# API Reference — Performing Kerberoasting Attack
|
||||
|
||||
## Libraries Used
|
||||
- **subprocess**: Execute ldapsearch, PowerShell, Impacket GetUserSPNs, wevtutil
|
||||
- **python-evtx**: Parse Windows Security EVTX for Event ID 4769
|
||||
- **xml.etree.ElementTree**: Parse EVTX XML event data
|
||||
- **impacket** (external): GetUserSPNs.py for TGS ticket requests
|
||||
|
||||
## CLI Interface
|
||||
```
|
||||
python agent.py enum --domain corp.example.com
|
||||
python agent.py roast --domain corp.example.com [--user svc_account]
|
||||
python agent.py analyze --file kerberoast_hashes.txt
|
||||
python agent.py detect [--evtx security.evtx]
|
||||
```
|
||||
|
||||
## Core Functions
|
||||
|
||||
### `enumerate_spn_accounts(domain)` — Find SPN-enabled accounts
|
||||
LDAP query for `(servicePrincipalName=*)`. Falls back to PowerShell Get-ADUser.
|
||||
Identifies high-value targets with admin group membership.
|
||||
|
||||
### `request_tgs_tickets(domain, username)` — Execute Kerberoasting
|
||||
Uses Impacket GetUserSPNs with `-request` flag. Outputs $krb5tgs$ hashes.
|
||||
|
||||
### `analyze_kerberoast_hashes(hash_file)` — Assess hash crackability
|
||||
Categorizes by encryption type: RC4 (etype 23, crackable) vs AES (etype 17/18).
|
||||
|
||||
### `detect_kerberoasting(evtx_file)` — Detect attack via Event ID 4769
|
||||
Flags TGS requests with RC4 encryption (0x17) as suspicious Kerberoasting indicators.
|
||||
|
||||
## Encryption Types
|
||||
| Etype | Algorithm | Crackability |
|
||||
|-------|-----------|-------------|
|
||||
| 0x17 (23) | RC4-HMAC | HIGH — fast offline cracking |
|
||||
| 0x11 (17) | AES128 | LOW — computationally expensive |
|
||||
| 0x12 (18) | AES256 | LOW — computationally expensive |
|
||||
|
||||
## Dependencies
|
||||
```
|
||||
pip install impacket python-evtx
|
||||
```
|
||||
System: ldapsearch (optional), PowerShell with AD module (Windows)
|
||||
Reference in New Issue
Block a user