Skip to content

feat: upgrade beacon encryption to AES-256-GCM + OPSEC hardening#330

Open
En3nr4 wants to merge 1 commit into
Adaptix-Framework:dev-v1.3from
En3nr4:feat/beacon-aes-opsec
Open

feat: upgrade beacon encryption to AES-256-GCM + OPSEC hardening#330
En3nr4 wants to merge 1 commit into
Adaptix-Framework:dev-v1.3from
En3nr4:feat/beacon-aes-opsec

Conversation

@En3nr4
Copy link
Copy Markdown

@En3nr4 En3nr4 commented May 23, 2026

Summary

  • Replace RC4 with AES-256-GCM authenticated encryption across beacon and all existing listeners (HTTP, TCP, SMB, DNS)
  • Add per-payload DJB2 seed randomization: each generated payload gets a unique crypto-random seed with unique API hash constants
  • Add module stomping reflective loader (stub_rdi.x64.asm, ~2150 bytes) with LoadLibraryExA DLL overwrite
  • Add polymorphic XOR encoder with 16-byte key and PEB-walking decoder stub (x64/x86)
  • Add Discord connector for beacon agent (ConnectorDiscord.cpp/h)
  • Add keylogger module (Keylogger.cpp/h) using GetAsyncKeyState with foreground window tracking
  • Add compile-time XOR string encryption header (Obfuscate.h)
  • Key size upgrade: 16 bytes (128-bit RC4) → 32 bytes (256-bit AES)

Test plan

  • Build: make server-ext compiles beacon + all 4 listeners cleanly
  • Beacon: generate HTTP/TCP/SMB/DNS × shellcode/DLL/service × x64/x86
  • Verify AES-256-GCM encrypted communication between beacon and listeners
  • Verify existing gopher agent unaffected (non-regression)

Split from #324 as requested

- Replace RC4 with AES-256-GCM authenticated encryption across beacon and all listeners
- Add per-payload DJB2 seed randomization for unique API hash signatures
- Add module stomping reflective loader (stub_rdi.x64.asm)
- Add polymorphic XOR encoder with randomized decoder stubs
- Add Discord connector for beacon agent
- Add keylogger module (GetAsyncKeyState-based)
- Add compile-time XOR string encryption (Obfuscate.h)
- Update DNS/HTTP/SMB/TCP listeners for AES-256-GCM transport
@En3nr4 En3nr4 force-pushed the feat/beacon-aes-opsec branch from 52e7dc2 to 5e58adc Compare May 23, 2026 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant