Decrypting AsyncRAT Configuration Values with CyberChef @0xdf
Decrypting AsyncRAT Configuration Values with CyberChef  @0xdf
Uploaded May 2024 | Updated November 2026, 3 hours ago
I've got a malware sample that has a bunch of configuration values that are decrypted using AES, but not in the standard way that CyberChef would do it. I'll show how the program is setup, and then pivot to CyberChef using many operations, including Register, Derive PBKDF2 key, and AES Decrypt to get the IV and ciphertext, generate the key, and decrypt the value. This malware comes from the Einladen Sherlock challenge from HackTheBox.

Final recipe: gchq.github.io/CyberChef/#recipe=From_Base64('A-Za-z0-9%2B/%3D',true,false)To_Hex('None',0)Regular_expression('User%20defined','%5E.%7B64%7D(.*)',true,true,false,false,false,false,'List%20capture%20groups')Register('%5E(.%7B32%7D)',true,false,false)Register('%5E.%7B32%7D(.*)',true,false,false)Derive_PBKDF2_key(%7B'option':'Base64','string':'d0cyOFJwZlBBSXBnalhEVFd2bEdiVHRkQnpybnRBeVM%3D'%7D,256,50000,'SHA1',%7B'option':'Hex','string':'bfeb1e56fbcd973bb219022430a57843003d5644d21e62b9d4f180e7e6c33941'%7D)Register('(%5B%5C%5Cs%5C%5CS%5D*)',true,false,false)Find_/_Replace(%7B'option':'Regex','string':'%5E.*$'%7D,'$R1',true,false,true,false)AES_Decrypt(%7B'option':'Hex','string':'$R2'%7D,%7B'option':'Hex','string':'$R0'%7D,'CBC','Hex','Raw',%7B'option':'Hex','string':''%7D,%7B'option':'Hex','string':''%7D)&input=K1BibzV4Wk1yaGpKSHgzSGhkWUpIa2RoK3EycHlnMXlZWmw5N2IwMjJqdlNWekhqcitvZS8zdlZidFV2RENvREFzVytqTUJMYnRLQmZmV3E4eDI3REZURFYzRUs5UkpuZDNTWTZPQkQ4R289
HackTheBox Einladen Blog post: 0xdf.gitlab.io/2024/05/02/htb-sherlock-einladen.html
HackTheBox Einladen: app.hackthebox.com/sherlocks/Einladen
embee_research: youtube.com/@EmbeeResearch

☕ Buy Me A Coffee: buymeacoffee.com/0xdf

[00:00] Introduction
[00:55] Settings class (DotPeek)
[01:40] AES fails
[02:05] Dynamic decrypt
[03:00] Custom AES object
[05:00] Information summary
[05:26] Getting salt
[07:48] Saving IV and ciphertext
[10:28] Derive key
[11:51] Decrypting
[12:51] Decrypting other inputs
[13:06] Conclusion

#pentest #ctf #malware #reverseengineering #cyberchef #asyncrat #aes
Decrypting AsyncRAT Configuration Values with CyberChefDay 13 - A Maze of Twisty Little Cubicles [Revival of Code 2023 - Advent of Code 2016]PCAP and Web Log Forensics [Sans Holiday Hack 2022 - Web Ring]Python Debugging [Chemistry - HackTheBox]Claw Contraption [Day 13 - Advent of Code 2024 - Python]Day 11 - Radioisotope Thermoelectric Generators [Revival of Code 2023 - Advent of Code 2016]Trash Compactor [AOC2025 Day 6]Hash Extension Attack [HackTheBox Ouija]Analysis of a Python / GRPC Application [PC - HackTheBox]Configuring VSCode to Debug Python [AOC2023 Python]Day 7 - Internet Protocol Version 7 [Revival of Code 2023 - Advent of Code 2016]MinMax [HackTheBox - Coding Challenge]
0xdf |

Decrypting AsyncRAT Configuration Values with CyberChef

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER