Retour au classement

bytecode77/r77-rootkit

Cbytecode77.com/r77-rootkit

Fileless ring 3 rootkit with installer and persistence that hides processes, files, network connections, etc.

rootkitfilelessav-evasion
Croissance des étoiles
Étoiles
2.2k
Forks
461
Croissance hebdomadaire
Issues
9
1k2k
déc. 2017oct. 2020sept. 2023juil. 2026
README

r77 Rootkit

Fileless ring 3 rootkit

r77 is a ring 3 rootkit that hides everything:

  • Files, directories
  • Processes & CPU/GPU usage
  • Registry keys & values
  • Services
  • TCP & UDP connections
  • Junctions, named pipes, scheduled tasks

Hiding by prefix

Everything that starts with "$77" is hidden.

Configuration System

The dynamic configuration system allows to hide processes by PID and by name, file system items by full path, TCP & UDP connections of specific ports, etc.

The configuration is located in HKEY_LOCAL_MACHINE\SOFTWARE\$77config and is writable by any process without elevated privileges. The DACL of this key is set to grant full access to any user.

In addition, the $77config key is hidden by the rootkit.

Installer

The deployment of r77 requires only one file: Install.exe. Execution persists r77 on the system and injects all running processes.

Uninstall.exe removes r77 from the system completely, and gracefully.

Install.shellcode is the shellcode equivalent of the installer. This way, the installation can be integrated without dropping Install.exe. The shellcode can simply be loaded into memory, casted to a function pointer, and executed:

int main()
{
	// 1. Load Install.shellcode from resources or from a BYTE[]
	// Ideally, encrypt the file and decrypt it here to avoid scantime detection.
	LPBYTE shellCode = ...

	// 2. Make the shellcode RWX.
	DWORD oldProtect;
	VirtualProtect(shellCode, shellCodeSize, PAGE_EXECUTE_READWRITE, &oldProtect);

	// 3. Cast the buffer to a function pointer and execute it.
	((void(*)())shellCode)();

	// This is the fileless equivalent to executing Install.exe.

	return 0;
}

Execution flow

The rootkit resides in the system memory and does not write any files to the disk. This is achieved in multiple stages.

This graph shows each stage from the execution of the installer all the way down to the rootkit DLL running in every process. The documentation has a chapter with extensive detail about the implementation of each stage.

AV/EDR evasion

Several AV and EDR evasion techniques are in use:

  • AMSI bypass: The PowerShell inline script disables AMSI by patching amsi.dll!AmsiScanBuffer to always return AMSI_RESULT_CLEAN. Polymorphism is used to evade signature detection of the AMSI bypass.
  • DLL unhooking: Since EDR solutions monitor API calls by hooking ntdll.dll, these hooks need to be removed by loading a fresh copy of ntdll.dll from disk and restoring the original section. Otherwise, process injection would be detected.

Test environment

The Test Console is a useful tool to inject r77 into individual processes and to test drive the configuration system.

Technical Documentation

Please read the technical documentation to get a comprehensive and full overview of r77 and its internals, and how to deploy and integrate it.

Downloads

r77 Rootkit 1.8.2.zip (ZIP Password: bytecode77)
Technical Documentation

Project Page

bytecode77.com/r77-rootkit

Dépôts similaires
mrexodia/TitanHide

Hiding kernel-driver for x86/x64.

CMIT Licenseanti-debuggingdriver
2.8k486
Idov31/Nidhogg

Windows rootkit for Intel x64 with 25+ features, demonstrating rootkit techniques compatible with all Windows 10 and Windows 11 versions.

C++GNU General Public License v3.0cppcybersecurity
idov31.github.io/posts/lord-of-the-ring0-p1
2.4k358
m0nad/Diamorphine

LKM rootkit for Linux Kernels 2.6.x/3.x/4.x/5.x/6.x (x86/x86_64 and ARM64)

COtherrootkitlkm-rootkit
2.4k482
milabs/awesome-linux-rootkits

awesome-linux-rootkits

Creative Commons Zero v1.0 Universalawesomeawesome-list
2.1k267
ExpLife0011/awesome-windows-kernel-security-development

windows kernel security development

rootkitbootkit
2.1k537
JKornev/hidden

🇺🇦 Windows driver with usermode interface which can hide processes, file-system and registry objects, protect processes and etc

Cwindowssecurity
2k503
xl7dev/WebShell

Webshell && Backdoor Collection

PHPPackagistGNU General Public License v2.0webshellshell
blog.safebuff.com/WebShell/
2k1k
h3xduck/TripleCross

A Linux eBPF rootkit with a backdoor, C2, library injection, execution hijacking, persistence and stealth capabilities.

CGNU General Public License v3.0backdoorebpf
2k244
MatheuZSecurity/Singularity

Stealthy Linux Kernel Rootkit for modern kernels (6x)

CMIT Licenseftracehooking
1.7k189
jm33-m0/emp3r0r

Self‑healing Gossip Mesh C2 with Assisted Peer Discovery, Cross-Platform BOF Execution, and Scriptable Agents.

GoGo ModulesMIT Licensepost-exploitationstealth
infosec.exchange/@jm33
1.7k278
skyw4tch3r/RootKits-List-Download

This is the list of all rootkits found so far on github and other sites.

GNU General Public License v3.0rootkitsredteam
1.5k392
ZeroMemoryEx/Chaos-Rootkit

Now You See Me, Now You Don't

C++driverkernel
hackandhide.com/chaos-rootkit-internals-explained/
1.1k162