Skip to content

ortil-afk/good_duck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

good_duck

Rubber Ducky script for EDR agent automation for Wazuh.

Introduction 📖

I created this project as part of my College Capstone, to which I wanted to use my skills in Ethical Hacking to automate the process of assigning an agent in EDRs (Wazuh) through the use of ducky scripts. The main appeal as to why create a ducky script, is that these payloads can then be loaded on a rubber ducky to then give to non-IT individuals who trust the user with handling EDR management for their endpoints. The other appeal is that any system out of the box (i.e. Windows and Linux) can then be added to the EDR manager for further threat analysis.

More ducky scripts will be put in place in this project as the need arises.

Setup ⚙️

Most of the Setup will be based on the users experience with the different technologies in this project, as prior exprience with any of these technologies may be needed to configure the environment to their liking. I will provide links to resources that I found were helpful, but there are many different ways to setup the environment:

Wazuh:

VPN (can be whichever VPN, but providing ZeroTier for reference):

CloudFlare Tunnel (another alternative instead of using VPN):

Once the EDR is created and configured (the indexer, manager, and dashboard) and a remote means of communication is established (i.e VPN, public hosted site) we can then take advantage of the ducky script payloads.

Running the Ducky Script 🦆

The medium in which I use for running rubber ducky's is through the flipperzero, however this can be done by any rubber ducky or badusb type of device. There are many different rubber ducky projects to look at as to which medium works best, here is an example of a cheap way to run a rubber ducky (feel free to use other mediums outside of this project as well):

Steps

  1. download the ducky payload for the OS you will be working in (i.e. git clone repo, download contents, copy raw contents of specific payload).
  2. Modify the payload with the following changes:
    1. modify the use of the VPN that is used, with using an authorization key (preferably ephemeral) in the payload. Some examples can be found here for ZeroTier and TailScale. Paste this oneliner in the portion labeled VPN_CONNECT
    2. Place the script that will be used to connect the agent to the Wazuh manager. Paste this oneliner in the portion labeled WAZUH_CONNECT
  3. Prepare Wazuh to recieve an agent, which can be found here
  4. Load the ducky payload onto a USB, and connect to endpoint you would like to connect back to Wazuh for EDR management.

About

Rubber Ducky script for EDR agent automation for Wazuh.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors