Giter Site home page Giter Site logo

wizardy0ga / xdump Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 3.14 MB

Configuration extraction tool for XWorm RAT Client. Tested on XWorm 3.1.

License: GNU General Public License v3.0

C# 100.00%
blue-team malware-analysis xworm xworm-rat xworm-v3

xdump's Introduction

XDump

XDump

An XWorm 3.1 Configuration Dump Tool

Background Information

This tool will retrieve, decrypt and dump the configuration settings of an XWorm RAT Client. Please note that XWorm 3.1 was used during testing and creation of this tool.

The XWorm Configuration

The XWorm Client contains various capabilities. The configuration that is set within this builder will be encrypted and placed in a class called Settings. This class has consistently appeared at token 0x02000007 across the samples i have looked at.

XWorm Client Builder

XDump Client Builder

When the client is configured without any options ticked, these are the standard that will be built into the client.

Basic Settings Decompilation

XWorm Basic Configuration

Building with the pastebin option results in the following decompilation of the settings class. There is an additional variable, PasteUrl and the host / port do not get configured.

Paste Bin Settings Decompilation

XWorm Pastebin Configuration

When building the client with all available options, the Settings class will be populated with some of that configuration data.

Full Settings Decompilation

XWorm Full Configuration

XWorm 3.1 Cryptographic implementation

To derive a key, XWorm will create an MD5 hash from a 16 character Mutex. This hash is used to create a 32 byte AES encryption key by copying the hash into the array twice. On the second copy operation, the last byte from the first copy pass is over-written leaving a null-byte at the end of the byte array.

Using this key, XWorm will decrypt it's configuration settings at the entry point of the program.

XDump Client Builder

Usage

XDump takes a maximum of two arguments, one is mandatory and the other is not. The arguments are a file path to the XWorm client and an optional mutex. If a mutex is given, the program will derive a key from the mutex argument rather than retrieving the mutex from the assembly.

No Mutex
.\XDump.exe c:\path\to\xclient.exe
With Mutex
.\XDump.exe c:\path\to\xclient.exe some_mutex_abc

Live Sample Examples

Sample One

Sample Two

Sample Three

Requirements

Item Version
dnlib 3.6.0
.NET Framework 4.7.2

Created With

Item Version
Windows 10
Visual Studio 2022
XWorm 3.1

xdump's People

Contributors

wizardy0ga avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

hahuuhung

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.