Tooluck logoTooluck
SKILL.md

analyzing-macro-malware-in-office-documents

Agent skill frommukul975/Anthropic-Cybersecurity-Skills

'Analyzes malicious VBA macros embedded in Microsoft Office documents

How to install analyzing-macro-malware-in-office-documents

install analyzing-macro-malware-in-office-documents
# install the Anthropic-Cybersecurity-Skills pack with the skills CLI
npx skills add mukul975/Anthropic-Cybersecurity-Skills

# or add only this skill to Claude Code: copy the folder

skills/analyzing-macro-malware-in-office-documents/

# into

~/.claude/skills/analyzing-macro-malware-in-office-documents/ (all projects)

.claude/skills/analyzing-macro-malware-in-office-documents/ (one project)

skills/analyzing-macro-malware-in-office-documents/SKILL.md

Apache-2.0Full file
1# Analyzing Macro Malware in Office Documents
2
3## When to Use
4
5- A suspicious Office document (.doc, .docm, .xls, .xlsm, .ppt) has been flagged by email security
6- Investigating phishing campaigns that deliver weaponized Office documents
7- Extracting VBA macro code to identify the payload download URL and execution method
8- Analyzing obfuscated VBA code to understand the full attack chain
9- Determining if a document uses DDE, ActiveX, or remote template injection instead of macros
10
11**Do not use** for analyzing non-macro Office threats (DDE, remote template injection); while this skill covers detection of these, specialized analysis may be needed.
12
13## Prerequisites
14
15- Python 3.8+ with oletools installed (`pip install oletools`)
16- oledump.py from Didier Stevens (https://blog.didierstevens.com/programs/oledump-py/)
17- Isolated analysis VM without Microsoft Office installed (prevents accidental execution)
18- XLMDeobfuscator for Excel 4.0 macro analysis (pip install xlmdeobfuscator)
19- LibreOffice for safe document rendering (does not execute VBA macros by default)
20
21## Workflow
22
23### Step 1: Initial Document Triage
24
25Determine if the document contains macros or other active content:
26
27```bash
28# Quick triage with olevba
29olevba suspect.docm
30
31# Check for OLE streams and macros
32oleid suspect.docm
33
34# Output indicators:
35# VBA Macros: True/False
36# XLM Macros: True/False
37# External Relationships: True/False (remote template)
38# ObjectPool: True/False (embedded objects)
39…

Excerpt shown under the repository's Apache-2.0 license.

More skills in Anthropic-Cybersecurity-Skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates