Analyzing excel 4 macro malware

From meltedinhex/analyst-ai-pack · View interactive version

Analyzing excel 4 macro malware is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Analyzes legacy Excel 4.0 (XLM) macro malware by parsing extracted macro-sheet formulas for auto-executing names, obfuscation (FORMULA.FILL, CHAR concatenation), and download or execution primitives (EXEC, CALL, REGISTER). Activates for requests to analyze XLM macros, examine Excel 4.0 macro sheets,

How to use this skill

Skill file

Analyzing Excel 4.0 Macro Malware

When to Use

oletools/XLMMacroDeobfuscator) and need to find auto-run cells and execution primitives.

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

Safety & Handling

Workflow

Step 1: Find auto-executing entry points

python scripts/analyst.py analyze macros.txt

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

Pitfalls

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.