• Stars
    star
    124
  • Rank 288,207 (Top 6 %)
  • Language VBA
  • License
    MIT License
  • Created over 3 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Offensive VBA and XLS Entanglement

This repo provides examples of how VBA can be used for offensive purposes beyond a simple dropper or shell injector. As we develop more use cases, the repo will be updated. The main entry in the repo is the code for demonstrating the XLS Entanglement attack.

Why VBA?

VBA provides every capability that other offensive languages offer including rudimentry reflection capability with the modification of the AccessVBOM registry key. In addition to that, VBA runs inside of programs that are traditionally long running programs on a victim's computers including Outlook. This means that a beacon can run entirely inside "native processes without the need to migrate processes or open additional ports. If Outlook is converted to a C2 beacon, then there is no need for the beacon to reach out of the network either. With the ability to export Win32 APIs we have the ability to execute all kinds of attacks, including things like Kerberoasting or running Embedded PEs.

Examples

File Description
HelloWorld.vba Demonstrates disabling the protections against accessing the VBA project and dynamically injecting VBA code
HelloWorldWin32_API.vba Same as HelloWorld.vba but uses Win32 APIs instead of WScript to modify the registry
OutlookC2_POC.vba Macro to convert Outlook into a C2 that watches for an email and injects VBA into an Excel file
XLS Entaglement Contains the files for executing a rudimentry XLS Entanglement attack

More Repositories

1

Starkiller

Starkiller is a Frontend for PowerShell Empire.
Vue
1,356
star
2

Beginners-Guide-to-Obfuscation

PowerShell
1,009
star
3

Moriarty

Moriarty is designed to enumerate missing KBs, detect various vulnerabilities, and suggest potential exploits for Privilege Escalation in Windows environments.
C#
467
star
4

Malleable-C2-Profiles

Malleable C2 Profiles. A collection of profiles used in different projects using Cobalt Strike & Empire.
333
star
5

Invoke-ZeroLogon

Invoke-ZeroLogon allows attackers to impersonate any computer, including the domain controller itself, and execute remote procedure calls on their behalf.
PowerShell
215
star
6

Invoke-PrintDemon

This is a PowerShell Empire launcher PoC using PrintDemon and Faxhell.
PowerShell
197
star
7

DEFCON27

DEFCON 27 slides and workshop materials.
128
star
8

IronSharpPack

IronSharpPack is a repo of popular C# projects that have been embedded into IronPython scripts that execute an AMSI bypass and then reflective load the C# project.
Python
104
star
9

Long-Live-The-Empire

A comprehensive workshop aimed to equip participants with an in-depth understanding of modern Command and Control (C2) concepts, focusing on the open-source Empire C2 framework.
97
star
10

ScriptBlock-Smuggling

Example code samples from our ScriptBlock Smuggling Blog post
C#
82
star
11

Empire-Cli

CLI Frontend for PowerShell Empire.
Python
44
star
12

Taming-Offensive-IronPython

This workshop is designed to provide you with a solid understanding of IronPython, its integration with the .NET framework, and how it can be used to interact with other .NET languages.
Python
31
star
13

Red-Team-Village-CTF-2023

Secure Terminal CTF Challenge for DC31 Red Team Village
Python
19
star
14

SocksProxyServer-Plugin

Socks Proxy Server Plugin for Invoke-SocksProxy
17
star
15

DeathStarPlugin

Deathstar is an Empire plugin that automates gaining Domain and/or Enterprise Admin rights in Active Directory environments using common offensive tactics, techniques, and procedures (TTPs).
Python
15
star
16

empire-docs

https://bc-security.gitbook.io/empire-wiki/
12
star
17

DEFCONSafeMode

DEFCON Safe Mode Slides
8
star
18

ChiselServer-Plugin

5
star
19

DEFCON24

DEFCON 24 slides and materials.
4
star
20

intro-ctf

Dockerfile
4
star
21

Empire-Compiler

C#
3
star
22

Twilio-Plugin

Python
2
star
23

Empire-Launcher

Python
1
star
24

denylist-plugin

1
star
25

Report-Generation-Plugin

Plugin for replacing the original reporting functionality in Empire with customizable PDFs.
Python
1
star
26

AutoRun-Plugin

Plugin to automatically execute an agent tasking on checkin
1
star