Raphael Mudge's Avatar

Raphael Mudge

@raphaelmudge.bsky.social

Riding around in the breeze. Security Thinker. Hacker. USAF Veteran. https://aff-wg.org

315 Followers  |  18 Following  |  285 Posts  |  Joined: 04.03.2025  |  1.9847

Latest posts by raphaelmudge.bsky.social on Bluesky

Post image Post image Post image

I've been playing with a C2 built around PIC modularity for the last few weeks. C2 comms are merged into the agent at link time and output as shellcode. COFFs are transformed into PICOs for postex. Evasion tradecraft can be woven in via spec files. Very scriptable using Sleep.

09.02.2026 16:39 β€” πŸ‘ 7    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0
Preview
The Islands of Invariance Crystal Palace now has a Yara rule generator. In this blog post, I’ll walk you through the design and evaluation of this feature. rule PageStream_rDLL_03495de1 { meta: description = β€œPageStre…

The Islands of Invariance

More than I ever thought I'd write about Yara signatures. Oh also, Crystal Palace has a Yara rule generator too.

aff-wg.org/2026/02/02/t...

02.02.2026 17:03 β€” πŸ‘ 7    πŸ” 4    πŸ’¬ 0    πŸ“Œ 0
Preview
GitHub - Cobalt-Strike/eden: A PoC UDRL for Cobalt Strike built with Crystal Palace that combines Raphael Mudge's page streaming technique with a modular call gate (Draugr) A PoC UDRL for Cobalt Strike built with Crystal Palace that combines Raphael Mudge's page streaming technique with a modular call gate (Draugr) - Cobalt-Strike/eden

And, here's the GitHub project for Eden Loader.

github.com/Cobalt-Strik...

23.01.2026 21:15 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Will Burgess @ beac0n 2025 - Linkers and Loaders: Experiments with Crystal Palace
YouTube video by beac0n Red Team Will Burgess @ beac0n 2025 - Linkers and Loaders: Experiments with Crystal Palace

And, just posted too: Will Burgess' Linkers and Loaders: Experiments with Crystal Palace at beac0n 2025.

www.youtube.com/watch?v=GijV...

Will and I know the same tech pains really well. Good play-through with Crystal Palace and ideas around it. I appreciate the kind words & getting the word out

23.01.2026 21:15 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Cobalt Strike blog ppost by x.com/joehowwolf on using Crystal Palace to mash-up Page Streaming and Draugr Call Stack Spoofing into a Cobalt Strike UDRL.

(Again, I really love the comics. They are perfect).

23.01.2026 21:15 β€” πŸ‘ 9    πŸ” 2    πŸ’¬ 1    πŸ“Œ 0
Preview
Georgia Weidman on X: "A few of you asked if I had the old @novahackers videos. Yes, I do, and I'm rereleasing them! Here are the talks from December 2010, including what is possibly the very first demo of Armitage (before Cobalt Strike, there was Armitage) from @armitagehacker, a talk on hacking" / X A few of you asked if I had the old @novahackers videos. Yes, I do, and I'm rereleasing them! Here are the talks from December 2010, including what is possibly the very first demo of Armitage (before Cobalt Strike, there was Armitage) from @armitagehacker, a talk on hacking

Georgia Weidman has posted some December 2010 NovaHackers talks, including my first talk on Armitage.

x.com/georgiaweidm...

Video link:

www.youtube.com/watch?v=ZtnK...

23.01.2026 20:17 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 1

A nice workaround against my YARA rule.
kuwaitist.github.io/posts/Patchi...

22.01.2026 13:55 β€” πŸ‘ 9    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0

"By releasing these tables, Mandiant aims to lower the barrier for security professionals to demonstrate the insecurity of Net-NTLMv1."

16.01.2026 03:00 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
BOF Cocktails Crystal Palace is a PIC framework that can be used to write, among other things, prepended DLL loaders. The philosophy of the project is to apply evasion tradecraft (also written as PIC), to a capabil...

I pushed a 1-change update to Crystal Palace. linkfunc now works with make coff. link (in a make coff context) merges the linked data into the .rdata section.

Both are to support the BOF cocktails idea.

rastamouse.me/bof-cocktails/

15.01.2026 10:07 β€” πŸ‘ 9    πŸ” 0    πŸ’¬ 0    πŸ“Œ 1
Preview
Keeping bin2bin out of the bin Happy New Year. I’ve got another Crystal Palace and Tradecraft Garden update for you. My focus this development cycle was making Crystal Palace’s binary transformation framework more robust. …

Keeping bin2bin out of the bin

aff-wg.org/2026/01/13/k...

Another TCG update. +shatter, +regdance, and -O1 MinGW support.

Bigger emphasis in this cycle was hardening the binary transformation foundation--which led to some adventures (details in the post)

13.01.2026 21:05 β€” πŸ‘ 10    πŸ” 1    πŸ’¬ 0    πŸ“Œ 2

The caveat emptor which is in Daniel's post: Crystal Palace needs a patch to get rid of an over broad error check. I'll address this in the next release and even make sure my local unit tests are covering/working with COFF output more.

This does change how I see COFF output in Crystal Palace though

04.01.2026 00:12 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Further, while a transparent time-of-use BOF hook isn't there for CS (yet?):

BOFs could be processed offline to add your favored tradecraft cocktail to them. Any C2 could benefit from that.

Further, any C2 could build this time-of-use hook for their BOFs too.

TCG is C2/capability agnostic

04.01.2026 00:12 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

IAT hooking to provide tradecraft to your agent AND any BOFs it might run loses the above benefit. It requires an overbuilt tradecraft package acting on what the agent and potential post-ex tools might do. Forces a trade-off to not do some things.

BOF cocktails allow right-sized tradecraft per BOF.

04.01.2026 00:12 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Let me sell this a little more:

Part of the model of Crystal Palace is to over-build your tradecraft. Come up with hooks, rewrite various APIs, etc. Make one big monster thing. Merge it in. And, Crystal Palace LT-optimizes to right-size the tradecraft to the capability. You get only what you need.

04.01.2026 00:12 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

TCG's vision is to separate tradecraft from capability and encourage an ecosystem of ground truth research.

I started w/ UDRLs because the need & interfaces are there. This post applies the same ideas to BOFs. Each working tradecraft/capability pairing is a win.

Some caveats (see post), exciting.

03.01.2026 23:30 β€” πŸ‘ 4    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0

I managed it: marketplace.visualstudio.com/items?itemNa...

02.01.2026 00:34 β€” πŸ‘ 4    πŸ” 3    πŸ’¬ 0    πŸ“Œ 0
Post image Post image

Comment out line 54 of src/crystalpalace/export/ParseImport.java. That'll take care of the error. Just did a quick hacky POC and it worked with my unit test BOF runner.

I'll work a more permanent fix to that in the next release. (I used LIbTCG only for dprintf).

I think this is an interesting use.

02.01.2026 00:33 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

(My original gut with make coff was an intermediate format to build a PIC/PICO tool with Crystal Palace and distribute that as an artifact that another Crystal Palace script, later and separately, could apply tradecraft too. In my roadmap, not this release yet, I'll have to sit with this again)

02.01.2026 00:06 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Yes, merge hooks into the BOF and use attach. make coff output. Leave API alone. Fingers crossed, it's something C2s can use.

Earlier, I listed different possibilities (e.g., PIC, PICOs, etc.)--but for BOF in a C2, I'd think coff output might be the path.

Caution, make coff isn't well exercised.

02.01.2026 00:04 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

import to pass an API in if it's make object. For make pic I've merged an API impl and did some remap __imp_BeaconPrintf BEACON$BeaconPrintf and then attach'd t those. For make coff? I haven't touched that feature since it shipped. If using COFF w/ CS, leave imported APIs alone, but merge/attach?

01.01.2026 22:17 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

This is fork&run to execute BOFs in a remote process, same API, and get output back over a pipe--demonstrated with Havoc.

Same arch could support explicit injection. Add-in an injector artifact + psexec, could remotely run a BOF without an agent and get output back too. bofexec? :)

31.12.2025 23:51 β€” πŸ‘ 6    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

A path (don't know if CS has hooks for this, not sure if make coff would hold up) would be the ability to pair BOFs or other things with +optimize'd tradecraft cocktails (e.g., merge it in, attach/redirect) vs. having them inherit from the parent agent's hooks. Limits exposure of that stuff too.

31.12.2025 22:38 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 3    πŸ“Œ 0

Sounds like a chicken or egg problem. What if you don't IAT hook GetProcAddress? Doesn't let hooks propagate downstream to BOFs and things, but would solve this issue?

31.12.2025 13:33 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
GitHub - pard0p/Remote-BOF-Runner: Remote BOF Runner is a Havoc extension framework for remote execution of Beacon Object Files (BOFs) using a PIC loader made with Crystal Palace. Remote BOF Runner is a Havoc extension framework for remote execution of Beacon Object Files (BOFs) using a PIC loader made with Crystal Palace. - pard0p/Remote-BOF-Runner

To wrap up the year, I've published this Havoc extension that enables remote execution of Beacon Object Files (BOFs) using a PIC loader built with Crystal Palace.

github.com/pard0p/Remot...

31.12.2025 11:20 β€” πŸ‘ 4    πŸ” 2    πŸ’¬ 0    πŸ“Œ 1
Preview
GitHub - Henkru/cp-dfr-defs: Dynamic Function Resolution (DFR) definitions for Crystal Palace Dynamic Function Resolution (DFR) definitions for Crystal Palace - GitHub - Henkru/cp-dfr-defs: Dynamic Function Resolution (DFR) definitions for Crystal Palace

WinAPI DFR remaps for Crystal Palace to automatically convert Func() to Module$Func(). Goodbye preprocessor macros πŸ‘‹. github.com/Henkru/cp-df...

20.12.2025 11:02 β€” πŸ‘ 10    πŸ” 3    πŸ’¬ 0    πŸ“Œ 0

And, migration complete.

Pleased to keep my 1-2 9s of reliability promise.

19.12.2025 21:12 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Server came back a few hours ago. Hypervisor outage. I gave provider a green light to migrate my server.

We'll have some downtime again between when they migrate and I handle the post-migrate configuration changes.

19.12.2025 20:50 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

My open source projects server is down. I got a ticket in with the provider as I believe it's something on their end.

Hopefully a short outage. I'm engaged with it and will post a reply here when it's back up or if there's a pressing and exciting update.

19.12.2025 12:20 β€” πŸ‘ 6    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

Discovering Tradecraft Garden by x.com/jjavierolmedo

hackpuntes.com/posts/explor...

A gentle introduction to the project and specifically using the ./link command & running examples. I'm glad the guardrails example (now follow-on loader agnostic) was called out. It's a waiting gem in the corpus.

12.12.2025 01:57 β€” πŸ‘ 4    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0

"emerald-template is a CMake-based project template designed for developing and debugging Reflective DLL Loaders using the Crystal Palace linker."

"This allows for source-code level debugging of your loader logic from Windows (and theoretically Linux) systems"

github.com/0xTriboulet/...

10.12.2025 12:12 β€” πŸ‘ 5    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

@raphaelmudge is following 17 prominent accounts