meltedinhex/analyst-ai-pack/analyzing-excel-4-macro-malware
Claude Code and agent skill by meltedinhex/analyst-ai-pack
- community
Checking that the SKILL.md file is still in the repository.
'Analyzes legacy Excel 4.0 (XLM) macro malware by parsing extracted macro-sheet
Install
npx vskill@latest install meltedinhex/analyst-ai-pack/analyzing-excel-4-macro-malwareSKILL.md
The same SKILL.md was published earlier as meltedinhex/analyst-ai-pack/analyzing-excel-4-macro-malware.
Analyzing Excel 4.0 Macro Malware
When to Use
- You have an extracted Excel 4.0 (XLM) macro sheet (e.g., from a
.xls/.xlsmdumped with
oletools/XLMMacroDeobfuscator) and need to find auto-run cells and execution primitives.
- You are triaging maldocs that hide logic in legacy macro sheets rather than VBA.
Do not use Excel to open the document to "see" the macro — opening triggers the auto-run cells. Work from the extracted formula text statically.
Prerequisites
- The extracted XLM formula text (cell address → formula). Optional:
oletoolsto extract it.
Safety & Handling
- Never open the workbook in Excel; analyze the extracted formulas inertly. Defang URLs.
Workflow
Step 1: Find auto-executing entry points
Flags defined-name triggers (Auto_Open, Auto_Close) and the cells they point to, plus =HALT()/=RETURN() flow markers.
Step 2: Identify execution and download primitives
Detects EXEC(, CALL(, REGISTER( (Win32 imports), and URLDownload-style CALL patterns that fetch and run a payload.
Step 3: Unwind obfuscation
Surfaces CHAR()/& string-building, FORMULA.FILL/FORMULA self-writing, and base/MID slicing used to hide strings; reconstructs concatenated literals where possible.
Step 4: Extract IOCs
Pull URLs/paths and defang them; record the execution method (regsvr32, rundll32, mshta).
Validation
- Auto-run entry cells are identified, not just the presence of macros.
- Execution primitives (EXEC/CALL/REGISTER) are reported with their arguments.
- Reconstructed strings and URLs are defanged.
Pitfalls
- Heavily obfuscated sheets that self-write cells at runtime — static reconstruction is partial.
- Macro sheets hidden as
Very Hiddenthat simple viewers miss. - Confusing benign legacy spreadsheets that legitimately use XLM.
References
- See `references/api-reference.md` for the analyzer.
- ATT&CK T1059.005 and the Excel 4.0 macro reference (linked in frontmatter).
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/analyzing-excel-4-macro-malware/SKILL.md
Popularity
- Repository stars
- 21
- Repository forks
- 5
- 7-day trend score
- 15
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/meltedinhex/analyst-ai-pack/analyzing-excel-4-macro-malware)