nim-shellcode-fluctuation

Encrypts in-memory shellcode with XOR or RC4 between C2 callbacks.

15|1|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/AeonDave/malskill --skill nim-shellcode-fluctuation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nim-shellcode-fluctuation
Source: https://github.com/AeonDave/malskill/tree/main/offensive-tools/evasion/nim-shellcode-fluctuation
Command: npx skills add https://github.com/AeonDave/malskill --skill nim-shellcode-fluctuation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires winim, nim-mangle, and includes references (resource) components.

What problem does it solve?

This Skill helps evade detection by memory scanners, particularly Endpoint Detection and Response (EDR) systems, by encrypting shellcode in memory between executions.

Core Features & Use Cases

  • Memory Encryption: Encrypts injected shellcode in memory using XOR or RC4 between C2 callbacks.
  • Dynamic Memory Permissions: Modifies memory page permissions (RX, RW) to hide shellcode during sleep periods.
  • Use Case: Deploying implants that need to remain undetected by in-memory scanning of RWX regions, especially in environments with active EDR solutions.

Quick Start

Build the agent by running nim c -d:release -d:strip --opt:size -o:agent.exe fluctuation.nim after installing Nim and the winim library.

Frequently Asked Questions about nim-shellcode-fluctuation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I evade EDR memory scanning for injected shellcode on Windows?

Encrypt injected shellcode in memory between C2 callbacks to evade EDR memory scanning. This technique uses XOR or RC4 encryption and modifies memory page permissions to hide payloads in RWX regions during sleep intervals on Windows x64 systems.

How does shellcode fluctuation work to bypass memory scanners?

Shellcode fluctuation works by encrypting injected shellcode in memory during sleep periods and dynamically modifying memory page permissions between RX and RW. This prevents EDR memory scanners from identifying malicious payloads in RWX regions during sleep intervals.

Can I use Nim to encrypt shellcode and bypass EDR on Windows x64?

Yes, you can use Nim on Windows x64 to encrypt shellcode and bypass EDR memory scanning. This approach requires the winim library for Windows API calls and the nim-mangle library for code obfuscation, compiling with MSVC or MinGW compilers.

What is the best way to hide shellcode in RWX memory regions from EDR?

The best way to hide shellcode in RWX memory regions is to encrypt the payload between C2 callbacks and modify memory page permissions to RX or RW during sleep periods. This prevents memory scanners from detecting active shellcode.

Do I need nim-mangle to obfuscate shellcode encryption in Nim?

Yes, you need the nim-mangle library to obfuscate shellcode encryption in Nim. It is a required dependency for this evasion technique, alongside the winim library for Windows API interactions, to successfully bypass EDR memory scanning.

Why does my injected shellcode get detected by EDR during sleep periods?

Injected shellcode gets detected by EDR during sleep periods because it remains unencrypted in RWX memory regions. Memory scanners scan these regions for malicious payloads, so encrypting shellcode between C2 callbacks and modifying page permissions prevents detection.