RepositoryPythonNLNetherlands
BO

bonnetn/vba-obfuscator

2018 School project - PoC of malware code obfuscation in Word macros

150stars
32forks
3issues
0views

VBA obfuscator

Final year school project, obfuscate Word macros.

This program obfuscates the Visual Basic code from Microsoft Word macros. The transformations applied on the code allows the macros to evade signature scans from Antivirus softwares.

Usage example

With Docker:

cat YOUR_MACRO.vbs | docker run -i --rm bonnetn/vba-obfuscator /dev/stdin

This command will obfuscate the whole code.

:warning: Pay attention to the first two lines!

:warning: It is necessary to add a document variable to the word document before pasting the code. You can dispose of the first two lines once it has been executed once on the Word document.

Development setup

Install python3 and the requirements.

pip install -r requirements.txt

To run the tests:

pytest

Then run:

python3 obfuscate.py YOUR_MACRO.vbs

Authors

Thomas Leroy - thomas.leroy.mp@gmail.com

Nicolas Bonnet – mail@nicolasbon.net

How to use (YouTube)

Tutorial video on how to obfuscate your macros and put them in a Word Document.

Click on the picture to see the video (enable the subtitles).

Demo

Proof of concept - Obfuscation & Antivirus

Antivirus signature scan evasion.

Click on the picture to see the video (enable the subtitles).

Demo

Quick how to use...

asciicast

Project report

The report of this project is available here. It is in French, so we are sorry for people that don't speak this lovely language.

Disclaimer

The VBA obfuscator tool is provided for educational and research purposes only. The authors of this project are no way responsible for any misuse of this tool.

Do not attempt to violate the law with our project, we will not take any responsability for your actions.

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
sherlock-project/sherlock

Hunt down social media accounts by username across social networks

120.7k
Dec 3, 2026
RepositoryPython
666ghj/MiroFish

A Simple and Universal Swarm Intelligence Engine, Predicting Anything. 简洁通用的群体智能引擎,预测万物

87.5k
Oct 16, 2026
RepositoryPython
Asabeneh/30-Days-Of-Python

The 30 Days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than 100 days. Follow your own pace. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw

80.0k
Sep 30, 2026
RepositoryPython
Textualize/rich

Rich is a Python library for rich text and beautiful formatting in the terminal.

58.0k
Nov 13, 2026
RepositoryPython
666ghj/BettaFish

微舆:人人可用的多Agent舆情分析助手,打破信息茧房,还原舆情原貌,预测未来走向,辅助决策!从0实现,不依赖任何框架。

42.8k
Oct 16, 2026
RepositoryPython
soxoj/maigret

🕵️‍♂️ Collect a dossier on a person by username from 6K websites

41.5k
Dec 1, 2026
RepositoryPython
mouredev/Hello-Python

Curso para aprender el lenguaje de programación Python desde cero y para principiantes. 100 clases, 44 horas en vídeo, código, proyectos y grupo de chat. Fundamentos, frontend, backend, testing, IA...

38.2k
Aug 11, 2025
RepositoryPython
walter201230/Python

小白 python 教程

28.7k
Nov 30, 2026
RepositoryPython
zulip/zulip

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

26.3k
Nov 27, 2026