Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
OffensiveVBA — This repo covers some code execution and AV Evasion methods for Macros in Office documents | Kitploit
Tools/GitHubGitHub/s3cur3th1ssh1t/offensivevba
Privilege EscalationPayload GenerationPersistence MechanismsIDS/IPS EvasionLateral MovementPhishingSocial EngineeringLearning & EducationCurated ResourcesPayload Development
GitHub
1.3k230854 years agoReviewed by Kitploit
Share
s3cur3th1ssh1t/offensivevba

OffensiveVBA

This repo covers some code execution and AV Evasion methods for Macros in Office documents

View Repository

OffensiveVBA

In preparation for a VBS AV Evasion Stream/Video I was doing some research for Office Macro code execution methods and evasion techniques.

The list got longer and longer and I found no central place for offensive VBA templates - so this repo can be used for such. It is very far away from being complete. If you know any other cool technique or useful template feel free to contribute and create a pull request!

Most of the templates in this repo were already published somewhere. I just copy pasted most templates from ms-docs sites, blog posts or from other tools.

Templates in this repo

FileDescription
ShellApplication_ShellExecute.vbaExecute an OS command via ShellApplication object and ShellExecute method
ShellApplication_ShellExecute_privileged.vbaExecute an privileged OS command via ShellApplication object and ShellExecute method - UAC prompt
Shellcode_CreateThread.vbaExecute shellcode in the current process via Win32 CreateThread
Shellcode_EnumChildWindowsCallback.vbaExecute shellcode in the current process via EnumChildWindows
Win32_CreateProcess.vbaCreate a new process for code execution via Win32 CreateProcess function
Win32_ShellExecute.vbaCreate a new process for code execution via Win32 ShellExecute function
WMI_Process_Create.vbaCreate a new process via WMI for code execution
WMI_Process_Create2.vbaAnother WMI code execution example
WscriptShell_Exec.vbaExecute an OS command via WscriptShell object and Exec method
WscriptShell_run.vbaExecute an OS command via WscriptShell object and Run method
VBA-RunPE@itm4n's RunPE technique in VBA
GadgetToJScriptmed0x2e's C# script for generating .NET serialized gadgets that can trigger .NET assembly load/execution when deserialized using BinaryFormatter from JS/VBS/VBA based scripts.
PPID_Spoof.vbachristophetd's spoofing-office-macro copy
AMSIBypass_AmsiScanBuffer_ordinal.vbarmdavy's AMSI Bypass to patch AmsiScanBuffer using ordinal values for a signature bypass
AMSIBypass_AmsiScanBuffer_Classic.vbarasta-mouse's classic AmsiScanBuffer patch
AMSIBypass_Heap.vbarmdavy's HeapsOfFun repo copy
AMSIbypasses.vbaoutflanknl's AMSI bypass blog
COMHijack_DLL_Load.vbaLoad DLL via COM Hijacking
COM_Process_create.vbaCreate process via COM object
Download_Autostart.vbaDownload a file from a remote webserver and put it into the StartUp folder
Download_Autostart_WinAPI.vbaDownload a file from a remote webserver via URLDownloadtoFileA and put it into the StartUp folder
Dropper_Autostart.vbaDrop batch file into the StartUp folder
Registry_Persist_wmi.vbaCreate StartUp registry key for persistence via WMI
Registry_Persist_wscript.vbaCreate StartUp registry key for persistence via wscript object
ScheduledTask_Create.vbaCreate and start sheduled task for code execution/persistence
XMLDOM_Load_XSL_Process_create.vbaLoad XSL from a remote webserver to execute code
regsvr32_sct_DownloadExecute.vbaExecute regsvr32 to download a remote webservers SCT file for code execution
BlockETW.vbaPatch EtwEventWrite in ntdll.dll to block ETW data collection
BlockETW_COMPLUS_ETWEnabled_ENV.vbaBlock ETW data collection by setting the environment variable COMPLUS_ETWEnabled to 0, credit to @xpn
ShellWindows_Process_create.vbaShellWindows Process create to get explorer.exe as parent process
AES.vbaAn example to use AES encryption/decryption in VBA from Here
Dropper_Executable_Autostart.vbaGet executable bytes from VBA and drop into Autostart - no download in this case
MarauderDrop.vbaDrop a COM registered .NET DLL into temp, import the function and execute code - in this case loads a remote C# binary from a webserver to memory and executes it - credit to @Jean_Maes_1994 for MaraudersMap
Dropper_Workfolders_lolbas_Execute.vbaDrop an embedded executable into the TEMP directory and execute it using C:\windows\system32\Workfolders.exe as LOLBAS - credit to @YoSignals
SandBoxEvasionSome SandBox Evasion templates
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    891
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    547
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    369
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    366
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    309
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    282

Explore all tools

Browse our collection of tools

View all tools →