Giter Club home page Giter Club logo

rkduck's Introduction

rkduck - Rootkit for Linux v4 Build Status

rkduck is a Loadable Kernel Module rootkit for the latest Linux Kernels v4. This is still a work in progress.

Features

  • Stealth
    • Hide files, directories, processes
  • Communication
    • SSH
    • Direct shell (unencrypted)
    • Reverse shell (unencrypted)
  • Keylogger
    • Recording of the keystrokes of every user.
    • Information sent periodically
  • Crumbs
    • A user space CLI program allowing the user to control the rootkit configuration during its execution
    • Requires an authentication to be used (hardcoded key stored in rduck, the configuration section has more information about it)

Tests

At the moment we didn't get the chance to test our rootkit on different versions of Linux to make sure everything is working as intended. If you want to report a bug feel free to create an issue or send us an email at [email protected].

Contributors

  • mpgn - Twitter

  • RainbowLyte - Twitter

                   _.._
                  /   a\__,
                  \  -.___/
                   \  \
              (\____)  \
          |\_(         ))
     _____|   (_        /________
          _\____(______/__
               ______
    

rkduck's People

Contributors

mpgn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rkduck's Issues

Kernel code

rkduck has to interpret the commands Crumbs sends to it.

Command format : cmd_number:argument

Add ssh backdoor for emergency bailout

Add the ssh key of the attacker into ~/.ssh/authorized_keys with root user.
The key should be provide in the script that copy the key.

Also the config of the backdoor allow to enable ssh backdoor or no.

VFS - recursive file hiding

If a user accesses a hidden directory, the content still has to be hidden.
At the moment, it works as follows :
if /root/rkduck is hidden and contains the files file1 and file2.
ls /root won't display rkduck, but ls /root/rkduck will display file1 and file2.

Add keylogger

Listen the keyboard and save the result into a file.

VFS hijacking - base

Currently, the syscall table is modified to redirect to the malicious syscalls versions.
Look for a stealthier way to hijack the system.

Ubuntu uses iterate_shared file operation

The current version of vfs_get_iterate in vfs.c grabs the iterate function from file->f_ops. On Ubuntu systems (and maybe others), this should grab iterate_shared instead, as iterate is a null pointer.

Add encryption

The comunications between the rootkit and the attacker will be encrypted.

Features development for Crumbs

Crumbs is the userland program controlling rkduck.

Features to add:

  • hide a file
  • unhide a file
  • hide a process
  • unhide a process
  • change the backdoor's mode
  • change the remote ip when in reverse-shell mode.

Other features will be added later.

Add a configuration file

Configuration file for the rootkit

Provides config options such as the remote attacker's machine ip or domain name, etc...

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.