SkillsGrove
SkillsGrove/문서 작업/meltedinhex/analyst-ai-pack/analyzing-excel-4-macro-malware

analyzing-excel-4-macro-malware

설치

$npx skills add https://github.com/meltedinhex/analyst-ai-pack --skill analyzing-excel-4-macro-malware
$git clone --depth 1 https://github.com/meltedinhex/analyst-ai-pack.git /tmp/analyst-ai-pack && mkdir -p ~/.claude/skills && cp -r /tmp/analyst-ai-pack/skills/analyzing-excel-4-macro-malware ~/.claude/skills/analyzing-excel-4-macro-malware
이 Agent Skill을 설치해 주세요: https://github.com/meltedinhex/analyst-ai-pack/tree/629b765c96ed877eaee3585c834f29026835044d/skills/analyzing-excel-4-macro-malware — 먼저 SKILL.md와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

원문 설명 · Apache-2.0Analyzes 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, or deobfuscate legacy spreadsheet macros.
아래 SKILL.md는 meltedinhex/analyst-ai-pack(커밋 629b765)에서 Apache-2.0 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright the AnalystAIPack contributors.. 라이선스: skills/analyzing-excel-4-macro-malware/LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

Analyzing Excel 4.0 Macro Malware

When to Use

  • You have an extracted Excel 4.0 (XLM) macro sheet (e.g., from a .xls/.xlsm dumped 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: oletools to 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

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

  • 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 Hidden that simple viewers miss.
  • Confusing benign legacy spreadsheets that legitimately use XLM.

References

라이선스 전문 보기(Apache-2.0)
Apache License 2.0 — see the repository root LICENSE file for the full text.

Copyright the AnalystAIPack contributors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0