Git Product home page Git Product logo

avanguard's Introduction

Avanguard

The Win32 Anti-Intrusion Library

Avanguard is the Windows anti-injection library written on C++.

๐Ÿ”™๐Ÿ”š Current and in-dev capabilities:

  • [โœ”๏ธ] Threads filter (against of CreateRemoteThread)
  • [โœ”๏ธ] Modules filter
  • [โœ”๏ธ] Memory filter (support of JIT-based languages)
  • [โœ”๏ธ] Stacktrace checker
  • [โœ”๏ธ] Windows hooks detection
  • [โœ”๏ธ] AppInit_DLLs disabler
  • [โœ”๏ธ] Memory mapping based injects detection
  • [โœ”๏ธ] APC filter
  • [โœ”๏ธ] Threads context filter (to prevent a context steal)
  • [โŒ] HWIDs collector
  • [โŒ] Java/C#/Delphi bindings and API
  • [โŒ] Anti-macroses (virtual input blocking)
  • [โŒ] Anti-debugging techniques
  • [โŒ] Self-modification support
  • [โŒ] DACLs-based protection

๐Ÿ“ Dependencies:

  • HookLib - lightweight and convenient hook library written on pure C and NativeAPI
  • Zydis - extremely lightweight disassembler
  • t1ha - the fastest hash ever
  • xorstr - a heavily vectorized C++17 compile-time strings encryptor

๐Ÿ“ How to use:

First of all, clone it with all dependencies:

git clone --recursive https://github.com/HoShiMin/Avanguard.git

All you need is to build the Avanguard.dll and add it to your application's import table.

#include <cstdio>
#include <Windows.h>

#include <AvnApi.h>
#pragma comment(lib, "Avanguard.lib")

int main()
{
    // Using of Avanguard's symbols binds it to your app:
    printf("[i] AvnStub: %p\n", Stub);
    while (true);
}

Or you can add it to import table manually using PE editors like CFF Explorer:

  1. Right click on your exe/dll
  2. Open with CFF Explorer
  3. Import Adder tree entry -> Add -> Choose Avanguard.dll
  4. Choose Stub -> Import by name -> Rebuild import table
  5. Go to Import directory tree entry
  6. Right click on Avanguard.dll -> Move up
  7. Move it on the top of import list (it allows Avanguard.dll to load before of all another dlls)
  8. Press save button (๐Ÿ’พ button at the top)
  9. Done! Now put the Avanguard.dll to the same folder as your exe/dll.

๐Ÿ›  Settings:

You can change enabled features in the AvnDefinitions.h file.
If you want to use it with JIT, you MUST enable FEATURE_MEMORY_FILTER to prevent a false detections.

avanguard's People

Contributors

fengjixuchui avatar hoshimin avatar

Watchers

 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.