office-malware-analyzer

Analyze Office documents for macros, embedded objects, and CVE indicators.

1|1|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/chenchunrun/onyx-soc --skill office-malware-analyzer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: office-malware-analyzer
Source: https://github.com/chenchunrun/onyx-soc/tree/main/skills/office-malware-analyzer
Command: npx skills add https://github.com/chenchunrun/onyx-soc --skill office-malware-analyzer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires oletools, yara-python, XLMMacroDeobfuscator, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Automatically analyzes Office documents (Word, Excel, PowerPoint, WPS, OneNote) to identify malicious features such as VBA/XLM macros, DDE, template injections, and embedded payloads, enabling faster threat triage and containment.

Core Features & Use Cases

  • VBA macro analysis with deobfuscation and VBA stomping detection.
  • OOXML/ODF/RTF analysis for external links, embedded objects, DDE, EPS, and CVE indicators.
  • IOC extraction including URLs, IPs, and domains, with risk scoring and MITRE ATT&CK mapping.
  • Use Case: A security team processes a batch of Office documents to generate detailed risk reports and actionable indicators for incident response.

Quick Start

Run the Office malware analyzer on a suspicious document to generate a comprehensive report.

Frequently Asked Questions about office-malware-analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze Office documents for malware and extract IOCs?

To analyze Office malware and extract IOCs, the skill processes OOXML, OLE, and RTF files to detect malicious macros, DDE, and embedded payloads, generating structured IOC reports with URLs, IPs, and domains.

How does VBA stomping detection work in Office documents?

VBA stomping detection works by extracting and comparing source code with executed P-code using pcodedmp and oletools, identifying discrepancies where malicious p-code overrides the visible source code in Office documents.

Can I extract XLM macros from Excel files using oletools?

Yes, you can extract and deobfuscate XLM macros from Excel files. The skill uses XLMMacroDeobfuscator alongside oletools to analyze legacy Excel 4.0 macros and identify malicious embedded payloads.

What is the best way to detect DDE and template injections in Word documents?

The best way to detect DDE and template injections is by parsing OOXML and RTF structures to identify external links and dynamic data exchange objects, mapping the detected threats to MITRE ATT&CK techniques.

Does this malware analysis skill support RTF and OOXML formats?

Yes, the skill supports RTF and OOXML formats. It analyzes these Office document formats to identify external links, embedded objects, DDE exploits, EPS payloads, and known CVE indicators.

What limitations exist when analyzing PowerPoint files for malicious macros?

When analyzing PowerPoint files, limitations depend on available python libraries. The skill requires oletools, yara-python, and XLMMacroDeobfuscator to successfully extract macros and assess CVE indicators across Office formats.