Skip to content

[Virus] [Backdoors] Metamorphic self-replicating tagging virus with anti debugging features

Notifications You must be signed in to change notification settings

SaltyMilk/D34TH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

D34TH

Educational virus.

⚠️ PLEASE DON'T BE STUPID: DO NOT RUN THIS ON YOUR SYSTEM. ⚠️

Notes :

A simple make will create a virus spreading only in /tmp/test and /tmp/test2

However make bonus will recursively infect EVERY binary file on the system. Use with caution.

How does it work

The virus will parse executables, and infect either the data segment or the text segment.

  • It will inject it's own source code into those binaries and a redirection to the old code.
  • Will add my signature to the binary, hence the "tagging virus" title
  • Opens a shell with permissions of the user launching the infected binary || virus and makes it available on port 4219.

This means that for instance if you run the virus, from there on launching any binary on your system will infect all the other binaries.

So when ls gets infected every time you'll do a "ls", you're infecting your whole system again and opening a shell backdoor with your current permissions availble on your network.

Todo:

  • metamorphic mov to xor (ex: sometimes mov rax, 0 => xor rax, rax; NOP NOP) ✅
  • expand junk data metamorphic possibilities (2x NOP -> push rax/rbx/rcx; pop rax/rbx/rcx. Applied after mov to xor for extra fills) ✅
  • junk data (inc rax; dec rax or 6x NOP) ✅

Source code:

You can find the source code of the virus here

Run in docker (note : due to ducker's way of things, anti debugger feature might fail in docker...Prefer using a VM)

./run.sh
docker exec -it death /bin/bash 
cd /death; make

Run locally

cd srcs; make

About

[Virus] [Backdoors] Metamorphic self-replicating tagging virus with anti debugging features

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages