GithubHelp home page GithubHelp logo

gmh5225 / warbird-runtime Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kifilterfibercontext/microsoft-warbird

0.0 1.0 0.0 22 KB

Reimplementation of the Microsoft Warbird runtime

C++ 85.90% C 14.10%

warbird-runtime's Introduction

Warbird Runtime

Reverse engineered code originating from the runtime of Microsoft Warbird.

Microsoft developed Warbird to obfuscate different system components, mostly relating to DRM and licensing.
Warbird code has even been integrated into the kernel to obfuscate components (ci, peauth, clipsp, etc).

Overview

Warbird can support different forms of code obfuscation like:

  • virtual machine obfuscation
  • section encryption/packing (labeled PAGEwx sections which are excluded from PatchGuard)
  • constant obfuscation
  • runtime code execution on the heap (SystemControlFlowTransition info class for NtQuerySystemInformation system call)

Some system images that are publicly known to use Warbird are:

  • ci.dll
  • clipsp.sys
  • peauth.sys
  • ntoskrnl.exe
  • ClipSVC.dll
  • ClipUp.exe
  • Windows.Media.Protection.PlayReady.dll
  • GenValObj.exe
  • ManageCI.dll

There are other images that make calls to NtQuerySystemInformation passing the SystemPolicyInformation info class that rely on the Warbird Feistel cipher to encrypt/decrypt parameters.

The call stack of those calls generally look like: nt!SpCall2ServerInternal -> nt!g_kernelCallbacks -> clipsp.sys!ClipSp*.

More information can be found on that here.

TODO: Classes to Implement

  • WarbirdRuntime::CTermination
  • WarbirdRuntime::CMemoryAllocator::CBlock
  • WarbirdRuntime::CEncryption
  • WarbirdRuntime::CPrivateRelocationsTable
  • WarbirdRuntime::CHeapExecution
  • WarbirdRuntime::AutoEnableDynamicCodeGen
  • WarbirdRuntime::CUtil
  • WarbirdRuntime::CRWLock
  • WarbirdRuntime::CMemoryProtectionChangeHelper
  • WarbirdRuntime::WarbirdRuntime__HEAP_EXECUTION_CALL_ARGUMENTS
  • WarbirdRuntime::WarbirdRuntime__HEAP_EXECUTION_CONDITIONAL_BRANCH_ARGUMENTS
  • WarbirdRuntime::ENCRYPTED_SEGMENT_DATA_CONST
  • WarbirdRuntime::ENCRYPTED_SEGMENT_DATA_READ_WRITE
  • WarbirdRuntime::RuntimeInit
  • WarbirdRuntime::NewEntryMain

Disclaimer

The project cannot be used as-is and is merely intended to be used for educational purposes to further public understanding.
Warbird cannot be integrated into personal projects since the actual runtime dlls are not present.

A custom Warbird obfuscator toolset could be partially integrated by passing the /wbrddll: MSVC compiler flag and exporting the GetObfuscator and CreateObfuscator2 routines.

The project could be loosely modified to support calls to NtQuerySystemInformation with the SystemPolicyInformation class but you would have to reimplement the cipher, get the encryption/decryption keys, etc... :)

Related

warbird-runtime's People

Contributors

angelj314 avatar kifilterfibercontext 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.