analyzing-macro-malware-in-office-documents

analyzing-macro-malware-in-office-documents is a skill for Claude Code from Mikaru0Mystic/sectinel. It costs 90 tokens per session (3,056 once invoked), scanned A, a copy of analyzing-macro-malware-in-office-documents, Apache-2.0.

A malware-analysis guide for examining harmful VBA macros in Microsoft Word, Excel, and PowerPoint files. VBA is the scripting language Office documents can use to run automated actions.

In plain words
What is it for?
Use it to inspect macro code, undo obfuscation, trace an attack chain, and check related active-content methods such as DDE, ActiveX, or remote templates.
Why use it?
It helps reveal what a suspicious document does without opening it in Microsoft Office, including downloads, payload execution, persistence, and attempts to avoid analysis.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cybersecurity-skills plugin — 56 skills shipped together

Good fit Use it to inspect macro code, undo obfuscation, trace an attack chain, and check related active-content methods such as DDE, ActiveX, or remote templates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mikaru0mystic/sectinel/analyzing-macro-malware-in-office-documents
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Mikaru0Mystic/sectinel --skill analyzing-macro-malware-in-office-documents
Clone the repo
git clone --depth 1 https://github.com/Mikaru0Mystic/sectinel

Made for: Claude Code.

Or install cybersecurity-skills, the plugin that ships this one along with the rest of its 56 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for analyzing-macro-malware-in-office-documents

README.md
[![agentmods](https://agentmods.dev/badge/skills/mikaru0mystic/sectinel/analyzing-macro-malware-in-office-documents/github.svg)](https://agentmods.dev/skills/mikaru0mystic/sectinel/analyzing-macro-malware-in-office-documents)
Your own site
<a href="https://agentmods.dev/skills/mikaru0mystic/sectinel/analyzing-macro-malware-in-office-documents"><img src="https://agentmods.dev/badge/skills/mikaru0mystic/sectinel/analyzing-macro-malware-in-office-documents/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for analyzing-macro-malware-in-office-documents

Your own site · 80×15
<a href="https://agentmods.dev/skills/mikaru0mystic/sectinel/analyzing-macro-malware-in-office-documents"><img src="https://agentmods.dev/badge/skills/mikaru0mystic/sectinel/analyzing-macro-malware-in-office-documents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,056 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00090 $0.03056
Opus 5 $0.00045 $0.01528
Sonnet 5 $0.00018 $0.00611
Haiku 4.5 $0.00009 $0.00306

Measured 11d ago against content hash 84334e6756cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

analyzing-macro-malware-in-office-documents scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/agent.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

97% identical to analyzing-macro-malware-in-office-documents — 14 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

arsenal/Anthropic-Cybersecurity-Skills/skills/analyzing-macro-malware-in-office-documents/SKILL.md · 340 lines

How it starts

The opening of the file, as written. The whole thing — 340 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Analyzing Macro Malware in Office Documents

When to Use

  • A suspicious Office document (.doc, .docm, .xls, .xlsm, .ppt) has been flagged by email security
  • Investigating phishing campaigns that deliver weaponized Office documents
  • Extracting VBA macro code to identify the payload download URL and execution method
  • Analyzing obfuscated VBA code to understand the full attack chain
  • Determining if a document uses DDE, ActiveX, or remote template injection instead of macros

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.

Prerequisites

  • Python 3.8+ with oletools installed (pip install oletools)
  • oledump.py from Didier Stevens (https://blog.didierstevens.com/programs/oledump-py/)
  • Isolated analysis VM without Microsoft Office installed (prevents accidental execution)
  • XLMDeobfuscator for Excel 4.0 macro analysis (pip install xlmdeobfuscator)
  • LibreOffice for safe document rendering (does not execute VBA macros by default)

Workflow

Step 1: Initial Document Triage

Determine if the document contains macros or other active content:

# Quick triage with olevba
olevba suspect.docm

# Check for OLE streams and macros
oleid suspect.docm

# Output indicators:
# VBA Macros:        True/False
# XLM Macros:        True/False
# External Relationships: True/False (remote template)
# ObjectPool:        True/False (embedded objects)
# Flash:             True/False (SWF objects)

# Comprehensive OLE analysis
oledump.py suspect.docm

# List all OLE streams with macro indicators
# Streams marked with 'M' contain VBA macros
# Streams marked with 'm' contain macro attributes

Step 2: Extract and Analyze VBA Code

Pull out the complete VBA macro source:

# Extract VBA with full deobfuscation
olevba --decode --deobf suspect.docm

# Extract just the VBA source code
olevba --code suspect.docm > extracted_vba.txt

# Detailed extraction with oledump
oledump.py -s 8 -v suspect.docm  # Stream 8 (adjust based on stream listing)

# Extract all macro streams
oledump.py -p plugin_vba_dco suspect.docm

Read the full file on GitHub · 340 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 340 lines · 90 tokens per session scan A 84334e6756cb

Subscribe to this mod's changes

analyzing-macro-malware-in-office-documents is a skill published in the GitHub repository Mikaru0Mystic/sectinel (11 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 90 tokens to every session and 3,056 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to analyzing-macro-malware-in-office-documents, differing in 14 lines, and is treated as a copy.

Related

Other skills, from other repositories

analyzing-macro-malware-in-office-documents

Analyzes malicious VBA macros embedded in Microsoft Office documents (Word, Excel, PowerPoint) to identify download cradles, payload execution, persistence mechanisms, and anti-analysis techniques. Uses olevba, oledump, and VBA deobfuscation to extract the attack chain. Activates for requests involving Office macro…

26zl/cybersec-toolkit · 90 tokens

analyzing-macro-malware-in-office-documents

Analyzes malicious VBA macros embedded in Microsoft Office documents (Word, Excel, PowerPoint) to identify download cradles, payload execution, persistence mechanisms, and anti-analysis techniques. Uses olevba, oledump, and VBA deobfuscation to extract the attack chain. Activates for requests involving Office macro…

mukul975/Anthropic-Cybersecurity-Skills · 90 tokens

analyzing-macro-malware-in-office-documents

A malware-analysis workflow for examining harmful VBA macros embedded in Microsoft Word, Excel, and PowerPoint files. It uses tools that extract, decode, and inspect the macros and their attack chain.

killvxk/cybersecurity-skills-zh · 108 tokens

analyzing-macro-malware-in-office-documents

Analyzes malicious VBA macros embedded in Microsoft Office documents (Word, Excel, PowerPoint) to identify download cradles, payload execution, persistence mechanisms, and anti-analysis techniques. Uses olevba, oledump, and VBA deobfuscation to extract the attack chain. Activates for requests involving Office macro…

plurigrid/asi · 90 tokens

analyzing-macro-malware-in-office-documents

Analyzes malicious VBA macros embedded in Microsoft Office documents (Word, Excel, PowerPoint) to identify download cradles, payload execution, persistence mechanisms, and anti-analysis techniques. Uses olevba, oledump, and VBA deobfuscation to extract the attack chain. Activates for requests involving Office macro…

pinkpixel-dev/skills-collection-1 · 90 tokens

analyzing-macro-malware-in-office-documents

Analyzes malicious VBA macros embedded in Microsoft Office documents (Word, Excel, PowerPoint) to identify download cradles, payload execution, persistence mechanisms, and anti-analysis techniques. Uses olevba, oledump, and VBA deobfuscation to extract the attack chain. Activates for requests involving Office macro…

marysatasselshaped667/skills-collection-1 · 90 tokens