Giter VIP home page Giter VIP logo

avanguard's Introduction

Avanguard

The Win32 Anti-Intrusion Library

This library prevents some of injection techniques, debugging and static analyzing.

Both x32 and x64 supports and includes:

  • Static code encryptor
  • Many anti-debugging techniques (WinAPI, NativeAPI, SEH, assembler and memory tricks)
  • PE Analyzer
  • Memory analyzer
  • Call-stack analyzer
  • Anti-injection techinques (against of CreateRemoteThread, manual modules mapping, injection through APC, windows hooks, AppInit_DLLs and context switching)
  • Memory protection (kernel callbacks, modules remapping)
  • Anti-splicing (modules executable sections and imports table verifying)
  • Anti-macros (virtual keyboard and mouse input - useful for online games)
  • Kernel modules info
  • Threads and modules callbacks
  • Handles keeper - prevents managing your app from other processes due to close handles of your process in external apps (for example, CheatEngine or another memory editors)
  • Support of self-modified code
  • TLS support
  • DACLs support
  • HWIDs collector
  • Code-signing certificates and system files checkings
  • API for external calls of defence functions

Using

All you need is to load Avanguard.dll as soon as possible.
It collects all information about consistence of process, sets up the memory, threads, APCs and modules filters and starts up the protection.

You can use the AvnApi in C++ or any other native language using this code:

#include "AvnApi.h"

HMODULE hAvn = GetModuleHandle(L"Avanguard.dll");
PAVN_API AvnApi = *(PAVN_API*)GetProcAddress(hAvn, "Stub");

AvnApi->Lock();
BOOL IsModuleValid = AvnApi->AvnIsModuleValid(hAvn);
// ... Other AvnApi calls ...
AvnApi->Unlock();

If you use the self-modification of modules in your code, you should use this snippet:

AvnApi->Lock();
// ... Module modification ...
AvnApi->AvnRehashModule(hChangedModule);
AvnApi->Unlock();

You should always use the Lock()/Unlock() to AvnApi calls!

Java bindings:

public class Main {
    public static void main(String[] args) {
        AvnBind.avnRegisterThreatNotifier((int threatType) -> {
            System.out.println("Threat " + AvnBind.ThreatType.getThreat(threatType).name());
            return true;
        });

        AvnBind.avnEliminateThreat(AvnBind.ThreatType.UNKNOWN_APC_DESTINATION.getValue());

        AvnBind.avnRegisterThreatNotifier(null);
        AvnBind.avnEliminateThreat(AvnBind.ThreatType.UNKNOWN_APC_DESTINATION.getValue());
    }
}

Note, that you shall not rename the package name!

C# bindings:

using ...;
using AvnApi;

namespace AvnSample
{
    class Program
    {
        static void Main(string[] args)
        {
            AvnApi.AvnApi.Load(@"Avanguard.dll");
            AvnApi.AvnApi.API.AvnStart();
            while (true) ;
        }
    }
}

avanguard's People

Contributors

zaxar163 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.