EP27 The Challenges of Reversing Modern Languages: From C++ to Go and Rust with Jae Young Kim
Transcript
Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.
If I were a Mau author today, for example, like I think I would [music] definitely choose Rust uh go with Rust just because of like uh the sheer
advantages that you gain in the fact that it's like much more difficult to reverse on the [music] side of the defenders. Navigating that added layer of complexity is exactly what we are discussing today. Welcome to Behind the Binary. I'm Josh Stroshine and today I'm joined by Jay Young Kim, a senior malware analyst on the Flare team at Google. Today we're talking about how the shift towards modern compiled languages like Go and Rust is fundamentally redefining the reverse engineering landscape. We dive into the challenges of reversing complex runtimes, how offiscation frameworks are evolving, and what the rise of LLMs means for the future of binary analysis.
Let's get right into the episode. All right, joining me today is Jay. Uh we're going to talk about reverse engineering modern languages and and the transition maybe from learning assembly and and C
and some of the the challenges with that to more of a modern stack. I say that maybe a little not sure how modern it is because some of these languages have been around now for quite some time. So uh Jay, you you've been reversing for quite some time. Um it seems like we typically start I know when I started it was learn a little bit of C learn a little bit of assembly and then the learning curve seemed to steepen as you got into C++ and some of the objectoriented nature and how was it for you where did you start learning where do you think the challenges then as you got into C++ really started and what
make that what makes that challenging at least initially to learn how to reverse engineer it? >> Yeah. So, you know, when I started you, which isn't even that long ago in the grand scheme of things, um I think it
was still fairly common uh to see
malware that was more of a vanilla flavor of Z, which is how I typically refer to these things is like it's Z, there's no offuscation, it's, you know, straightforward wind32 APIs. Um, and in a lot of ways those are
quite uh pleasant to reverse in some ways because you could easily get a pretty full
understanding of the program. There's no massive run times uh that you have to deal with. There's no overly complex language features. Uh there's no crazy optimizations like all these things, right, that make it difficult for us. Um so yeah I think even when I just started it was fairly frequent that you would encounter samples like that um when you're reversing malware but I think in the recent years it has quickly become that like that is not something you can expect to see uh so frequently anymore. Um, so that's in
some ways unfortunate because obviously that makes the job harder for us, but uh
in some ways it's often times less satisfying because you just can't spend all of the time fully
reverse engineering even like a moderately sized C++ program say uh that's a significantly more daic prospect of like fully understanding every piece than say like a vanilla C program. Um so the landscape of the type
of malware that we see and and like what languages and runtimes that we deal with has definitely shifted dramatically. Um
and yeah, it's only gotten harder. It's never easier. So uh I think that does also maybe push the barrier to entry for people who do want to reverse and reverse malware uh significantly harder.
um in today's age than when I started which isn't you know which is less than a decade ago. So >> I guess there's a couple of things that that C++ at least you when I look back
it seems like there that was the language that kind of introduced these these these reverse engineering I don't want I say hurdles or obstacles but you you had things like virtual function tables to support inheritance and and that polymorphic behavior and then you had the standard template library and maybe the standard template library is sort of a precursor to what we see today and that you started to have to deal with a lot more boiler plate code and
you know I guess bloat in the binary. Does that does that seem like C++ then was kind of the genesis or where we started to see more of those complexities in the language for reverse engineering? >> Yeah, I mean I think C++ is challenging
in a few ways. I think one of the things is just that it's a massive language. Um, and one of the things that's a difficult
part of being a reverse engineer or like if you really want to understand a partic particular application and reverse it um to a full extent. You have
to have a pretty good grasp of the language itself, the internals. Even if you're not a master developer in that particular language, you still have to understand some of of course you obviously have to understand uh the core language features. So that in itself is like not easy for C++ is a language as
complex as C C++. Um so that's one. Um
and of course just whenever any language
introduces like more layers of indirection uh like of course C++ does with um virtual tables and supporting uh virtual functions that's [clears throat] always going to be uh difficult to deal with uh just when you're analyzing statically um and all the other kind of object-oriented uh you know features. the more of these complex features you want to support, the more you have to deal with, right, that the compiler generates, uh, which is not particularly interesting for you as a reverse engineer. Um, but that's code that ends up there in the program that you know the disassembler has to analyze. Uh, it's going to be more difficult uh for you to weed out what is the actually important stuff uh that's buried in there. So yeah, I think the the transition often for beginners from just plain vanilla C to C++ is really
big just because of uh the complexities
all the complex language features that get uh that come out and it really doesn't help of course like uh with templates right it bloats up the size of the binary um and then combined with the fact that we uh I'm sure we'll get into later with go but like unlike something like So we don't have a reliable source of uh symbols for C++. Um so that's that
really adds to the difficulty.
>> How do you think tooling has helped with or maybe not helped as as we definitely will get into to languages like Go and Rust as sort of the modern-day um you know languages that that that malware authors and red teamers are using for a variety of purposes. But uh I mean how how has the tooling kept up? Is it still very much it? I mean that was I think the biggest challenge for me getting into just this that natural progression on the learning curve was just understanding what I was even looking at and you know early disassemblers left that up to you to have to understand and the knowledge was always a bit difficult to acquire. or you'd have to find some reference in a manual somewhere and a blog entry and every once in a while maybe a talk from a a conference uh to piece together and and I think that's another area maybe we can touch on a little bit here as well is just the the learning and the education and and the AI the LLM age um but did you know how how did the tools how have the tools evolved to help with it are we still is there still a lot of manual intervention that's required in order to reconstruct C++ classes to understand because that's ultimately the goal. You just care about what it's doing functionalitywise. Just map out enough of it to understand what the purpose of the malware is.
>> You know, I think it's uh I'm not a particular expert on the latest and hottest in C++ tooling say. Um >> yeah, >> but I guess if we just kind of talk about C++ in general, you know, something that's been around a long time, we've reversed um
malware created in C++ for uh you know,
well over a decade at this point. But I would say, you know, there's no silver
bullet tooling that solves some of these hard problems as far as I can tell. Um, you know, virtual tables are still annoying to deal with. Although there is there are tooling that will help you reconstruct virtual tables and like link them more easily. So there's some quality of life improvements there, but um doesn't change the fact that there are layers of indirection that you still have to kind of sort through. Um and then yeah things
like templated code um that's still you
know in my mind at least it's an unsolved problem like if you have uh lots of code that's generated by the standard template library like you we still don't have very reliable ways of like distinguishing between all those functions. Um so
in some ways uh yeah those core difficulties uh uh remain um you know
obviously with the adv advent of like these LLM models and how great they are at code comprehension um that could significantly change potentially maybe we'll get uh very good
uh LL models that are really good at uh doing that a lot of that deconstruction for you into something that resembles more like C++ source code reliably. Um but yeah um nothing that's been completely gamechanging for example for uh that particular language. >> You you mentioned offuscations and um
you going back years into uh maybe less
common. And it seems like the maybe the a very simplistic overview is that uh you know I I guess I'm not even sure maybe maybe you could help fill in some of the details here but you know offiscations can come from a variety of sources. It can it can be a part of the source. It can be introduced by the compiler. OLVM would be a great example of that. Um you can have some sort of postbinary rewriting phase. you know, if those early days there wasn't a lot, it seems like maybe the next step was packers and cryptors um and then maybe seeing more anti- stuff baked into it.
You know, an anti-debug or maybe some anti- disassembly, you know, what what has been the shift in offiscations? Um I mean, even I would say that you could see, you know, optimizations as a form of obuscation. um where have you seen that evolution here as we're kind of working our way through the the languages and some of the complexities that they introduced >> even just um you know say five six years ago I would say it was you know we were still dealing with packagers you know for example fairly frequently like that was always I guess part of the um our
landscape when I when I started but uh I
would say gradually um we have more and
more of these you know you could call it offuscations optimizations um that are kind of manipulating
the code itself right rather than being a wrapper around the code um but like say packers I think of traditionally right they're typically wrappers around some core program and with enough skill
you know even the more complex backers you could eventually unpack it and get to the good stuff that's inside, right? Like that's not heavily offuscated. Um, but gradually uh with things like uh
virtualization based packers like VM protect um and of course like compiler based uh obuscators like OLVM. I think we've just gradually see more and more of these like uh tools that are doing a lot of
the manipulations at the compilation stage and introducing all these things that are just you you can't there's no clean way right for you to do that separation between what is the thing that's protecting the code and the code itself right um so the more they kind of
become right inter intertwined and in meshed like the more difficult it's it is for us as reverse engineers to uh figure out what what pieces to analyze. Um so yeah and that's that's all definitely also been a trend in tandem with like just that the language themselves and the type of runtimes that we deal with have gotten more complex. We've also seen of course more and more innovations on the part of marauers and like uh offuscation writers on um these
these kind of tools. So yeah, there it's it's really two-pronged. They're both, you know, none of these are really to our benefit ever. So it's it's always towards the making these binaries more difficult to analyze. >> So I I think we could probably shift to more of the modern era. Uh I say modern era. I wasn't sure before we started recording today when Go and Rust. Uh I see those as as sort of the modern languages. um at least modern languages that produce uh native code binaries.
Go and Rust have both been around since the early 2000s. It seems like they they kind of early 2005 went into some internal development or beta releases before they made it public and sort of hit their 1.0 releases. So they've actually been around for quite some time. Um is that a fair assessment of a
modern language right now? Is it is it Go? Is it Rust? are they the now I I
know we don't have stats in front of us but do you see that maybe from an RE perspective um as more common place with malware authors and red teamers and um or is it just a mixed bag still of C C++
and other other languages that you encounter? >> Yeah, I mean it's all relative right when you're talking primarily about C++ and C like which have been around for many many decades. Um so like typically yeah I would agree like uh when reverse engineers typically talk about like dealing with modern compile languages it's typically the the primary culprits there are rust and go um and yeah over the time that I've been referencing they have really gained a lot of uh mind share in mau authors of
course in just the it all kind of follows trends right in the general uh developer space. So obviously these two languages have gotten more and more mind share from just the regular developer community. Um and the more these languages have evolved and gotten popular uh they've spread it out more into uh the language choices for malware authors as well. Uh and yeah definitely when I started learning how to reverse these were definitely not really part of the landscape yet. Um, and over time
they've just grown and grown. Um, I would say they're not necessarily the majority quite yet. Uh, I'd say they
still each represent some non, you know,
significant minority. Um but I think
gradually we we'll just continue to see those uh languages get more adoption in
MA author's uh toolkits here.
>> Yeah. And it makes sense uh certainly as the support and the language mature and
the resources to develop them and of course we have uh AI assisted development patterns now or workflows as well uh that it just they would they would become more commonplace. Uh what do you see like a a divide in the type of who uses these? Is there is there a nation states that tend to go for Rust and um maybe criminal organizations that go for for Go and in researching a little bit more about the languages it seems like uh Go is designed to be easy and Rust is designed to be you know you have complete control and so this the learning curve is a lot steeper uh to work with Rust in terms of a from the development side >> I guess I don't have particular insight into uh like attribution for for whom
like these things are popular. But I guess one thing that I will say is that um I think the the go mauware that I
have seen tend typically to be um things
that uh or at least uh maybe maybe with rust specifically I think a lot of the rust malware that I have seen uh tend to for some reason be uh ransomware. Um I don't
know why but that maybe maybe among the ransomware community that's that's uh been a particularly popular choice. Um, and I would say like maybe for some good reasons in that like um, know we don't have to get into yet, but like Russ is notorious of course for being difficult to analyze and maybe the more profit oriented you are the more you have incentive to innovate on on those aspects. I don't know. Um whereas I
think uh with Go of course there are
ransomware written in Go but I think I see more of Go being used for kind of
utilities uh and also things that rely on some sort of networking like backdoor. Um, I'm not sure exactly for the reasons why that might be, of course, because they both have robust standard libraries that support most of anything that Mauard needs to do, but that's just my experience. >> Okay. Maybe taking a step back if um like why would someone choose why would a team, a criminal or whatever it happens to be, choose a language like Go or Rust over some of the more traditional languages that we've been discussing. Yeah, I think uh some of the
benefits like that we typically associate with these languages as developers maybe don't necessarily
apply. Um I think it's a lot of it is
just like comes down to uh
you know the reason that I think these languages have just gained more mind is that just more developers and more mau authors of course have just gotten more uh comfortable writing these languages to begin with. Um and I think
increasingly like everyone has wisen up to the fact that like these uh in particular rust just generates mau
that is more difficult to analyze and more difficult to reverse. Um so you know if I were a mau author today for example like I think I would definitely choose rust uh go with rust just because
of like uh the sheer advantages that you gain in in the fact that it's like much more difficult to reverse on the side of the defenders um right so if you can choose a language and of course like code generation is a lot cheaper writing code is a lot cheaper these days with the help of LM so Like if the barrier between language choice is like a lot lower, why would you not go for the languages that produce difficult binaries to reverse? You know that that's like that's not something you necessarily rely on as a way to
obuscate or secure your binary per se, but like it's an added layer of complexity, a significant added layer of complexity. So like there's no reason for you to not to make that. I guess what what could you say then is sort of like from an RE perspective. What would be some of the primary differences uh in reversing a Go or a Rust binary? Uh I know that you've recently gone through a pretty deep dive in Go internals and it's actually been published on the Flare learning hub. So if anybody is not aware, there is a great technical deep dive on the Flare Learning Hub. That's a GitHub repository. I'll make sure to add a link in the description of the podcast so you can check that out. But where would you see the primary differences?
like what what really makes the the two challenging and which one would you prefer to reverse engineer then? >> Yeah, so I can't unfortunately speak that much for Rust specifically because I don't consider myself quite an expert yet. Um but I can speak more to go uh
just because yeah I have kind of done a
more of a deeper dive on just go
binaries and the compiler um and that was a lot of it was just out of the need for myself to be educated about that topic um uh and yeah as it is with a lot
of reverse engineering topics there wasn't you know one resource that I thought was really great at making you
smarter and like more of an expert on go reversing. So that's kind of what I started to create. And um I would say maybe maybe this is
uh I don't know about a controversial take but like my take is that I think um I would much prefer reversing Go than a lot of other things in in the compiled language space. Um, and I would specifically take a go binary. Uh, you know, assuming these are unoffiscated. If you introduce offuscations, maybe it's a different story, but assuming there isn't an external offiscator in play, I would take reversing a go binary
over Rust or C++ any day. Um, and I
think it Yeah. So I think when you first open up a go binary it's quite intimidating just because yes it a lot
of things get statically linked into the binary so it's big um you know it'll be several megabytes and there will be lots of functions um it'll [snorts] look very different than just you know something like vanilla C or or C++ because the calling convention is different of course the runtime is uh complex There's
a lot of things going on there, but uh
in a lot of ways the Go language itself is much more compact than say a C++ or
or Rust. Like you could u you know that's part of the design philosophy of the language, right? It's intentionally designed to be compact and like easy for someone to get productive on it without tripping on a lot of really complex language features. and that uh really also kind of translates into uh the
binary and the compiler as well. Um so
once you do become familiar with
some of the internals and like some of the quirks of that are specific to to go like the calling convention um it is actually surprisingly you know can be a pleasant experience. Um >> you so you you're doing you went through um the deep dive uh to learn the internals of go um out of a you know is
a necessary to be more effective at reversing these. I have found over the course of my career that I usually learn just enough to get by and and don't
always take the time or have the time to really dive deep into something. How did that process work for you? Do you can you look back now and say that that ultimately was the best way to approach it? That is to to spend the time and and commit the energy to really learning the go language um from the inside out maybe. Um and what are maybe some of the challenges with trying to do that? you you have a document that certainly encapsulates some of your learning, but six months from now I would have probably forgotten 70% of what I learned and I have to go and relearn it again or have a reference like like you have created.
>> Yeah. I think um
you know one of the challenges as you say is like when you're a professional reverse engineer for you know that's you know you're reversing malware um and maybe some of it it's specific to how our team is structured and the kind of services that uh the flare team provides but yeah oftent times you don't have the
luxury of just spending head down
several months on just one specific topic, right? Um we're often jumping in
between different types of languages, different types of mau constantly. Um,
so generally when you're working on a sample, your focus is trying to analyze the sample and you're not necessarily investing a ton of time into writing down all the nuances that you're picking up about that particular uh, you know, language that you're dealing with. Um, and so yeah, there there's definitely always a need for I think someone to do the deep dive and do the comprehensive like take a step back,
look at the thing holistically and then like figure out um what are the things that you really need to be aware of when
where if you were pressed to do so, you could really fully analyze every piece
of a compiled binary. Um, even though that's not common, I do think it's necessary for us to have the knowledge and the quality references that we need
uh to be able to pull those up um when
these things are demanded of us, which sometimes does happen. Um, I would say I
really don't have a specific magic trick that I use for kind of compiling the Go reference or uh any of that deep dive. Um I did not have a particularly
uh strong background of like compilers per se. Um I did have some understanding of how these things work. You know I think generally most reverse engineers do but um I didn't say have like a deep expertise on like an existing compiler architecture from end to end. So this was really my first time digging into that um and
uh looking at the source code for ghost compiler um and the linker and kind of
doing that uh from all the way from
right the lexing and parsing phase all the way to the back end uh with go I think it's actually if you were to choose um you know your first foray into
like doing that deep kind of deep dive I think go is actually not a bad candidate of course I can't vouch for like every other language that's out there because I don't have that expertise. But just in hindsight, it's not bad just because of again the fact that Go itself is not a
huge sprawling language. Um so there's
uh some compactness to the language itself and the fact that like you don't have a separate backend like you do say with Rust and LVM. um Go's compiler um
and the code generation from all the way from the start to beginning is all just there um in the Go compiler. Uh so yeah,
you could do that deep dive without having to go to yet another sprawling codebase, right? Um so you don't have to deal with that jump. Um but other than that, it was mostly just an exercise of
uh just putting the time in. Um, unfortunately, like with a lot of these things, it's it's only when you grind an infinite amount of time into into the thing and then you get some result that feels satisfying and comprehensive. At least to me, there's really no substitute. Um, so I think a lot of the battle is just who's put the time in. Um, and who's done the the writing. Um,
so yeah, I think I I think reverse engineer like us as reverse engineers, we're always craving I think just deeper, more comprehensive references just because we bounce around so much. Um, it's just hard for us to
do that buildup of the topic in full. Uh, so yeah, I'd like to see more more of that. Of course, more of these quality kind of references from uh for all the topics that we come across. Yeah, it's it's difficult um I think to
uh to do that you as your as your if your focus is on reversing something to provide capabilities or IoC's or whatever it happens to be it's hard to also take the time to document even if it's just for yourself uh what you've encountered what you've learned to start building out that that resource uh because usually I at least I always feel the pressure to to get to the next stage and move on unless I'm building educational content and uh in which case then there's often times a little bit more room to breathe there. H how do you
do you have a a a way that you anticipate keeping up with the language as it changes and keeping references? There's always the fear I think on the other side of developing something you the deep technical dive or or a no starch book or something is that how long will it last before it ages out to a point of irrelevance. Um, I mean there will always be something I'm sure in the language and the core of how it works that will be relevant. >> Yeah, I mean I think there's really no way to get you know go around the fact that it's keeping these things up to date with as the language evolved simply just yeah takes more time. Um I I
don't quite anticipate like I think the reason why uh you know I initially wrote that was um to have everything in one
central location so we're not having to pull up multiple blog posts across
multiple you know versions of the language to have that comprehensive reference. Um I think dealing with changes in the language is actually uh something that I haven't quite addressed because when I was working on this I explicitly you know pinned pinned the language version and just dug into that particular version. Um so yeah as we get
go 1.26.27 27 and onwards. Uh there will be change changes I'm sure new language features, changes in the runtime. Um and yeah, we'll simply have to go back and update
if I can ever find the the time and energy to do that. Um but I think that's just uh simply part of the cost that
like any you know um any reverse engineer team
has to kind of pay in right like uh
that there's always just maintenance cost to the tooling and the and the writing. >> Um what about tools? Um it it seems like
you know that's that's often times an artifact of the research. You you deep dive into something to figure out how it works and some maybe some tool or some script comes out of the work to to codify the thing that you learned. Um, we have, for example, with Go Reim, which is part of this, the metadata recovery and the Go binaries, and maybe something you alluded to earlier, making them a little more pleasant to reverse, but that's kind of it. Is there
I I'm not sure what I'm I'm trying to ask here, but is there is there more tooling that could be done? I mean, is is is and we have signatures. Maybe there's definitely room for improvement there. What is what does the decompilation look like? I mean is that with these languages in particular something that is is satisfying? I mean I know decompilation is still a difficult problem to solve with with many languages as the source. I mean it's all machine code of course that is it's being recovered from. Um but uh it doesn't seem like there's a plethora of of Go tools out there. Am I missing
something? I don't spend a lot of time reversing Go. So I'm not sure I have a full purview of the reversing landscape of such a language. I would say the most important tooling uh is already written which is go resim. Um and that does take
care of uh the scenario in which uh when
you compile a go binary you can instruct the compiler/linker to strip symbols um
which is not actually what it sounds. I think a lot of people often get confused by what it means when a go binary is stripped. So, um that means removing the
symbol table and uh any of the dwarf debugging information that gets packed into the executable. But, uh there's actually a ton of metadata including the original symbols that are still left intact. Um you just have to
programmatically recover those and that's what goim does. And so, uh that is probably the most critical tooling to have in your tool belt when you're dealing with go binaries. Um and what when you run that it will uh recover all that information uh and then you can take that output and then use it to recover the symbols and the type uh type names into your disassembler of choice.
Uh I think there is room for improvement in the go reversing experience. I think one of the things um besides the fact that there's still some amount of
metadata that uh we can do more effort
we can do more work to recover. Um think the go some improvements are are coming and we're working on that. Uh I think the other big thing is just having
uh full function signatures restored onto all the library functions. um something that is not currently happening uh in any tooling as far as I
can tell. Um so and part of you know if you if you
open up a go binary in a disassembler um a lot of the busy work is actually just fixing uh wrong function signatures for like common library functions. Um so
partly maybe due to go's uh calling convention and the fact that like a lot of these uh tools are you know not
particularly designed with go in mind etc. Um but most a lot of the times the disassembler and the decompiler um have
challenges in getting the function signature correctly um just by looking at the binary itself uh which you know
obviously creates messy and incorrect decompilations um so that's probably the biggest jump in the go reversing experience but after you have those things um It's really not too bad. And I think the biggest leap in just the go reversing experience is just going to come from having uh an LLM driven tool that can
reliably convert from the assembly
decompilation into go like source code. So uh ideally the ideal scenario is that you have uh a pretty accurate representation of the disassembly and the decompilation along with the go sort
basically the go decompilation uh kind of all in tandem so that uh you know you'll of course there's nothing such as 100% yet. So you'll of course have to do the ref referencing between all those things to make sure what you're looking at uh in the decompilations is correct. But I I really think that's where we're going in uh the very immediate like very
near future. Um and obviously when we get there, right, that's a that's going to be a lot faster um and a lot more pleasant experience of reverse engineering go samples. Yeah, I that seems like uh absolutely the the trend in a in a great way. Where where do you see like at what stage then do you see the LLM's helping with that that decompilation that recovery? Is it is it picking up a certain is it like the pseudo code? Is it is it like helping and assisting? Like if you look at something like like hex-rays, you know, they have their different state and and binary ninja, you know, they have all their intermediate representations and their their their micro code and their different passes. Does it does it play a role in those stages as well with shaping and structuring specific to to go syntax?
>> Yeah, I mean I think actually the uh you
know I haven't done u extensive testing. I think that's one of the things that we'll uh or you know maybe the reverse engineering community will um have to work on is to get kind of uh maybe some
kind of effective way of doing benchmarking. But uh I I would say just
based on anecdotal evidence of me trying these things um the models are already
quite quite good at taking just the information that's there. Um, assuming we are really extracting as much as we can out of all the metadata that does exist in the binary, getting that applied, taking the disassembly and the decompilation and then feeding that into
the LM models, the latest LLM models, and then getting them to do that decompilation. They're quite good um already at doing that. Now, of course, they're not uh they still hallucinate. Um they're not perfect. And so that that that is still kind of the area where you do need some level of verification, right? So you as the human do need to have some of that understanding of go to be able to uh verify these things, but obviously the models are advancing very quickly. Um, and this just sounds like
one of those tasks that these LL models should nail. Um, uh, even if it's not 100% accuracy, like if it's, uh, accurate most of the time,
um, I think we'll see ourselves relying on that, um, kind of level of high level decompilation using LM. I think it'll be just indis indispensable for reversing a lot of these binaries uh, in the very near future. So >> with um we've talked a little bit about offiscation. Um where does or where have
you seen offiscation playing a role with
languages like Go? Um I know there's about the only thing that comes to my mind is garble. [laughter] So I think anyone who's tackled enough Go probably has come across that as a an opuscation framework. >> Yeah. I mean again just speaking specifically for go obviously a lot of I think generally the level of obuscation that
we see in mau somewhat follows just the
availability of offus skaters for those
scenarios and for go like about the only
popular office skater I can tell is you know what you already mentioned which is garble um and I think go Again, there's
legitimate reasons to need offuscators um and binary protectors like garbble um or any other ones. Um and I think for go it's uh particularly necessary again there's a reason I say if it's a if a reverse
engineer is saying that it's somewhat of a pleasant experience to like reverse that particular language then uh as a
person who is doing developer uh being a the developer and writing these tools right and you have maybe code or intellectual property you want to protect obviously there's a need uh for
offiscators to counter that, right? Um
so yeah, I I would say the biggest thing
that you can do to really uh make life
more difficult in a go binary is not even doing the code offiscation itself. It's just removing symbols. Um and that
can be done by just going through the metadata and you know replacing the names or scrambling them or deleting them whatnot. Um so uh yeah as soon as that happens then right that's a whole different ballgame because as I mentioned these uh binaries do have very massive uh like
you know they're massive statically linked binaries. So when you suddenly no longer have the symbols and you're you're not able to quickly distinguish between what is library code and what is user code and like which is which um and you don't have robust like signature libraries for these things. Uh obviously that's playing a completely different game. So now it becomes much more difficult. Um,
and you know, there's other things that the tool does, but I would say that's probably the biggest biggest piece is just the lack of symbols. >> And what uh garble doesn't do that then? Is it main like what does garble give you as an offiscator? >> Oh, it does that. And then it does a whole bunch of other things. So, it tampers with metadata. It >> hides strings. uh it'll introduce like
the typical um kind of code offiscations
you might expect in other code- based offuscators. Uh >> okay >> so doing things like uh messing with control flow and adding junk etc etc >> so it's it's pretty fullfeatured I would say yeah in terms of okay >> offiscator >> how do you think that will impact then what we just talked about with LLMs and aiding recovery of code and helping with analysis >> yeah I mean I'm going to be a little careful about uh speaking against like one particular offuscator but just speaking in general about >> maybe broadly about offuscation and like the interaction in between that and LMS um I do think that uh gradually over time like one of the key things that reverse engineers will have to deal with a as a as a profession I guess or as a community is just um making these binaries
uh I don't know if there's a good um verb term for it but like being in a state where it's like amendable to being fed into an LLM and being solved right so like maybe it's like LM input engineering or whatever uh but
yeah theoretically right so for example I think net is a good uh example of this
where uh you know net is net assemblies are very easy. There's tons of tools out there that can easily decompile um net assembly net assemblies back into uh something that resemble source code. And so there's a huge proliferation of offuscators there. Um and so you know
theoretically if you didn't have offuscated binaries these things are
LLMs are going to excel at you know analyzing the code once it's decompile level back into some something that resembles source code. Um so a I think
increasingly I expect just dealing with obvious skaters uh is going to be like the bottleneck that u once you get that unlocked it's going to mean that a lot of more of the analysis is going to be uh you can automate that right so I think more and more of our time will be spent just fighting uh offus skaters and like getting those cleaned up to the point where we can then use automated tooling to do a lot of the more mundane analysis. Right. >> Yeah. I I was going to ask as well about net because I would I'd feel a little remiss in a in this modern languages discussion. Net certainly plays a very significant role. U but you just touched on I don't know if there's anything more to add to it. Um I certainly it continues to be popularized by malware authors and red teams for probably a lot of the same reasons.
as go and rust. >> Yeah, I mean I think um
I don't know if I can necessarily speak to like why a mau author would choose one ecosystem versus the other, but certainly like net mau is popular and uh
almost always they're going to be protected with obiscators. Um and so yeah, a lot of the experience
there is just just f a lot of the experience there is just going to be fighting the offiscation. Um which can be pleasant in a way in a strange way like taking something that's offuscated
uh and then like picking it apart piece by piece and turning into some clean looking binary is somewhat of a satisfying experience in a weird way. Like I kind of think of it as akin to like digital gardening maybe like uh I'm not a gardener but that's that's the closest experience I think we can get to like gardening as reverse engineers is like uh shearing away the the messy bits
on a offuscated binary.
Yeah, >> I I spent last night um shearing away the messy bits of my garden





