Giter VIP home page Giter VIP logo

venom-rootkit's Introduction

Venom RootKit

A simple windows rootkit that I have wrote, In order to explore a bit about the world of rootkits and windows kernel in general. The Venom rootkit uses a few well known methods that are commonly being used by other famous rootkits. Some of the main features are listed in the "Features" section below.

Flow

The flow of the rootkit is as follows: We start by dropping the rootkit .sys file and the UM .dll file to disk. Then, we load the rootkit driver, we can do so using some exploit or projects like DSEFix and KDMapper. Once the rootkit is loaded, it creates a device and a sym link, so that the UM client will be able to talk with it. Then it performs the IRP hook over the nsiproxy driver. And then it performs an APC injection of the UM dll to an arbitriry thread within "explorer.exe" (It can easily be changed). The APC injection is first queening a kernel APC and then a user APC, so we can avoid Microsoft ETW event on user mode APC created from kernel, as described here.

Demo

Here is a little demo of the port hiding feature - Port Hiding

  • My C&C is only for the POC, my main goal was the rootkit so I invested the minimum I needed for the demo.

Features

  • Dynamic APC injection to load the UM dll.
  • Process Hiding.
  • Token elevation to "NT AUTHORITY\SYSTEM".
  • Command execution.
  • TCP port hiding by irp hooking nsiproxy driver.
  • C&C server communication.
  • Logging.
  • File hiding.
  • Anti VM/Debug (Maybe implement through TLS callbacks).
  • Dynamic config for UM client.

Some other projects I have taken inspiration from

Thanks

I want to thanks @omerk2511 for helping and guiding.

Disclaimer

This project is for educational purposes only, I am not responsible for any kind of abuse.

venom-rootkit's People

Contributors

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