Mraptor (MacroRaptor) is a tool in the oletools Python suite that detects malicious VBA macros in Office files by flagging a combination of auto-execution, file or system write, and command execution behaviour. Analysts use it for fast triage of suspicious documents; it is heuristic, so obfuscated or unusual macros can evade it and results need confirmation.
What Mraptor Does in Office Malware Triage
Mraptor, also called MacroRaptor, is a heuristic scanner for suspicious Office documents. It looks for combinations of macro behaviours that commonly appear in malicious VBA, especially auto-execution, writing files or system changes, and launching commands. That makes it useful for first-pass triage when analysts need to decide whether a document deserves deeper inspection.
Because Mraptor is heuristic rather than exhaustive, it is best understood as a fast signal, not a verdict. A match suggests that the macro behaves like malware, but it does not prove malicious intent on its own. A miss also does not guarantee safety, because obfuscation, unusual control flow, or non-standard macro structure can hide the behaviour the tool is looking for.
Why Behavioural Heuristics Matter for Macro Analysis
Macro-based malware often relies on simple but high-impact actions: running when a document opens, staging files on disk, or invoking shell commands to pull down payloads. Detecting those actions early matters because they reveal intent even when the macro code is obscured, renamed, or padded with junk logic. In practice, the value of a tool like Mraptor is speed, not completeness.
That trade-off is important in document triage. Analysts typically want an answer to “does this look like a weaponised document?” before they spend time reversing the macro line by line. Behavioural heuristics help prioritise the queue, reduce manual effort, and surface files that deserve sandboxing, static review, or broader investigation.
How Mraptor Fits Into Office Document Triage
Mraptor sits inside the wider oletools workflow that defenders use to inspect Office files safely. It is most effective when combined with other checks that identify embedded macros, suspicious object structures, or lure techniques such as template injection and linked content. The result is a layered triage process: one tool flags the likely malicious behaviour, another explains where it lives, and a human analyst confirms the conclusion.
The practical benefit is that analysts can move from “suspicious” to “worth deeper review” quickly without opening the document in a live Office environment. That reduces exposure while still preserving enough evidence to support a follow-on investigation.
For a broader workflow that includes macro triage, p-code review, and related Office document artefacts, see Malicious Office Document Analysis Guide.
Limitations, False Negatives, and Analyst Confirmation
Mraptor’s limitation is the same limitation shared by many heuristic detectors: it can be bypassed when an attacker changes the shape of the macro rather than its purpose. Macro obfuscation, staged execution, alternate scripting paths, and atypical document layouts can all reduce detection confidence. A result therefore needs context from the surrounding file, not just the pattern match.
That is why confirmation matters after a positive hit and especially after a negative one. Analysts should treat the output as a triage indicator, then inspect the macro body, supporting objects, and related indicators before deciding whether the file is benign, suspicious, or clearly malicious.
Risk and Threat Considerations
Malicious Office macros remain attractive because they can turn an ordinary document into an execution path on the endpoint. The risk is not just the macro itself, but the chain of actions it can trigger, from local persistence to command execution and payload staging. If analysts rely on a single heuristic without confirmation, a crafted macro can slip through or be misclassified.
Failure mechanism: The detector only recognises a subset of malicious macro behaviour, so obfuscation, unusual control flow, or alternate execution logic can hide the relevant indicators.
Impact: A missed sample can reach users, execute code on opening, and create a foothold for follow-on malware delivery or internal compromise.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| CIS Controls v8 | CIS-10 — Malware Defenses | Mraptor supports malware triage for Office documents and suspicious macro execution. |
| CIS-13 — Network Monitoring and Defense | Macro-borne payloads often rely on command execution and staging that monitoring can expose. | |
| Recommendation — Use malware defenses to detect, block, and triage malicious Office files before user execution. Monitor document-driven execution paths for suspicious child processes, downloads, and staging activity. | ||
| NIST SP 800-53 Rev 5 | SI-3 — Malicious Code Protection | The term concerns detecting malicious macro code within documents. |
| SI-4 — System Monitoring | Heuristic triage benefits from monitoring suspicious execution and document-triggered behaviour. | |
| AU-6 — Audit Record Review, Analysis, and Reporting | Analyst confirmation depends on reviewing evidence from suspicious document behaviour. | |
| Recommendation — Deploy malicious code protection to identify and quarantine suspicious Office macro activity. Correlate document openings with process creation and file writes to spot suspicious macro execution. Review alert and endpoint records to confirm whether a flagged document actually executed malicious logic. | ||
Practitioner Guidance
Why practitioners should care: Use Mraptor as a fast prioritisation tool, not as the final decision point. It is most valuable when you need to separate obviously suspicious Office files from the long tail of low-risk documents and focus analyst time where it matters most.
What to watch for: Treat matches involving auto-open behaviour plus file writes or command execution as higher-priority review items, because that combination is often what turns a document into an active intrusion vehicle. Confirm the finding by reviewing the macro content and the document’s surrounding artefacts before you escalate or clear it.
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org