Sec Note – Telegram
Sec Note
1.41K subscribers
83 photos
5 videos
31 files
155 links
Download Telegram
The_Ultimate_Anti-Reversing_Reference.pdf
723.3 KB
The Ultimate Anti-Reversing Reference
👾3
Reversing Windows Internals (Part 1) - Digging Into Handles, Callbacks & ObjectTypes
By the lovely Sina Karvandi


If you want to follow other parts of this tutorial or other tutorials, please visit here.


Methodology

#reverse
#windows
👾1
Decrease Entropy of shellcode
The more predictable you are, the less you get detected - hiding malicious shellcodes via Shannon encoding


#shellcode
#evasion
👾1
The .NET Export Portal
Via XPN
A while back I published a post looking at how to craft a .NET assembly which exposes managed code via DLL exports, RunDLL32 your .NET.


While working on some tooling recently I revisited this topic and wanted to know just why this works in the way that it does. After all, by now we’ve all seen the COM calls required to spin up the CLR, so what makes unmanaged exports so special?

#reverse
#dotnet
New blog on using CLR customizations to improve the OPSEC of your .NET execution harness. This includes a novel AMSI bypass that identified by author in 2023. By taking control of CLR assembly loads, we can load assemblies from memory with no AMSI scan.


Proof-of-concept for the AMSI bypass and an implementation of a CLR memory manager is on GitHub. We can implement custom memory routines and track all allocations made by the CLR.

https://github.com/passthehashbrowns/Being-A-Good-CLR-Host



Related Works and Resources
HostingCLR - Original implementation of CLR hosting

InlineExecute-Assembly - Original implementation of executing .NET assemblies as a BOF

Dealing with Failure: Failure Escalation Policy in CLR HostsThis is the only real example I could find of offensive tradecraft using CLR Customizations when I was initially doing this research.

Hosted Pumpkin A GitHub repository containing a proof-of-concept for implementing several CLR Customizations.

Shellcode: Loading .NET Assemblies From MemoryDonut was a great deal of help in wrangling all of the relevant data structures and definitions in C.

Customizing the Microsoft .NET Framework Common Language Runtime by Steven Pratschner – This is the definitive text on CLR Customizations. Simply a must-read if you have any interest in this area.





#redteam #net #clr #dotnet
👾2
Feeling overwhelmed trying to learn security research? (Analyzing the PayloadRestrictions.dll Export Address Filtering)

Check out the "Process of Step-by-Step" by Yarden Shafir — a great resource that breaks it down clearly.

#research #reverse #internals
Sec Note pinned «The .NET Export Portal Via XPN A while back I published a post looking at how to craft a .NET assembly which exposes managed code via DLL exports, RunDLL32 your .NET. While working on some tooling recently I revisited this topic and wanted to know just why…»
Dotnet_IMsGTC6.pdf
2.3 MB
Dotnetfile: parsing .NET PE files has never been easier

Video by Yaron Samuel