Przejdź do treści
Biblioteka skilli
Bezpieczeństwo · Analiza

dfir

/dfir

Analizuje dowody cyfrowe i incydenty: logi zdarzeń Windows, pliki PCAP, artefakty systemu plików oraz korelację osi czasu.

Repozytorium
communitytools ↗
Licencja
MIT
Ostatnia zmiana repozytorium
29.07.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
34
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
1
Przestarzałość

Brak sygnałów. Repozytorium zmienione 29.07.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Analizuje dowody cyfrowe i incydenty: logi zdarzeń Windows, pliki PCAP, artefakty systemu plików oraz korelację osi czasu.

Oryginalny opis (EN)

Digital forensics and incident response - Windows event log analysis, PCAP forensics, filesystem artifact analysis, AD attack detection, and timeline correlation. Use when investigating security incidents, analyzing Sherlocks, or performing threat hunting on provided evidence files.

Jak działa

  1. Techniques
  2. Workflow
  3. Tools
  4. Quick Reference: Key Event IDs
  5. Reference
  6. Critical Rules
Sekcje z nagłówków SKILL.md, w oryginale · 78 linii, 833 słów
Podgląd SKILL.md
---
name: dfir
description: Digital forensics and incident response - Windows event log analysis, PCAP forensics, filesystem artifact analysis, AD attack detection, and timeline correlation. Use when investigating security incidents, analyzing Sherlocks, or performing threat hunting on provided evidence files.
---

# DFIR

Investigate security incidents by analyzing event logs, network captures, and filesystem artifacts. Detect and reconstruct AD attack chains.

## Techniques

| Domain | Key Capabilities |
|--------|-----------------|
| **Windows Event Logs** | EVTX parsing, Event ID correlation, logon tracking, privilege enumeration |
| **Network Forensics** | PCAP analysis, NTLM extraction, LLMNR/NBT-NS poisoning detection, relay identification |
| **Filesystem Forensics** | MFT parsing, Prefetch analysis, VSS artifact recovery, Linux persistence, timeline reconstruction |
| **AD Attack Detection** | Kerberoasting, AS-REP roasting, NTDS dump, NTLM relay, credential theft |
| **Memory Forensics** | Volatility3 analysis: process trees, file extraction, SID resolution, command lines |
| **Hash Analysis** | NTLMv2 hash construction from pcap, offline cracking validation |

## Workflow

1. **Inventory evidence** — List all artifacts (EVTX, pcap, MFT, prefetch, registry)
2. **Parse structured data** — EVTX with `python-evtx`, pcap with `tshark`, MFT with `analyzeMFT`
3. **Identify attack indicators** — Key Event IDs, suspicious traffic patterns, anomalous files
4. **Correlate across sources** — Match timestamps, IPs, LogonIDs, and process IDs across artifacts
5. **Reconstruct timeline** — Build chronological attack chain with UTC timestamps
6. **Answer investigative questions** — Map findings to specific incident response queries

## Tools

```bash
pip install python-evtx windowsprefetch analyzeMFT
brew install wireshark p7zip hashcat
```

| Tool | Purpose |
|------|---------|
| `python-evtx` | Parse Windows .evtx files |
| `tshark` | CLI pcap analysis (NTLM, LLMNR, SMB filters) |
| `analyzeMFT` | Parse NTFS Master File Table |
| `windowsprefetch` | Parse Windows prefetch files (Windows host only) |
| `hashcat` | Hash cracking (NTLMv2 mode 5600, Kerberos mode 13100/18200) |
| `volatility3` | Memory dump analysis (pstree, filescan, dumpfiles, getsid, cmdline) |
| `7z` | Extract AES-encrypted evidence ZIPs |

## Quick Reference: Key Event IDs

| Event ID | Log | Indicates |
|----------|-----|-----------|
| 4624 | Security | Successful logon (check Type + IP mismatch) |
| 4768 | Security | TGT request (PreAuthType=0 → AS-REP roast) |
| 4769 | Security | TGS request (EncType=0x17 → Kerberoast) |
| 4799 | Security | Group membership enumerated (VSS/ntdsutil) |
| 5140 | Security | Network share accessed |
| 7036 | System | Service state change (VSS start → NTDS dump) |
| 325/326/327 | Application | ESENT database create/detach/close |
| 330 | Application | ESENT database file info |
| 3006/3008 | DNS Client Events | DNS query sent/response received (malicious domain lookups) |
| 106/200 | Task Scheduler | Scheduled task created/executed (persistence via schtasks) |

## Reference

- [windows-event-analysis.md](reference/windows-event-analysis.md) — EVTX parsing patterns and AD attack detection
- [network-forensics.md](reference/network-forensics.md) — PCAP analysis for NTLM, LLMNR, relay detection
- [filesystem-forensics.md](reference/filesystem-forensics.md) — MFT, Prefetch, VSS artifact analysis

## Critical Rules

