virtual reality: Stealthy backdoor for Windows operating systems

Virtual Reality

This is a backdoor project for windows operating systems.

Intended audience

This is a proof-of-concept stealthy backdoor aimed to aid red teams in maintaining control of their targets during the security evaluation process. The project also intends to expose ways to abuse standard features.


Extremely stealthy backdoor for Windows platform.

  • ICMP-PING backdoor. Passively listens for incoming pings and executes shellcode delivered in ping payload.
  • HTTP backdoor using steganographically encoded images hosted on
  • Runs on anything from XP to W10


  • Small size by using tinystl and avoiding standard c++ stl
  • Cooperative multitasking achieved by using Windows fibers
  • All dependencies are permissively licensed
  • Permissively licensed, including all dependencies

Shellcode payload shellcode path/to/shellcode.bin reads shellcode into script’s memory. On it’s own this is useless therefore combine it with other commands. You may use - instead of path in order to read shellcode from stdin.

Ping transport

msfvenom <...> | shellcode - -- ping reads a shellcode from stdin and sends it via icmp-ping to Backdoor running on that machine will execute this shellcode.

Shellcode will be delivered to the target by sending it as ICMP-PING packet payload.


Content of packet appears to be random. The only give-away that something is up is a rather big packet size, although it is possible to customized packet size using ping utility or specify custom payload (Linux). transport

msfvenom <...> | shellcode - -- png path/to/image.png reads a shellcode from stdin and encodes into specified image.png. This image must exist and it must be in RGB format (no alpha). Resulting image should be uploaded to and tagged with one or more tags while one of tags must be one that is specified in config.h.

Shellcode will be encoded into specified image by altering last two bits of each color component in the target image. 1 byte needs 4 color components to be encoded and thus requires 1.(3) pixels. Encoded images are indistinguishable from original to the naked eye. Backdoor queries imgur API for listing images tagged with a configured tag. Every new image is downloaded and inspected for encoded payload.


Left – original image. Right – image with encoded payload. Bottom – difference mask. 120×75 image was used. As you can see only a tiny portion of pretty small iamge is used to encode 449 bytes payload.


Payload is always obfuscated using RC4 algorithm. As you probably have guessed replay attacks are a thing against this backdoor. Also backdoor may be controlled by a rival blue team if they have reverse-engineered sample and recovered RC4 key. Utmost security is not the point of this project. If blue team is on to the backdoor – nothing will save it anyway.


  • If possible – filter out ICMP-PING packets with in firewall
  • Take a proactive approach in monitoring your networks. Log everything and look for abnormalities. Chances are your servers have no business querying or similar social media domains.

Install && Use

Copyright (c) 2019 Rokas Kupstys