Skip to content
/ KRAT Public

Lightweight Asynchronous JVM-based RAT (Remote Access Trojan)

Notifications You must be signed in to change notification settings

L1shed/KRAT

Repository files navigation

Caution

This project is designed to demonstrate and expose vulnerabilities in devices.
Beware! This malware is currently undetected by popular antivirus.

Educational purposes only.

KRAT

A lightweight Asynchronous JVM-based RAT (Remote Access Trojan) written in Kotlin.

Features

  • Periodicals screenshots
  • Real-time webcam
  • Discord account information
  • Several on-demand actions
  • Everything silently and undetectable by antivirus

Usage

  1. Download the latest release and put it on a server
  2. Configure the DISCORD_BOT_TOKEN environment variable to your bot token
  3. Run the KRAT-server.jar file with your Discord bot token as parameter
java -jar KRAT-server.jar

On-demand actions

  • /computers: get all infected computers
  • /webcam: take a webcam capture and send it
  • /screenshot: take a screenshot and send it
  • /filetree: sends the victim's file tree
  • /upload <link> <absolute-path>: upload a file to the victim
  • /download <absolute-path>: download a file from the victim
  • /run <file>: execute a file on the victim's computer
  • /delete <absolute-path>: delete a file from the victim's computer

Multiplatform compatibility

The project aims to be multiplatform, it can be compiled to run on any OS that has JVM.

OS Supported
Windows
Linux
macOS
Android
iOS

Stack

Deep Dive: How it works

Stage 1

At this stage, the malware is tiny only downloads the run.bat file from the server and make it runs on every startup. If the latest version of the file can't be downloaded, the malware will use his backup version.

Stage 2

Now, the malware will start connecting to the server via websockets. It will also steal every information possible from the victim's computer and send it to the server.

Finally, the malware will start listening background precesses.

Discord

The bot sends victim's info via a Discord server get instructions from commands.