office-document-analysis
/office-document-analysis
Analizuje podejrzane dokumenty i kontenery, np. makra Office, PDF z JavaScriptem i pliki LNK, przy segregacji załączników phishingowych.
- Autor
- kaandgnsh ↗
- Repozytorium
- Claude-Blue ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 01.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 4
Brak sygnałów. Repozytorium zmienione 01.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Analizuje podejrzane dokumenty i kontenery, np. makra Office, PDF z JavaScriptem i pliki LNK, przy segregacji załączników phishingowych.
Oryginalny opis (EN)
Analyze malicious documents and container files — Office macros (VBA, XLM 4.0), RTF/OLE exploits, remote templates, PDF JavaScript and launch actions, OneNote, LNK, ISO/IMG/ZIP containers, HTML smuggling — with oletools, oledump, pdfid/pdf-parser and LNK parsers. Use when triaging phishing attachments or documents that spawned suspicious processes.
Jak działa
- Office (oletools, Didier Stevens tools)
- Containers & shortcuts (post-macro-blocking era)
- Output
- Safety
- Related skills
- References
Podgląd SKILL.md
--- name: office-document-analysis description: Analyze malicious documents and container files — Office macros (VBA, XLM 4.0), RTF/OLE exploits, remote templates, PDF JavaScript and launch actions, OneNote, LNK, ISO/IMG/ZIP containers, HTML smuggling — with oletools, oledump, pdfid/pdf-parser and LNK parsers. Use when triaging phishing attachments or documents that spawned suspicious processes. license: MIT metadata: category: malware-analysis version: "2.0.0" verification: documented --- # Malicious Document Analysis ## Office (oletools, Didier Stevens tools) ```sh oleid invoice.docm # quick risk indicators (macros, encryption, external rels) olevba -a invoice.docm # analysis summary: AutoExec, Suspicious keywords, IOCs olevba --deobf --decode invoice.docm # attempt deobfuscation of strings mraptor invoice.docm # macro raptor: auto-exec + write/exec heuristics oledump.py invoice.doc # list streams; 'M' marks macros oledump.py -s 8 -v invoice.doc # dump stream 8 decompressed VBA rtfobj suspicious.rtf # embedded OLE objects in RTF (equation editor exploits) msoffcrypto-tool -p VelvetSweatshop enc.xls dec.xls # default-password "encrypted" Excel ``` OOXML (`.docx/.xlsx`) are ZIPs: `unzip -l file.docx`; check `word/_rels/settings.xml.rels` for remote template injection (`Target="http..."`, `TargetMode="External"`). XLM 4.0 macros: `XLMMacroDeobfuscator --file sample.xlsm`. ## PDF ```sh pdfid.py doc.pdf # counts of /JS, /JavaScript, /OpenAction, /AA, /Launch, /EmbeddedFile, /URI pdf-parser.py -s /JavaScript doc.pdf ; pdf-parser.py -o 12 -f -d obj12.bin doc.pdf ``` Most PDF phish today are simply links/QR codes to credential pages — extract `/URI` targets. ## Containers & shortcuts (post-macro-blocking era) - ISO/IMG/VHD/ZIP/7z: extract with `7z x` (MOTW may not propagate — the reason attackers use them). - LNK: `lnkparse shortcut.lnk` / `LECmd.exe -f shortcut.lnk` → target, arguments (often `cmd /c` or `powershell -w hidden ...`), working dir, machine ID of creator. - OneNote (`.one`): embedded files; `onedump.py file.one`. - HTML attachments: look for `atob(`, `Blob`, `msSaveOrOpenBlob`, `<a download>` (HTML smuggling) or inline credential forms posting to external URLs. - MSI/MSIX, `.url`, `.search-ms`, `.library-ms`, `.chm` (`hh.exe`) are other common loaders. ## Output `File | sha256 | Type | Technique (macro/template/exploit/smuggling/LNK) | Payload URLs/commands | Dropped files | ATT&CK | Detection ideas` ## Safety Analyze in an isolated VM. Do not enable editing/content in Office on an analysis host connected to anything sensitive; prefer static tools. ## Related skills `phishing-triage`, `script-deobfuscation`, `dynamic-analysis`, `sample-intake` ## References - oletools: https://github.com/decalage2/oletools - Didier Stevens Suite (oledump, pdfid, pdf-parser): https://github.com/DidierStevens/DidierStevensSuite - XLMMacroDeobfuscator: https://github.com/DissectMalware/XLMMacroDeobfuscator - MITRE ATT&CK T1027.006 HTML Smuggling: https://attack.mitre.org/techniques/T1027/006/
Wersje
W bazie nie ma innych skilli o nazwie office-document-analysis.
Migawka bazy z 13.11.2026 · wersja paczki 65b0153339b1 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100analyze-suspicious-script-or-document
Dekoduje i analizuje podejrzane skrypty i aktywne dokumenty bez ich uruchamiania: shell, AppleScript, PowerShell, pliki Office, PDF, makra i ładunki etapowe. - 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. - 98analyzing-lnk-file-and-jump-list-artifacts
Analizuje skróty LNK i listy Jump List w Windows, by ustalić dostęp do plików i uruchomienia programów, także po usunięciu celu.