GithubHelp home page GithubHelp logo

web401 / alaris Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joshfaust/alaris

0.0 0.0 0.0 1.25 MB

A protective and Low Level Shellcode Loader that defeats modern EDR systems.

Home Page: https://sevrosecurity.com/2020/10/14/alaris-a-protective-loader/

License: GNU General Public License v3.0

C++ 14.78% C 55.05% Assembly 17.10% YARA 0.73% Python 12.35%

alaris's Introduction

Alaris Shellcode Loader

Alaris

Build

Alaris is a new and sneaky shellcode loader capable of bypassing most EDR systems as of today (02/28/2021). It uses several known TTP’s that help protect the malware and it’s execution flow. Some of these features are:

  • Shellcode Encryption (AES-CBC 256)

  • Direct x86 Syscalls via @Jackson T’s new SyWhispers2

  • Prevents 3rd party (non-Microsoft Signed) DLL’s from hooking or injecting both the parent and child processes.

  • Parent Process ID spoofing

  • Overwrites it’s own shellcode after execution.

To get a full understanding on how Alaris works, see my post here.

Updates

As on February 28th, 2021, several changes have been made:

  1. You can now easily build Alaris with the Python3 builder.py tool.

  2. Moved from SysWhispers to SysWhispers2

  3. Key and IV are now dynamic for each build via PBKDF2

Building Alaris

The easiest method to build Alaris is with builder.py. I assume the following when you’re building a new Alaris loader:

  1. You are compiling on a Windows host. Preferably, Windows 10.

  2. You have Visual Studio 2019+ [Community, Professional] installed with C++ (See example here)

  3. You have Python3 installed and have pip install -r requirements.txt

usage: builder.py [-h] -s  -p  [-o]

optional arguments:
  -h, --help        show this help message and exit
  -s, --shellcode   Path to RAW shellcode file
  -p, --password    Encryption Passphrase
  -o, --out         Output Path for compiled binary
Example Syntax
# Output Compiled Binary to CWD
python3 builder.py -s C:\Users\admin\payload.bin -p example_password

# Output Compiled Binary to a path of your choosing.
python3 builder.py -s C:\Users\admin\payload.bin -p example_password -o C:\Users\admin\Desktop\my_alaris

Cobalt Strike Example

Generate x64 Shellcode for you Cobalt Strike Listener

Build


Use the builder.py to build the loader

Build


Executing the loader

Build


alaris's People

Contributors

joshfaust avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.