RedPeanut - A Small RAT Developed In .Net Core 2 And Its Agent In .Net 3.5/4.0

FatalERROR

Golden Member
Joined
November 19, 2025
Messages
295
Reaction score
2,365
Points
93
  • Thread Author
  • #1
RedPeanut is a small RAT developed in .Net Core 2 and its agent in .Net 3.5 / 4.0. RedPeanut code execution is based on shellcode generated with DonutCS. It is therefore a hybrid, although developed in .Net it does not rely solely on the Assembly.Load. This increases the detection surface, but allows us to practice and experiment with various evasion techniques related to the dotnet environment, process management and injection. This behavior can be changed at rutime with the "managed" and "unmanaged" commands. If you are interested in a .Net C2 Framework that is consistent and can be used in an enagement, I suggest Covenant.

RedPeanut is weaponized with:

GhostPack
SharpGPOAbuse
SharpCOM
EvilClippy
DotNetToJS
SharpWeb
Modified version of PsExec
SharpSploit
TikiTorch
RedPeanut Agent

The RedPeanut agent can be compiled in .Net 3.5 and 4.0 and has pivoting capabilities via NamedPipe. The agent, when executed in an unmanaged mode, performs its own critical tasks in a separate process to prevent the AV response to detection or error during execution make you lose the whole agent.

The execution flow is as follow:
Process creation
Inject static shellcode generated with DonutCS
The loader loads and executes the stager or module

To see this hidden content, you need to "Reply & React" with one of the following reactions: Like, Love, Haha, Wow
 
Reactions: vandal1, exta4, angryave86 and 1 other person
G

gimy

Active Member
Joined
August 4, 2026
Messages
54
Reaction score
0
Points
6
  • #2
thank you
 
E

exta4

Member
Joined
October 4, 2026
Messages
37
Reaction score
1
Points
8
  • #3
thank you
 
V

vandal1

Member
Joined
October 12, 2026
Messages
24
Reaction score
0
Points
1
  • #4
thanks for sharing
 

Similar threads

Replies
1
Views
2K
intakemanifold
I
  • Tags
    .net .net core 13 2 2024 2025 404 65 agent agent development and core cybersecurity its malware analysis rat redpeanut small