# trickster0/offensiverust

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/trickster0-offensiverust).**

2,984 stars · 338 forks · Rust

## Links

- GitHub: https://github.com/trickster0/OffensiveRust
- awesome-repositories: https://awesome-repositories.com/repository/trickster0-offensiverust.md

## Description

OffensiveRust is a red team toolkit and malware development kit written in Rust. It serves as an evasion framework and post-exploitation library, providing a collection of offensive security primitives and a Windows API wrapper for interacting with low-level system functions and undocumented APIs.

The project focuses on bypassing security software through direct system calls, memory obfuscation, and stealthy payload execution. It implements techniques to defeat static binary analysis via compile-time string encryption and payload obfuscation, while avoiding detection using parent process ID spoofing and event tracing disablement.

The toolkit covers a broad range of system manipulation capabilities, including process injection, privilege escalation through token impersonation, and kernel-space interaction via driver development. It also provides utilities for system reconnaissance using WMI queries, keyboard input interception, and the establishment of covert network channels that bypass SSL certificate validation.

## Tags

### Security & Cryptography

- [Red Teaming Frameworks](https://awesome-repositories.com/f/security-cryptography/red-teaming-frameworks.md) — Provides a comprehensive toolkit of primitives for offensive security operations and adversary simulation in Rust.
- [Security Software Evasion](https://awesome-repositories.com/f/security-cryptography/security-configurations/security-check-bypasses/security-software-evasion.md) — Provides a comprehensive set of techniques for bypassing antivirus and endpoint protection tools.
- [String Literal Obfuscation](https://awesome-repositories.com/f/security-cryptography/code-obfuscation-protections/string-literal-obfuscation.md) — Obfuscates literal strings during the build process to prevent discovery via static binary analysis.
- [Shellcode](https://awesome-repositories.com/f/security-cryptography/data-encryption/encrypted-persistence/object-store-encryption/payload-encryptions/shellcode.md) — Applies XOR or AES-CBC encryption to shellcode to prevent static analysis and signature-based detection. ([source](https://github.com/trickster0/OffensiveRust#readme))
- [In-Memory Payload Execution](https://awesome-repositories.com/f/security-cryptography/in-memory-payload-execution.md) — Implements techniques to run binary payloads from unbacked memory regions to avoid disk-based detection.
- [In-Memory Process Injection](https://awesome-repositories.com/f/security-cryptography/in-memory-process-injection.md) — Executes shellcode or binaries inside remote process memory using techniques like process hollowing and reflective injection.
- [Malware Development Kits](https://awesome-repositories.com/f/security-cryptography/malware-development-kits.md) — Provides a toolkit for creating stealthy malware with encrypted payload delivery and process hollowing.
- [Payload Obfuscators](https://awesome-repositories.com/f/security-cryptography/payload-obfuscation/executable-obfuscators/payload-obfuscators.md) — Obfuscates shellcode and binaries using AES, RC4, or XOR to evade antivirus and EDR software. ([source](https://github.com/trickster0/OffensiveRust/blob/master/README.md))
- [Post-Exploitation Toolkits](https://awesome-repositories.com/f/security-cryptography/post-exploitation-toolkits.md) — Implements utilities for maintaining access and escalating privileges after initial system compromise.
- [Privilege Escalation Techniques](https://awesome-repositories.com/f/security-cryptography/privilege-escalation-techniques.md) — Increases process permissions by manipulating security tokens or exploiting kernel drivers to gain administrative access.
- [Security Token Manipulators](https://awesome-repositories.com/f/security-cryptography/privilege-escalation-tools/security-token-manipulators.md) — Duplicates security tokens from target processes to elevate privileges and execute restricted system actions.
- [Process Privilege Elevation](https://awesome-repositories.com/f/security-cryptography/process-privilege-elevation.md) — Enables restricted administrative actions by modifying the current process token to include system privileges. ([source](https://github.com/trickster0/OffensiveRust/blob/master/EnableDebugPrivileges/src/main.rs))
- [Process Token Manipulators](https://awesome-repositories.com/f/security-cryptography/security-token-management/process-token-manipulators.md) — Provides utilities for stealing, modifying, and elevating security access tokens within active processes. ([source](https://github.com/trickster0/OffensiveRust/blob/master/README.md))
- [EDR Evasion](https://awesome-repositories.com/f/security-cryptography/session-token-refreshers/session-persistence/security-bypass-techniques/edr-evasion.md) — Evades security detection by patching event tracing and spoofing process identifiers. ([source](https://github.com/trickster0/OffensiveRust#readme))
- [Account Impersonation](https://awesome-repositories.com/f/security-cryptography/user-access-management/session-impersonators/account-impersonation.md) — Duplicates process tokens to execute actions under the security context of another user. ([source](https://github.com/trickster0/OffensiveRust/blob/master/token_manipulation/src/main.rs))
- [Covert Backdoors](https://awesome-repositories.com/f/security-cryptography/covert-backdoors.md) — Maintains covert communication channels via TCP and SSL connections that bypass security monitoring. ([source](https://github.com/trickster0/OffensiveRust/blob/master/README.md))
- [Keystroke Logging](https://awesome-repositories.com/f/security-cryptography/keystroke-logging.md) — Implements stealthy recording of user keyboard input to capture sensitive information. ([source](https://github.com/trickster0/OffensiveRust/blob/master/README.md))
- [SSL Verification Bypasses](https://awesome-repositories.com/f/security-cryptography/ssl-verification-bypasses.md) — Establishes secure connections using invalid or self-signed certificates by disabling SSL verification. ([source](https://github.com/trickster0/OffensiveRust/blob/master/http-https-requests/src/main.rs))
- [PE Header Parsing](https://awesome-repositories.com/f/security-cryptography/windows-pe-memory-analyzers/pe-header-parsing.md) — Analyzes the structure of PE files to implement advanced loading and injection techniques. ([source](https://github.com/trickster0/OffensiveRust/blob/master/README.md))

### Part of an Awesome List

- [Kernel Exploitation](https://awesome-repositories.com/f/awesome-lists/security/kernel-exploitation.md) — Triggers vulnerabilities in kernel drivers to execute arbitrary shellcode in kernel space. ([source](https://github.com/trickster0/OffensiveRust/blob/master/Kernel_Driver_Exploit/src/main.rs))
- [Kernel Rootkits](https://awesome-repositories.com/f/awesome-lists/security/kernel-rootkits.md) — Utilizes kernel drivers to implement rootkit functionality and perform system-level exploits. ([source](https://github.com/trickster0/OffensiveRust/blob/master/README.md))

### Operating Systems & Systems Programming

- [Direct System Call Invocations](https://awesome-repositories.com/f/operating-systems-systems-programming/direct-system-call-invocations.md) — Invokes operating system functions using inline assembly to bypass standard monitoring and avoid security detection. ([source](https://github.com/trickster0/OffensiveRust/blob/master/asm_syscall/src/main.rs))
- [Inline Assembly Payload Execution](https://awesome-repositories.com/f/operating-systems-systems-programming/inline-assembly-payload-execution.md) — Invokes kernel functions directly via inline assembly to bypass user-mode monitoring and API hooks.
- [Offensive Kernel Drivers](https://awesome-repositories.com/f/operating-systems-systems-programming/kernel-core-internals/kernel-development/kernel-driver-implementation/offensive-kernel-drivers.md) — Creates Windows kernel drivers to implement low-level system functionality and execute memory corruption exploits. ([source](https://github.com/trickster0/OffensiveRust#readme))
- [Low-Level Systems Programming](https://awesome-repositories.com/f/operating-systems-systems-programming/kernel-core-internals/process-and-memory-management/memory-management/allocation-strategies/memory-allocation-libraries/low-level-system-operations/low-level-systems-programming.md) — Interacts directly with the Windows kernel and memory via assembly and undocumented APIs for system-level control.
- [Remote Thread Injection](https://awesome-repositories.com/f/operating-systems-systems-programming/remote-thread-injection.md) — Implements the execution of payloads in target processes by allocating memory and creating remote threads. ([source](https://github.com/trickster0/OffensiveRust/blob/master/Process_Injection_CreateRemoteThread/src/main.rs))
- [Windows API Wrappers](https://awesome-repositories.com/f/operating-systems-systems-programming/windows-api-wrappers.md) — Wraps low-level Windows system functions and undocumented APIs for system manipulation.
- [UUID-Encoded Shellcode Loading](https://awesome-repositories.com/f/operating-systems-systems-programming/assembly-injection-interfaces/shellcode-generators/executable-to-shellcode-converters/uuid-encoded-shellcode-loading.md) — Converts binary payloads into UUID strings to load them into heap memory via system callbacks. ([source](https://github.com/trickster0/OffensiveRust/blob/master/UUID_Shellcode_Execution/src/main.rs))
- [Callback-Based Injection](https://awesome-repositories.com/f/operating-systems-systems-programming/assembly-injection-interfaces/shellcode-generators/process-injection-payloads/callback-based-injection.md) — Evades security software by passing a memory address as a callback function to a system API. ([source](https://github.com/trickster0/OffensiveRust/blob/master/Process_Injection_Self_EnumSystemGeoID/src/main.rs))
- [Encrypted Shellcode Injection](https://awesome-repositories.com/f/operating-systems-systems-programming/assembly-injection-interfaces/shellcode-generators/process-injection-payloads/encrypted-shellcode-injection.md) — Executes encrypted payloads by decrypting them with AES and queuing an asynchronous procedure call. ([source](https://github.com/trickster0/OffensiveRust/blob/master/Injection_AES_Loader/src/main.rs))
- [Local Shellcode Execution](https://awesome-repositories.com/f/operating-systems-systems-programming/assembly-injection-interfaces/shellcode-generators/process-injection-payloads/local-shellcode-execution.md) — Executes raw byte arrays by converting static buffers into callable function pointers for in-memory execution. ([source](https://github.com/trickster0/OffensiveRust/blob/master/Shellcode_Local_inject/src/main.rs))
- [Device Driver IOCTL Communication](https://awesome-repositories.com/f/operating-systems-systems-programming/device-driver-ioctl-communication.md) — Communicates with hardware drivers by sending specific control codes and data buffers through device handles. ([source](https://github.com/trickster0/OffensiveRust/blob/master/DeviceIoControl/src/main.rs))
- [DLL Injection Techniques](https://awesome-repositories.com/f/operating-systems-systems-programming/dll-injection-techniques.md) — Produces compiled libraries designed to execute custom logic within the memory space of a target process. ([source](https://github.com/trickster0/OffensiveRust/blob/master/Create_DLL/src/lib.rs))
- [Event Tracing Disablement](https://awesome-repositories.com/f/operating-systems-systems-programming/event-tracing-disablement.md) — Implements the ability to overwrite event writing functions to prevent the generation of security logs. ([source](https://github.com/trickster0/OffensiveRust/blob/master/patch_etw/src/main.rs))
- [Keystroke Logging](https://awesome-repositories.com/f/operating-systems-systems-programming/keystroke-logging.md) — Captures and logs characters typed by a user in real time by monitoring low-level keyboard events. ([source](https://github.com/trickster0/OffensiveRust/blob/master/keyboard_hooking/src/main.rs))
- [Manual Memory Mapping](https://awesome-repositories.com/f/operating-systems-systems-programming/manual-memory-mapping.md) — Allocates memory and maps binaries manually using direct syscalls and module stomping techniques. ([source](https://github.com/trickster0/OffensiveRust#readme))
- [PEB Traversals](https://awesome-repositories.com/f/operating-systems-systems-programming/peb-traversals.md) — Finds the base memory address of a specific library by traversing the process environment block. ([source](https://github.com/trickster0/OffensiveRust/blob/master/PEB_Walk/src/main.rs))
- [Process Relationship Spoofing](https://awesome-repositories.com/f/operating-systems-systems-programming/process-relationship-spoofing.md) — Manipulates parent-child process relationships to deceive security monitoring tools. ([source](https://github.com/trickster0/OffensiveRust/blob/master/ppid_spoof/src/main.rs))
- [Self-Deleting Executables](https://awesome-repositories.com/f/operating-systems-systems-programming/self-deleting-executables.md) — Removes the executable file from the disk immediately after execution to leave no trace. ([source](https://github.com/trickster0/OffensiveRust/blob/master/README.md))
- [System Enumeration Tools](https://awesome-repositories.com/f/operating-systems-systems-programming/system-enumeration-tools.md) — Identifies system configurations and security products through WMI queries and file system analysis. ([source](https://github.com/trickster0/OffensiveRust#readme))

### Development Tools & Productivity

- [Binary Metadata Stripping](https://awesome-repositories.com/f/development-tools-productivity/debugging-profiling-testing/debugging-diagnostics/debugging-inspection-tools/debugging-and-inspection-tools/runtime-debugging/debug-symbol-stripping/binary-metadata-stripping.md) — Removes metadata and debug symbols from compiled binaries to reduce size and hinder reverse engineering. ([source](https://github.com/trickster0/OffensiveRust/blob/master/cargo.toml))

### DevOps & Infrastructure

- [Manual PE Mapping](https://awesome-repositories.com/f/devops-infrastructure/cicd-pipeline-automation/core-build-engines/build-tooling/high-performance/linkers/multithreaded-pe-coff/pe-coff-loaders/manual-pe-mapping.md) — Parses portable executable headers to manually load binaries into memory without using the system loader.

### Networking & Communication

- [Undocumented API Interactions](https://awesome-repositories.com/f/networking-communication/low-level-api-interfaces/undocumented-api-interactions.md) — Invokes undocumented Windows system functions by analyzing the process environment block or using direct system calls. ([source](https://github.com/trickster0/OffensiveRust#readme))

### Programming Languages & Runtimes

- [PEB-Based Resolution](https://awesome-repositories.com/f/programming-languages-runtimes/compiler-interpreter-internals/linkers/runtime-symbol-resolution/peb-based-resolution.md) — Traverses the process environment block to find library base addresses and resolve function pointers dynamically.

### Software Engineering & Architecture

- [API Export Resolution](https://awesome-repositories.com/f/software-engineering-architecture/dynamic-function-mappings/api-export-resolution.md) — Finds the memory address of a specific function by parsing the export directory of a loaded module. ([source](https://github.com/trickster0/OffensiveRust/blob/master/PEB_Walk/src/main.rs))
- [System Input Hooks](https://awesome-repositories.com/f/software-engineering-architecture/event-driven-hooks/system-input-hooks.md) — Provides low-level interception of hardware input events and API calls via system hooks. ([source](https://github.com/trickster0/OffensiveRust#readme))
- [String Obfuscation Encodings](https://awesome-repositories.com/f/software-engineering-architecture/string-validation-and-normalization/string-encodings/string-obfuscation-encodings.md) — Conceals hostnames and usernames by encoding them into base64 strings to prevent plain-text analysis. ([source](https://github.com/trickster0/OffensiveRust/blob/master/base64_system_enum/src/main.rs))
- [Static Analysis Obfuscation](https://awesome-repositories.com/f/software-engineering-architecture/string-validation-and-normalization/string-encodings/string-obfuscation-encodings/static-analysis-obfuscation.md) — Hides strings and payloads from static analysis using encryption and encoding to defeat binary scanning tools.

### System Administration & Monitoring

- [WMI Data Acquisition](https://awesome-repositories.com/f/system-administration-monitoring/wmi-data-acquisition.md) — Retrieves security product details and system configuration data by executing raw WMI queries. ([source](https://github.com/trickster0/OffensiveRust/blob/master/wmi_execute/src/main.rs))

### Web Development

- [Dynamic API Resolution](https://awesome-repositories.com/f/web-development/external-api-integrations/dynamic-api-resolution.md) — Locates and executes external library functions at runtime by resolving memory addresses through the operating system. ([source](https://github.com/trickster0/OffensiveRust/blob/master/ImportedFunctionCall/src/main.rs))
