Code Monkey home page Code Monkey logo

spectre-1's Introduction

Spectre Rootkit Logo

Welcome to the Spectre Rootkit, a proof-of-concept Windows kernel-mode rootkit I wrote with the hopes of demystifying the Windows kernel for red team usage. The Spectre Rootkit abuses legitimate communication channels in order to receive commands from a C2. You can read more about how it works here. This project was the focus of my talk, "Demystifying Modern Windows Rootkits", presented at both Black Hat USA 2020 and DEF CON 28.

Getting Started

Please see the Getting Started section of the wiki.

Components

Here are the projects inside the Spectre Rootkit solution.

  • spectre-kernel - The core driver project for the rootkit.
  • spectre-cli - The CLI utility used from the C2 to control an infected machine.
  • spectre-stager - The staging utility used to load the rootkit on a victim machine.
  • spectre-stager-util - Takes the built driver file and converts it into a XOR-obfuscated header for use by the spectre-stager.

Motivation

The primary motivation for this project was because of the lack of examples for Windows rootkits. You'll often find examples of red team tooling that lies in user-mode, but the amount of kernel-mode red team tooling is sparse. This project is meant to act as a point of reference, specifically to show one-way of approaching the problem of writing a rootkit. Not only did I want to write a rootkit to assist in the development of future red team tooling, but the secondary purpose of this project was to challenge myself by exploring parts of the kernel that aren't well-documented and researching novel techniques I could apply to the rootkit. You'll find that the code base follows a strict code style and is heavily documented.

Notable Tricks and Techniques

The Spectre Rootkit is made up of several tricks and techniques, here are a few of the noteworthy ones:

Thanks

Some well deserved thanks go to...

  1. Alex Ionescu - Long-time mentor and Windows internals expert.
  2. ReactOS Project - An incredible reference about the internals of the Windows kernel.
  3. Nemanja Mulasmajic - Gave the idea for the NtFunctionResolver component of the rootkit.

Licensing

Interested in a special license? Contact me at billdemirkapi (AT) gmail (DOT) com.

spectre-1's People

Contributors

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