- **Answer formatting**: When forensics questions ask for "the value" of a code variable (e.g., PHP `$shell`), include language-specific string delimiters and terminators (e.g., `'value';` not just `value`). Check placeholder hints for format clues.
- For malicious Office OOXML, inspect more than VBA streams: attackers may split staged Base64 or script content across drawing/object descriptors, shared strings, named cells, and hidden UserForm control captions/values.
- When a VBA byte array starts with an `fnstenv`/`pop` decoder stub, convert signed integers to raw bytes and test a Shikata-style rolling XOR decode before treating the shellcode as corrupt.
- For legacy Excel BIFF/XLS malware, inspect `BOUNDSHEET` records for `hidden` or `very hidden` worksheets and specifically check for Excel 4.0 macro sheets; changing the hidden-state byte or parsing the sheet directly can expose staged strings and flag fragments that never appear in normal workbook views.
- For webshell traffic in PCAPs, recover static keys from the uploaded server-side code first, then decrypt operator tasking before chasing later payloads; if a dropped XOR key file is referenced by a shellcode stage, verify where the encoded region actually starts instead of XORing the whole blob from offset zero.
- **PowerShell stager pattern** (in-place reverse + base64 + IEX): when a stage-1 PS script does `[array]::Reverse($charArr)` followed by `FromBase64String("$charArr")`, the `-join` line is often a red herring — string interpolation of a char array uses `$OFS=' '` and `FromBase64String` tolerates whitespace. Reverse the original base64 string (not the joined-with-spaces version) and decode to get stage 2.
- **Multi-fragment flag exfil**: forensic challenges may split a flag across (a) a hardcoded `$partN` in the malware that is *defined but never referenced* (often base64'd), and (b) a field of the captured C2 POST body. Decrypt the body with the static AES key from the leaked stage-2 source (PowerShell `Encrypt-String` puts `IV‖ciphertext` then base64-wraps); inspect every JSON field for further base64.
- All timestamps in **UTC** — convert from local time zones in pcap/logs. **AM/PM trap**: 12:XX AM = 00:XX (midnight), 12:XX PM = 12:XX (noon). 12 AM ≠ 01:00.
- Parse EVTX with `python-evtx` (XML namespace: `http://schemas.microsoft.com/win/2004/08/events/event`)
- Use `tshark` for pcap (not scapy for large files) — filter with `-Y` display filters
- Decompress Win10 prefetch (MAM\x04 header) with `dissect.util.compression.lzxpress_huffman`
- For AES-encrypted ZIPs (compression method 99), use `7z` not `unzip`
Pliki w paczce (34)
  • SKILL.md 6 KB
  • reference/INDEX.md 5 KB
  • reference/c2-traffic-decryption.md 6 KB
  • reference/dfir-principles.md 5 KB
  • reference/filesystem-forensics.md 6 KB
  • reference/network-forensics.md 6 KB
  • reference/windows-event-analysis.md 4 KB
  • reference/scenarios/ad-attack-detection/dcsync-detection.md 4 KB
  • reference/scenarios/ad-attack-detection/golden-ticket-detection.md 4 KB
  • reference/scenarios/ad-attack-detection/kerberos-roast-detection.md 4 KB
  • reference/scenarios/ad-attack-detection/lateral-movement-indicators.md 4 KB
  • reference/scenarios/filesystem/lnk-file-analysis.md 3 KB
  • reference/scenarios/filesystem/ntfs-mft-analysis.md 4 KB
  • reference/scenarios/filesystem/prefetch-analysis.md 3 KB
  • reference/scenarios/filesystem/shellbags-userassist.md 3 KB
  • reference/scenarios/filesystem/timeline-creation.md 3 KB
  • reference/scenarios/log-analysis/linux-auth-logs.md 3 KB
  • reference/scenarios/log-analysis/splunk-spl-queries.md 4 KB
  • reference/scenarios/log-analysis/sysmon-rules.md 3 KB
  • reference/scenarios/log-analysis/webserver-logs.md 4 KB
  • reference/scenarios/log-analysis/windows-event-logs.md 4 KB
  • reference/scenarios/malware/cobalt-strike-beacon-config-extraction.md 9 KB
  • reference/scenarios/malware/malicious-browser-extension-exfil.md 4 KB
  • reference/scenarios/memory/injected-code-detection.md 3 KB
  • reference/scenarios/memory/memory-credential-extraction.md 3 KB
  • reference/scenarios/memory/network-artifacts-from-mem.md 3 KB
  • reference/scenarios/memory/nimplant-minidump-task-recovery.md 7 KB
  • reference/scenarios/memory/volatility-process-analysis.md 3 KB
  • reference/scenarios/pcap/c2-traffic-decryption.md 6 KB
  • reference/scenarios/pcap/credential-extraction.md 4 KB
  • reference/scenarios/pcap/dns-tunneling-detection.md 5 KB
  • reference/scenarios/pcap/http-objects-export.md 3 KB
  • reference/scenarios/pcap/tcp-stream-extraction.md 3 KB
  • reference/scenarios/pcap/tls-decryption.md 3 KB

Wersje

W bazie nie ma innych skilli o nazwie dfir.

Migawka bazy z 13.11.2026 · wersja paczki 96c6ca748577 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 1 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100digital-forensics
    Wspiera autoryzowaną analizę śledczą: zrzuty pamięci, osie czasu dysków, ruch PCAP, triaż artefaktów i zabezpieczanie dowodów w reakcji na incydenty.
  • 98performing-endpoint-forensics-investigation
    Prowadzi śledztwo na zainfekowanym endpoincie: pozyskuje pamięć i obraz dysku, analizuje artefakty i odtwarza oś czasu.
  • 100dfir-readiness
    Przygotowuje gotowość DFIR od strony inżynierii bezpieczeństwa: obsługa dowodów incydentu, oczekiwania łańcucha dowodowego, gotowość IOC i przekazanie do forensics-complete, bez zbierania dowodów.
  • 100windows-event-log-forensics-4624-4688-4720
    Analizuje kluczowe zdarzenia bezpieczeństwa Windows: logowania 4624, tworzenie procesów 4688 i tworzenie kont 4720.
  • 98analyzing-windows-lnk-files-for-artifacts
    Parsuje skróty LNK w Windows, wyciąga ścieżki, znaczniki czasu i identyfikatory woluminów do budowy osi czasu w DFIR.
  • 100digital-forensics-analyst
    Prowadzi przez informatykę śledczą incydentów: pozyskiwanie dowodów i łańcuch dowodowy, analiza artefaktów z dysków, pamięci i chmury, korelacja osi czasu oraz raporty.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.