mirror of
https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git
synced 2026-08-28 04:09:40 +03:00
Initial commit - 611 cybersecurity skills across all subdomains
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
# Standards and References - T1003 Credential Dumping Detection
|
||||
|
||||
## MITRE ATT&CK Credential Dumping Sub-Techniques
|
||||
|
||||
| Sub-Technique | Target | Common Tools | Primary Detection |
|
||||
|--------------|--------|-------------|-------------------|
|
||||
| T1003.001 | LSASS Memory | Mimikatz, ProcDump, comsvcs.dll | Sysmon Event 10, EDR LSASS alerts |
|
||||
| T1003.002 | SAM Database | reg save, Mimikatz | Registry access auditing |
|
||||
| T1003.003 | NTDS.dit | ntdsutil, vssadmin, secretsdump | VSS creation + file access |
|
||||
| T1003.004 | LSA Secrets | Mimikatz, reg save | Registry access to SECURITY hive |
|
||||
| T1003.005 | Cached Domain Creds | Mimikatz, cachedump | SECURITY hive access |
|
||||
| T1003.006 | DCSync | Mimikatz, Impacket | Event 4662 replication GUIDs |
|
||||
|
||||
## LSASS Access Masks for Credential Dumping
|
||||
|
||||
| Access Mask | Meaning | Risk Level |
|
||||
|-------------|---------|-----------|
|
||||
| 0x1FFFFF | PROCESS_ALL_ACCESS | Critical |
|
||||
| 0x1F3FFF | Near-full access | Critical |
|
||||
| 0x143A | Mimikatz typical access | Critical |
|
||||
| 0x1F0FFF | Full minus synchronize | Critical |
|
||||
| 0x0040 | PROCESS_VM_READ | High |
|
||||
| 0x1010 | PROCESS_VM_READ + QUERY_INFO | High |
|
||||
|
||||
## Protection Controls
|
||||
|
||||
| Control | Description | Effectiveness |
|
||||
|---------|-------------|---------------|
|
||||
| Credential Guard | Virtualizes LSASS secrets | High -- prevents plaintext extraction |
|
||||
| RunAsPPL | Protected Process Light for LSASS | Medium -- blocks unsigned callers |
|
||||
| ASR Rules | Attack Surface Reduction for LSASS | Medium -- blocks common tools |
|
||||
| LSASS SACL | Audit logging for LSASS access | Detection only |
|
||||
| Windows Defender Credential Guard | Hardware-backed isolation | High |
|
||||
|
||||
## Known Credential Dumping Tools
|
||||
|
||||
| Tool | Method | Detection Signature |
|
||||
|------|--------|-------------------|
|
||||
| Mimikatz | Direct LSASS read via API | sekurlsa::, lsadump:: |
|
||||
| ProcDump | LSASS dump via MiniDumpWriteDump | procdump -ma lsass |
|
||||
| comsvcs.dll | Built-in DLL MiniDump function | comsvcs.dll,MiniDump |
|
||||
| Task Manager | GUI-based LSASS dump | taskmgr.exe accessing lsass |
|
||||
| ntdsutil | IFM creation for NTDS | "ac i ntds" "ifm" |
|
||||
| secretsdump.py | Remote NTDS extraction | Impacket network activity |
|
||||
| LaZagne | Multi-source credential harvesting | lazagne.exe all |
|
||||
@@ -0,0 +1,70 @@
|
||||
# Detailed Hunting Workflow - T1003 Credential Dumping
|
||||
|
||||
## Phase 1: LSASS Memory Access Detection
|
||||
|
||||
### Step 1.1 - Sysmon Event 10 Analysis
|
||||
```spl
|
||||
index=sysmon EventCode=10
|
||||
| where match(TargetImage, "(?i)lsass\.exe$")
|
||||
| where NOT match(SourceImage, "(?i)(csrss|lsass|svchost|MsMpEng|WmiPrvSE|SecurityHealthService|smartscreen)\.exe$")
|
||||
| stats count values(GrantedAccess) as access_masks by SourceImage Computer
|
||||
| sort -count
|
||||
```
|
||||
|
||||
### Step 1.2 - EDR LSASS Alerts
|
||||
```kql
|
||||
AlertInfo
|
||||
| where Title has_any ("LSASS", "credential", "Mimikatz")
|
||||
| join AlertEvidence on AlertId
|
||||
| project Timestamp, Title, DeviceName, FileName, ProcessCommandLine
|
||||
```
|
||||
|
||||
## Phase 2: Credential Tool Detection
|
||||
|
||||
### Step 2.1 - Known Tool Command Lines
|
||||
```spl
|
||||
index=sysmon EventCode=1
|
||||
| where match(CommandLine, "(?i)(sekurlsa|lsadump|kerberos::list|crypto::certificates|privilege::debug)")
|
||||
OR match(OriginalFileName, "(?i)mimikatz")
|
||||
OR (match(CommandLine, "(?i)procdump") AND match(CommandLine, "(?i)lsass"))
|
||||
OR match(CommandLine, "(?i)comsvcs.*MiniDump")
|
||||
| table _time Computer User Image CommandLine Hashes
|
||||
```
|
||||
|
||||
### Step 2.2 - NTDS.dit Extraction
|
||||
```spl
|
||||
index=sysmon EventCode=1
|
||||
| where match(CommandLine, "(?i)(vssadmin.*create\s+shadow|wmic\s+shadowcopy|ntdsutil.*ifm|esentutl.*ntds)")
|
||||
| table _time Computer User CommandLine ParentImage
|
||||
```
|
||||
|
||||
### Step 2.3 - Registry Hive Export
|
||||
```spl
|
||||
index=sysmon EventCode=1
|
||||
| where match(CommandLine, "(?i)reg\s+(save|export)\s+hklm\\\\(sam|security|system)")
|
||||
| table _time Computer User CommandLine
|
||||
```
|
||||
|
||||
## Phase 3: Post-Dump Lateral Movement
|
||||
|
||||
### Step 3.1 - Pass-the-Hash Detection
|
||||
```spl
|
||||
index=wineventlog EventCode=4624 LogonType=9
|
||||
| where AuthenticationPackageName="Negotiate"
|
||||
| table _time TargetUserName IpAddress WorkstationName LogonProcessName
|
||||
```
|
||||
|
||||
### Step 3.2 - Suspicious Remote Logons After Dump
|
||||
```spl
|
||||
index=wineventlog EventCode=4624 LogonType=3
|
||||
| where _time > [credential_dump_timestamp]
|
||||
| stats count by TargetUserName IpAddress WorkstationName
|
||||
| sort -count
|
||||
```
|
||||
|
||||
## Phase 4: Response Actions
|
||||
1. Isolate affected endpoints
|
||||
2. Reset ALL credentials that were potentially on compromised systems
|
||||
3. Rotate KRBTGT if domain-level compromise suspected
|
||||
4. Enable Credential Guard and RunAsPPL
|
||||
5. Deploy ASR rules for LSASS protection
|
||||
Reference in New Issue
Block a user