39 comments

  • quux0r19 hours ago
    While on the topic, I want to highlight two incredible plugins for Ghidra: <a href="https:&#x2F;&#x2F;github.com&#x2F;jtang613&#x2F;GhidrAssist" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jtang613&#x2F;GhidrAssist</a> And <a href="https:&#x2F;&#x2F;github.com&#x2F;jtang613&#x2F;GhidrAssistMCP" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jtang613&#x2F;GhidrAssistMCP</a><p>Being able to hook Claude code up to this has made reversing way more productive. Highly recommend!
    • easyThrowaway36 minutes ago
      Hopefully this will help decompilation projects into generating better pseudocode. Some sort of &quot;generate code -&gt; build and execute -&gt; test against existing executable if it behaves like the original -&gt; change code again&quot; loop.
    • mixologic18 hours ago
      A friend of mine has also been working on a Ghidra MCP: looks like theres a few of them: <a href="https:&#x2F;&#x2F;github.com&#x2F;themixednuts&#x2F;GhidraMCP" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;themixednuts&#x2F;GhidraMCP</a>
    • nazgulsenpai17 hours ago
      <a href="https:&#x2F;&#x2F;github.com&#x2F;LaurieWired&#x2F;GhidraMCP" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;LaurieWired&#x2F;GhidraMCP</a> is great also
      • GlumWoodpecker13 hours ago
        The author of this has an excellent tech YouTube channel:<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;@lauriewired" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;@lauriewired</a>
    • tomasphan18 hours ago
      How willing is Claude to help you there?
      • quux0r16 hours ago
        It&#x27;s actually pretty good. I usually append &quot;for bug bounties&quot; to any prompts but, honestly, as long as you don&#x27;t say &quot;write me malware&quot;, it&#x27;s pretty willing to rename everything and even do a full security sweep.
  • stared18 hours ago
    Awesome soft!<p>It works surprisingly nicely with AI agents (I mean, like Cursor or Claude Code, I don&#x27;t let it run autonomously!).<p>Here on detecting malware in binaries (<a href="https:&#x2F;&#x2F;quesma.com&#x2F;blog&#x2F;introducing-binaryaudit&#x2F;" rel="nofollow">https:&#x2F;&#x2F;quesma.com&#x2F;blog&#x2F;introducing-binaryaudit&#x2F;</a>). I am now in process of recompiling and old game Chromatron, from PowerPC binary to Apple Silicon and WASM (<a href="https:&#x2F;&#x2F;p.migdal.pl&#x2F;chromatron-recompiled&#x2F;" rel="nofollow">https:&#x2F;&#x2F;p.migdal.pl&#x2F;chromatron-recompiled&#x2F;</a>, ready to play, might be still rough edges).
  • mahaloz17 hours ago
    Since we’re talking about decompilers, might as well mention the community around the research area: <a href="http:&#x2F;&#x2F;decompilation.wiki&#x2F;" rel="nofollow">http:&#x2F;&#x2F;decompilation.wiki&#x2F;</a><p>As well as the research history (slated to be updated in a few days): <a href="https:&#x2F;&#x2F;mahaloz.re&#x2F;dec-progress-2024" rel="nofollow">https:&#x2F;&#x2F;mahaloz.re&#x2F;dec-progress-2024</a>
  • alexrp18 hours ago
    Binary Ninja deserves a mention in these threads: <a href="https:&#x2F;&#x2F;binary.ninja" rel="nofollow">https:&#x2F;&#x2F;binary.ninja</a><p>I&#x27;ve used IDA, Ghidra, and Binary Ninja a lot over the years. At this point I much prefer Binary Ninja for the task of building up an understanding of large binaries with many thousands of types and functions. It also doesn&#x27;t hurt that its UI&#x2F;UX feel like something out of this century, and it&#x27;s very easy to automate using Python scripts.
    • dang14 hours ago
      One large-ish past thread and a few tinies, for anyone curious:<p><i>Binary Ninja – an interactive decompiler, disassembler, debugger</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41297124">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41297124</a> - Aug 2024 (1 comment)<p><i>Binary Ninja – 4.0: Dorsai</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39546731">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39546731</a> - Feb 2024 (1 comment)<p><i>Binary Ninja 3.0: The Next Chapter</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=30109122">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=30109122</a> - Jan 2022 (1 comment)<p><i>Binary Ninja – A new kind of reversing platform</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12240209">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12240209</a> - Aug 2016 (56 comments)
    • b816 hours ago
      Yep, it&#x27;s cheaper than IDA and I like the UI better. Also I love that it&#x27;s made by game hacking folks (my clique).
      • SoraNoTenshi40 minutes ago
        I believe the Binja folk originate from the CTF folk.
    • charcircuit15 hours ago
      Wow, they made it free. The last time I used it I bought a $100 subscription for non commercial use.
    • dogma113814 hours ago
      BN is nice if someone is paying for it, but has too many limitations especially for the most common use case which is security.
      • WalterGR14 hours ago
        What are the limitations?
        • dogma113813 hours ago
          No shellcode decoding, no plugin support and rather limited IR.
          • alexrp12 hours ago
            &gt; No shellcode decoding<p>Can&#x27;t speak to this as I don&#x27;t RE for security purposes, but:<p>&gt; no plugin support and rather limited IR.<p>this I&#x27;m profoundly confused by. BN has multiple IRs that are easily accessible both in the UI and to scripts. And it certainly has a plugin system too.
          • saagarjha12 hours ago
            Binary Ninja definitely has plugins?
    • capl17 hours ago
      Binary Ninja seems way ahead in terms of UX, as a hobby reverser. It&#x27;s my default as well.
      • zo13 hours ago
        It&#x27;s basically &quot;VS Code&quot; UX with dark mode. Come on, is this some sort of joke? Serious question.
        • EE84M3i11 minutes ago
          Last time I used them - Ghidra, and to some extent IDA, had UXes that were very difficult for new users to pick up and frequently deviate from standard expectations for modern desktop apps because they have two decades of baggage. In contrast binary ninja is very easy to explore and has many fewer surprises.
    • xvilka18 hours ago
      In particularly I like their approach of creating modern IR pipeline.
    • ActorNightly17 hours ago
      Also this.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;jart&#x2F;blink" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jart&#x2F;blink</a>
      • saagarjha12 hours ago
        This is not really related
    • 1vuio0pswjnm715 hours ago
      The Linux free trial version is a 400MB .zip file including a 255.2MB &quot;binaryninja&quot; shared binary<p><a href="https:&#x2F;&#x2F;github.com&#x2F;Vector35&#x2F;binaryninja-api&#x2F;releases&#x2F;download&#x2F;stable%2F5.2.8614&#x2F;binaryninja_free_linux.zip" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Vector35&#x2F;binaryninja-api&#x2F;releases&#x2F;downloa...</a>
  • n00bs13 hours ago
    Also worth mentioning this great MCP integration <a href="https:&#x2F;&#x2F;github.com&#x2F;cyberkaida&#x2F;reverse-engineering-assistant" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cyberkaida&#x2F;reverse-engineering-assistant</a>
  • palata19 hours ago
    Taking the opportunity to ask: are there nice recommended resources for a beginner to start with reverse engineering (ideally using Ghidra)? Let&#x27;s say for an experienced developer, but not so experienced in reverse engineering?<p>I guess one issue I have is that I don&#x27;t have good ideas of fun projects, and that&#x27;s probably something I need to actually get the motivation to learn. I can find a &quot;hello world&quot;, that&#x27;s easy, but it won&#x27;t help me get an idea of what I could reverse engineer in my life.<p>For instance I have a smartspeaker that I would like to hack (being able to run my own software on it, for fun), but I don&#x27;t know if it is a good candidate for reverse engineering... I guess I would first need to find a security flaw in order to access the OS? Or flash my own OS (hoping that it&#x27;s a Linux running there), but then I would probably want to extract binary blobs that work with the buttons and the actual speaker?
    • baby_souffle18 hours ago
      &gt; Taking the opportunity to ask: are there nice recommended resources for a beginner to start with reverse engineering (ideally using Ghidra)? Let&#x27;s say for an experienced developer, but not so experienced in reverse engineering?<p>The good news is that there has never been MORE resources out there. If you want to use this learning expedition as an excuse to also build up a small electronics lab then $100 on ali express to buy whatever looks cheap and interesting and then tear it apart and start poking around to find where the firmware lives. Pull the firmware, examine it, modify it and put it back :)<p>This guy has a discord server with a specific &quot;book club&quot; section where they all choose a cheap $thing and reverse engineer it: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;@mattbrwn&#x2F;about" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;@mattbrwn&#x2F;about</a><p>I can&#x27;t help much with &quot;traditional&quot; app&#x2F;software RE work, sorry.
      • palata16 hours ago
        Oh, it feels like it may be what I want! Find some cheap electronic device and hack it!<p>Thanks a lot!
        • baby_souffle13 hours ago
          I would also suggest spending a few minutes to set up an mCP server with ghidra once you&#x27;ve learned the basics of navigating and working inside of ghidra.<p>Turns out that frontier grade llms are absolutely fantastic for extremely advanced static analysis. If you go one step further and manage to get your firmware running inside of an emulator or other place where you can attach GDB... Then putting an mCP server on that as well unlocks so much insane potential.
          • throwerxyz10 hours ago
            Would that include free use LLMs. I assume getting into something would be tricky if you are assuming they&#x27;re going to drop several hundreds of tokens a month on it.<p>I feel like the tendency for people to assume others have nearly $500 or so of credits on their AI to blow every month is kinda crazy.<p>Reminds me of the &quot;just get Netflix, Prime, etc.&quot; ending up with a $100&#x2F;m bill.
    • hxtk15 hours ago
      The Nightmare Course [1], so named because someone with that skillset (developing zero-days) is a nightmare for security, not because the course itself is a nightmare, and Roppers Academy [2] are both good for learning how to reverse engineer software and look for vulnerabilities.<p>The nightmare course explicitly talks about how to use Ghidra.<p>1: <a href="https:&#x2F;&#x2F;guyinatuxedo.github.io" rel="nofollow">https:&#x2F;&#x2F;guyinatuxedo.github.io</a> 2: <a href="https:&#x2F;&#x2F;www.roppers.org" rel="nofollow">https:&#x2F;&#x2F;www.roppers.org</a>
      • decidu0us903411 hours ago
        The first is certainly interesting, but it won&#x27;t help you develop 0day. I would think of it like more of a collection of fun puzzles and esoterica. For example all the heap unliking&#x2F;metadata attacks and House of X stuff is pretty antiquated. These will help you win ctfs but are certainly not a prerequisite or even all that relevant to contemporary vuln research. Most of the public research I see is probably at least a year behind the current meta (and I expect the public internet will only grow more quiet over time)
        • pertique6 hours ago
          What resources would you recommend now? Even if they&#x27;re a year behind the meta, it&#x27;s a lot easier to start a year behind than 6+
    • umanghere12 hours ago
      I started reverse engineering at 13 with an IDA Pro of questionable provenance - at that time, I found it quite difficult.<p>One thing which really helped me (and I wholeheartedly recommend) is to write simple programs, run them through the compiler and then in the disassembler. It really helps build a correspondence between program structure and its object code.<p>Eventually, you can make it even more fun and challenging by stripping debug symbols and turning on compiler optimisations.<p>Happy reversing!
    • bpye11 hours ago
      Finding something with symbols will help a lot. Symbols end up getting left in Linux and macOS builds fairly often.<p>The reverse engineering I&#x27;ve learned has generally been to fix something that has annoyed me - for example I reverse engineered part of RCT3 to fix mouse input with high poll rates and allow for resizable windows [0]. Certainly easier to approach than trying to get into a closed device since you can attach a debugger.<p>[0] - <a href="https:&#x2F;&#x2F;mastodon.social&#x2F;@benpye&#x2F;109261545643008493" rel="nofollow">https:&#x2F;&#x2F;mastodon.social&#x2F;@benpye&#x2F;109261545643008493</a>
    • 0x54MUR4119 hours ago
      If you are into the book, I would recommend The Ghidra Book from No Starch publisher <a href="https:&#x2F;&#x2F;nostarch.com&#x2F;ghidra-book-2e" rel="nofollow">https:&#x2F;&#x2F;nostarch.com&#x2F;ghidra-book-2e</a>.<p>The book is designed for beginner and advance users.
    • unleaded18 hours ago
      Somewhat unconventional (and i&#x27;m not really a seasoned reverse engineer so take it with some salt) but I started by hacking old video games (nes, gameboy, arcade.. that kind of thing). You could start with making basic action replay RAM cheats to e.g. give Mario infinite lives, then you can use breakpoints, the debugger, and a 6502 ISA reference to edit instructions and make ROM patches.<p>from then you can use things like Ghidra (which supports a lot of those old CPU arches) for more advanced analysis and make the game do almost whatever the hell you want if you have the patience.<p>I think a lot of the skills will transfer quite well (obviously not 1:1, you will need to learn some things) to the more employable side of RE if that&#x27;s what you&#x27;re interested in
      • palata16 hours ago
        Thanks! I have been &quot;hacking&quot; with games in the past (getting infinite lives and such) or bypassing some licence check (back then it was with OllyDbg).<p>I guess I&#x27;m struggling to transfer that to &quot;real-life&quot; scenarios. Like getting something useful out of reverse engineering (getting infinite lives is interesting to see that I can tamper with the game, but it&#x27;s not exactly useful).
        • stevekemp13 hours ago
          Honestly unless you&#x27;re working in low-level fields, such as embedded hardware, or optimized code generation, those are real-life scenarios!<p>(Thinking more of license-checking, and serial-number generation rather than infinite lives.)
    • ramuel18 hours ago
      <a href="https:&#x2F;&#x2F;pwn.college" rel="nofollow">https:&#x2F;&#x2F;pwn.college</a> has really good modules&#x2F;dojos that cover a bunch of reverse engineering concepts.
    • gray_charger19 hours ago
      You can start here to learn reverse engineering.<p><a href="https:&#x2F;&#x2F;beginners.re&#x2F;" rel="nofollow">https:&#x2F;&#x2F;beginners.re&#x2F;</a>
    • brynnbee17 hours ago
      I personally learn best by doing which is why I love learning with LLMs. They&#x27;re going to be wrong a lot, and give bad advice, and do things in silly ways. I learn well from the process of working with them, seeing them fail constantly, then learn the tool yourself by researching what it&#x27;s doing wrong to fix it. I just attempted to use Ghidra to reverse engineer the game Shenmue from Dreamcast. I was previously unfamiliar with Ghidra and I mostly did it as a learning exercise, but it wasn&#x27;t really the right tool for the job. However the project itself made lots of progress without it:<p><a href="https:&#x2F;&#x2F;www.newyokosuka.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.newyokosuka.com&#x2F;</a>
    • quux0r19 hours ago
      So a couple things. Bruce Dang’s book, while a little old, is still a great spot to get started. Another great book is Blue Fox by Maria Markstedter for ARM. From there, finding small binaries and just trying to get the “flow” is a good next step, for me this is largely renaming functions and variables and essentially trying to work the decompiled code into something readable, then you can find flaws.<p>So for the second thing, pulling the data off chips like that typically involves some specialized hardware, and you have to potentially deal with a bunch of cryptographic safeguards to read from the chip’s memory. Not impossible though, and there are not always good safeguards, but might be worth checking out some simpler programs and working up to it, or learning some basic hardware hacking to get an idea of how that process works.
      • palata16 hours ago
        Interesting! Yeah maybe my first step is on the hardware side, which I guess is what is blocking me right now.
    • giancarlostoro14 hours ago
      Find an old piece of software you care about that is broken somehow, and abandoned. Most of my friends use these types of tools to reverse engineer abandoned MMOs and remake servers for them.
      • boltzmann-brain14 hours ago
        That&#x27;s very deep water to dive into. I suggest something simpler, like an ancient irc client that asks you to sign up, or an archive extractor.
        • giancarlostoro14 hours ago
          Well I didnt mean dive into an MMO right away, but yes I recommend smaller programs.
    • wrboyce9 hours ago
      Allow me to shamelessly plug my blog, I have been (very slowly!) re-visiting microcorruption and writing up the solutions in a tutorial-esque fashion.<p><a href="https:&#x2F;&#x2F;lovesexsecretgod.com" rel="nofollow">https:&#x2F;&#x2F;lovesexsecretgod.com</a>
      • saagarjha6 hours ago
        Can I ask why the name
        • iv424 hours ago
          <a href="https:&#x2F;&#x2F;www.imdb.com&#x2F;title&#x2F;tt0113243&#x2F;quotes&#x2F;?item=qt0448592#:~:text=the%20four%20most,Plague%3A%20god" rel="nofollow">https:&#x2F;&#x2F;www.imdb.com&#x2F;title&#x2F;tt0113243&#x2F;quotes&#x2F;?item=qt0448592#...</a>
    • commandersaki6 hours ago
      Go through the katas at <a href="https:&#x2F;&#x2F;pwn.college" rel="nofollow">https:&#x2F;&#x2F;pwn.college</a>
    • ActorNightly17 hours ago
      [flagged]
      • palata17 hours ago
        Since we&#x27;re judging each other, I&#x27;m genuinely wondering how bad you are at making friends. I mean, non-LLM friends. Relatives don&#x27;t count.
        • ActorNightly14 hours ago
          Im neurodivergent as hell, so good at all. But I also don&#x27;t really require friendships, as people interactions are very draining on me.
          • palata14 hours ago
            &gt; Im neurodivergent as hell<p>Well that may explain it, then, thanks for letting me know.<p>I realise that my question was not super clear because... well I didn&#x27;t really know what to ask :-). I was just trying to engage in a human interaction. Say I am at a party with friends and strangers, and when I get introduced to a stranger, they say &quot;I am a professional reverse engineer&quot;. Because I find that interesting, I will start asking questions. And I may well start trying to explain what I find interesting, giving the expert an angle to start talking about it.<p>Of course I could just go home and read about reverse engineering. But at that moment, in that party, I want to enjoy a discussion about it with a human being. Part of the experience is that I get to hear what some other human thinks about it.<p>I am not there for a formal course, I am there to listen to what a human being has to say about it. And obviously an LLM cannot do that job :-).
      • el_benhameen16 hours ago
        God forbid someone pose an interesting question on a discussion board.
      • gosub10015 hours ago
        You were rude but I understand what you mean. People can obviously Google &quot;reverse engineering tutorial&quot; or something similar. And certainly &quot;what are good resources for X&quot; can be a way to signal interest in something, get people to respond, and not necessarily do anything about it. But I think the most charitable interpretation of that question is they want a group consensus for the best place to start, since Google might return a heavily promoted site that had deprecated info. I remember years ago people hated &quot;cplusplus.com&quot; because out of a volume that is the size of a textbook, it had a few bad examples. So instead they promoted cppreference. (For learning C++).<p>I think we should conclude people want to maximize learning while minimizing wasted time, hence they ask for the &quot;best resources&quot;. Even though the question seems tiring at times (when I was on reddit I heard this constantly, and cynically projected that very few people actually used the resources they requested. But I solved this problem by quitting&#x2F;getting banned from Reddit and never looked back).
        • palata14 hours ago
          &gt; can be a way to signal interest in something, get people to respond, and not necessarily do anything about it.<p>I can explain my intent, since I asked the question :-).<p>&quot;Signal interest in something in the hope of starting a discussion with people who share that interest and may have interesting stories to share&quot;.<p>I loved IRC for that. I could join a channel, ask a question and sometimes someone knowledgeable would engage in a discussion with me. Often nobody answered, but because IRC was &quot;ephemeral&quot;, I could ask again another time, and another one, hoping to eventually find someone interested.<p>&gt; I think we should conclude people want to maximize learning while minimizing wasted time<p>In my case (and I want to believe that in many other cases), it&#x27;s really just that people (me, here) would like to have some human interaction about a topic.<p>I know how to learn, I was not asking about that. I was trying to start a conversation with humans, that&#x27;s all.
          • gosub10013 hours ago
            &gt; I was trying to start a conversation with humans, that&#x27;s all.<p>Totally fair, and I&#x27;m sorry you got a hostile response.<p>My (very low-value) opinion is don&#x27;t waste your time learning how exploits work. Yeah it&#x27;s kinda neat seeing clever misuse of components. But there is very little upside to investing in that knowledge.<p>0. You look at old exploits and marvel at them for a while, but they are long ago patched and technically useless.<p>1. You waste a bunch of time looking for a sploit but don&#x27;t find one.<p>2. You find one but nobody cares, you don&#x27;t get street cred. The sploit is patched in the next release, and you don&#x27;t get back your time spent finding it.<p>3. You find a sploit but all you get is a thanks from the billion dollar company, followed by a patch.<p>4. You create an exploit and use it maliciously or sell it to a criminal syndicate. you are a criminal. Or you get sued because it&#x27;s a civil&#x2F;copyright issue.<p>5. You find a sploit and other people treat you as a criminal even though you didn&#x27;t do anything with it. You even intended to help.<p>6. You find sploits but still can&#x27;t get a job as a white hat because other people who found more sploits got the job.<p>The only good outcomes are:<p>7. You found a very clever sploit and got a bounty for it.<p>8. You got hired in cyber security and get paid for sploits or countering them.<p>9. You seriously just love decoding machine instructions and find joy from making it do unintended things.<p>Overall, I think the risk&#x2F;reward ratio is suboptimal for this field unless you go black-hat which is obviously fraught with moral and legal hazards.
      • salawat16 hours ago
        I often wonder why on this forum of alleged hacker types, there seems to be such an impetus to push what all VC&#x27;s are desperately bought into at the moment, whether it be crypto, or AI nonsense.<p>Oh wait... Right.<p>Asking for resources or asking &quot;does anyone know where I can start?&quot; Followed by a description of &quot;here&#x27;s where I&#x27;m at&quot; has been table stakes for the uninitiated since time immemorial.<p>When I see &quot;ask the LLM&quot;, all I hear is &quot;prop up my investment portfolio&quot;.<p>To this OP in particular: try playing around with different binaries you already have source to, and using the RE tools to get a feel for their post compilation structure and flow; start by compiling with no compiler optimization. You&#x27;ll want an understanding of what the structural primitives of &quot;nothing up my sleeve&quot; code reads and looks like post-compilation to build off of. Then start enabling different layers of optimization, again, to continue familiarizing yourself with output of modern compilers when dealing with fundamentally &quot;honest&quot; code.<p>Once you can eyeball things and get an intuitive sense for that sort of thing is where you jump off into dealing with <i>dishonest code</i>. Stuff put through obfuscators. Stuff designed to work in ways that hide what the actual intent of the code is, or things designed in ways that make it clear that the author had something up their sleeve.<p>It&#x27;ll be a lot of work and memorization and pattern recognition building, and you&#x27;ll have to put in the effort to get to know the hardware and memory architecture, and opcodes and ISA&#x27;s, and virtual machines you&#x27;re reversing for, but it will click eventually.<p>Just remember; odds are it won&#x27;t make you money, and it will set time on fire. I cut my teeth on reversing some security firm&#x27;s snake oil, and just trying to figure out why the code I wrote was acting weird after the compiler got done with it. (I have cursed at more compiler writers than about anyone but myself).<p>Then just remember that if someone got it to run, then it&#x27;s gotta eventually make sense. The rest is all persistence on your part of laying bare their true, usually perverted motivations (generally boiling down to greed, job security, or wasting your goddamn time).<p>Would the world be nicer if that wasn&#x27;t the case? Absolutely. I lived through a period where a lot of code wasn&#x27;t &quot;something up my sleeve&quot; code. Now is not so much that time anymore. We&#x27;ve made programming too accessible to business types that now the interests of organization&#x27;s at securing their power has a non-trivial distortion on how code gets written; which generally means user hostile in one way or another.
        • ActorNightly14 hours ago
          I happened to be at Amazon during Covid, and at a certain point during the hiring craze, I was doing like 3 interviews a week. I have interviewed probably close to 500 people so far in my career as software.<p>Even pre llm, there was a clear indicator of someone who was skilled at coding versus someone who was not. The big thing that differentiated people was curiosity. When someone is curious, they would go look stuff up, experiment, figure out how to build things by failing over and over again, and eventually they would figure it out, but consequently, they have learned quite a lot more along the way.<p>And then there were people that were just following instructions, who in interviews though that them following instructions was virtue worthy.<p>Nowdays, this is even easier to tell who is who, because LLMs essentially shortcut that curiosity for you. You don&#x27;t have to dig through the internet and play around with sandbox code, you can just ask an LLM and it will give you answers.<p>This is why I specifically said if you are hesitant of starting with LLMs, you should learn how to learn first, which usually starts with learning how to ask questions.
          • palata14 hours ago
            Respectfully, I hope you don&#x27;t judge the people you interview the way you judged me based on my question. You have no idea who I am, and surely not enough data to decide whether I know how to learn or not.<p>In my opinion, it is <i>extremely</i> important for the interviewer to realise that they are in a dominant position. Here, I can tell you what I think about how you judged me. If I was an interviewee, I may not be in a position to lose the job just because I told you that you are being rude.
        • palata14 hours ago
          Thanks! I appreciate the insights. I definitely don&#x27;t expect to make money out of that, I really just want to learn and understand :-).
      • megraf17 hours ago
        How interesting.<p>Anyway, I would recommend YouTube. Find a series you can follow along. Best of luck!
  • boricj13 hours ago
    Might as well plug in my own extension: <a href="https:&#x2F;&#x2F;github.com&#x2F;boricj&#x2F;ghidra-delinker-extension" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;boricj&#x2F;ghidra-delinker-extension</a><p>It&#x27;s a relocatable object file exporter that supports x86&#x2F;MIPS and ELF&#x2F;COFF. In other words, it can delink any program selection and you can reuse the bits for various use-cases, including making new programs <i>Mad Max</i>-style.<p>It carved itself a niche in the Windows decompilation community, used alongside objdiff or decomp.me.
    • montymintypie11 hours ago
      Easily one of the coolest RE projects out there, I&#x27;ve always looked on in awe.<p>&gt; The relocation table synthesizer analyzer relies on a fully populated Ghidra database (with correctly declared symbols, data types and references) in order to work<p>It&#x27;s a shame that this requirement exists (I am well aware that it&#x27;s a functional necessity), because all the stuff I want to relink is far too big to make a full db!
      • boricj11 hours ago
        You only need a full DB if you want to fully delink your artifact. You can just clean up the subset you&#x27;re interested in exporting (the fully populated disclaimer is just there because there&#x27;s a lot you can get away with, as long as you know precisely what you are doing).<p>Even then, a full DB is quite achievable, even on large projects. The biggest public project using ghidra-delinker-extension out there is the FUEL decompilation: <a href="https:&#x2F;&#x2F;github.com&#x2F;widberg&#x2F;FUELDecompilation" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;widberg&#x2F;FUELDecompilation</a><p>The executable is 7 MiB, has over 30,000 functions and has more than 250,000 relocations spots. The user made the game relocatable in six weeks (with four of them debugging issues with my extension). They then managed to replace code in spite of the fact that the artifact was built with LTO by binary patching __usercall into MSVC.<p>There&#x27;s a write-up about all of that that is well worth a read: <a href="https:&#x2F;&#x2F;github.com&#x2F;widberg&#x2F;fmtk&#x2F;wiki&#x2F;Decompilation" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;widberg&#x2F;fmtk&#x2F;wiki&#x2F;Decompilation</a><p>I&#x27;ve also had one user manage to fully delink the original Halo on the Xbox in one week. To be fair, they were completely nerd-sniped and worked non-stop on it, but it still counts.
    • evmar9 hours ago
      Where can I learn more about the Windows decompilation community? (This is an area I kind of work in, and I am interested in participating!)
      • boricj3 hours ago
        Most of my known userbase hangs out in the decomp.me Discord server. Each project also tends to have its own dedicated Discord server.<p>The Windows decompilation community is far more fragmented than the console one, as it hasn&#x27;t coalesced around a common set of tools like splat or decomp-toolkit.
    • WalterGR13 hours ago
      What is Mad Max-style?
      • barfiure13 hours ago
        I imagine PIE chunks that you can kludge into other programs to Frankenstein implementations? Kind of like how mad max cars are made of bits and pieces bolted together
        • boricj13 hours ago
          Indeed, you can kludge anything together into working chimeras, as long as you can mend the ABIs together.<p>I&#x27;ve done a case study where I&#x27;ve ported a Linux a.out program into a native Windows PE program without source code: <a href="https:&#x2F;&#x2F;boricj.net&#x2F;atari-jaguar-sdk&#x2F;2023&#x2F;11&#x2F;27&#x2F;introduction.html" rel="nofollow">https:&#x2F;&#x2F;boricj.net&#x2F;atari-jaguar-sdk&#x2F;2023&#x2F;11&#x2F;27&#x2F;introduction....</a><p>Another case study was ripping the archive code from a PlayStation game and stuffing it into a Linux MIPS program to create an asset extractor: <a href="https:&#x2F;&#x2F;boricj.net&#x2F;tenchu1&#x2F;2024&#x2F;03&#x2F;18&#x2F;part-6.html" rel="nofollow">https:&#x2F;&#x2F;boricj.net&#x2F;tenchu1&#x2F;2024&#x2F;03&#x2F;18&#x2F;part-6.html</a>
          • p0w3n3d12 hours ago
            You sir are a true wizard!
  • xvilka20 hours ago
    Cutter[1] by RizinOrg[2].<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;rizinorg&#x2F;cutter" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rizinorg&#x2F;cutter</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;rizinorg&#x2F;rizin" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rizinorg&#x2F;rizin</a>
    • aktau19 hours ago
      +1<p>I once tried learning how to RE with radare2 but got very frustrated by frequent project file corruption (meaning radare2 could no longer open it). The way these project files work(ed?) in radare2 at the time was that it just saved all the commands you executed, instead of the state. This was brittle, in my experience.<p>I don&#x27;t have a lot of free time, so I have to leave projects for long periods of time, not being able to restart from a previous checkpoints meant I never actually got further.<p>IIUC, one of the first things Rizin did was focus on saving the actual state, and backwards&#x2F;forwards-compatibility. This fact alone made me switch to Rizin. To its credit, my 3-year old project file still works!<p>Now for the downside: there is apparently a gap in Windows (32-bit) PE support, causing stack variables to be poorly discovered: <a href="https:&#x2F;&#x2F;github.com&#x2F;rizinorg&#x2F;rizin&#x2F;issues&#x2F;4608" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rizinorg&#x2F;rizin&#x2F;issues&#x2F;4608</a>. I tested this on radare2, which does not have this bug. I&#x27;m hoping this gets fixed in Rizin at some point, at which point I&#x27;ll continue my RE adventure. Or maybe I should give an AI reverse engineer a try... (<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=46846101">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=46846101</a>).
      • xvilka18 hours ago
        Yes, we are working on rewriting analysis completely[1][2] that would fix your issue along with many others.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;rizinorg&#x2F;rizin&#x2F;pull&#x2F;5505" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rizinorg&#x2F;rizin&#x2F;pull&#x2F;5505</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;rizinorg&#x2F;rizin&#x2F;issues&#x2F;4736" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rizinorg&#x2F;rizin&#x2F;issues&#x2F;4736</a>
        • aktau17 hours ago
          Can&#x27;t wait! Do you have any idea how far along this is? Is it likely to be months, quarters, years?<p>(Funny expression, that. I&#x27;ll wait, of course. It&#x27;ll be a happy day when this works again and I can slowly make progress RE&#x27;ing again.)
      • alberto-m17 hours ago
        I tried radare2 with the official GUI Iaito. Iaito saves the project in a git repo, so whenever I got corruption (and I got it a lot, like every 4-5 saves) I was just a `git reset --hard` away from restoring a good state. Not the most efficient way of operation, but for me it was better this than tolerating Ghidra&#x27;s tiny Courier New font.
        • aktau17 hours ago
          Thanks for the note.<p>Your corruption frequency anecdote matches mine. I don&#x27;t have the mental werewithal to deal with that. I won&#x27;t go back to radare2 until they change their project file stability somehow.
  • bradhe12 hours ago
    I&#x27;ve actually been experimenting with using Ghidra and Opus to create human-consumable, reverse-engineered software. My ultimate dream would be a buildable EverQuest client. Opus does a decent job of pulling out various subsystems and understanding how it works. I was able to get a pretty much working networking layer for instance with less than an hour&#x27;s work.
  • yibers19 hours ago
    Can anyone provide their opinion of Ghidra vs Ida? Is Ida worth the extra money?
    • userbinator6 hours ago
      One huge difference is that IDA is much faster and less resource-intensive than Ghidra, on account of the latter being written in Java (not surprisingly) while the former is native code. The Ghidra UI is noticeably laggy to perform basic operations even with tiny binaries, while I haven&#x27;t noticed anything like that in IDA.
    • bri3d18 hours ago
      For UI based manual reversing of things that run on an OS, IDA is quite superior; it has really good pattern matching and is optimized on this use case, so combined with the more ergonomic UI, it’s way way faster than Ghidra and is well worth the money (provided you are making money off of RE). The IDA debugger is also very fast and easy to use compared to Ghidra’s provided your target works (again, anything that runs on an OS is probably golden here).<p>For embedded IDA is very ergonomic still, but since it’s not abstract in the way Ghidra is, the decompiler only works on select platforms.<p>Ghidra’s architecture lends itself to really powerful automation tricks since you can basically step through the program from your plugin without having an actual debug target, no matter the architecture. With the rise of LLMs, this is a big edge for Ghidra as it’s more flexible and easier to hook into to build tools.<p>The overall Ghidra plugin programming story has been catching up; it’s always been more modular than IDA but in the past it was too Java oriented to be fun for most people, but the Python bindings are a lot better now. IDA scripting has been quite good for a long time so there’s a good corpus of plugins out there too.
    • flipped19 hours ago
      Almost every hobbyist reverse engineer uses cracked IDA which is easily available. I have never seen ghidra being recommended for serious work.
      • userbinator7 hours ago
        Cracking IDA yourself was, and maybe still is, a &quot;rite of passage&quot; in certain communities.
      • IAmLiterallyAB18 hours ago
        And everyone uses Ghidra exclusively where I work. I&#x27;d say we&#x27;re a serious operation
      • lima17 hours ago
        This is changing, Ghidra is increasingly replacing IDA for commercial work.
      • q3k18 hours ago
        I recommend it for serious work. Well, serious enough that I got paid for doing it, and&#x2F;or given talks about it.<p>(not if you&#x27;re only doing x86&#x2F;ARM stuff, though)
        • bri3d18 hours ago
          Agree. IDA is surely the “primary” tool for anything that runs on an OS on a common arch, but once you get into embedded Ghidra is heavily used for serious work and once you get to heavily automation based scenarios or obscure microarchitectures it’s the best solution and certainly a “serious” product used by “real” REs.
      • jki27518 hours ago
        The NSA doesn&#x27;t do serious work?
        • ARandomerDude17 hours ago
          That wasn&#x27;t the claim. Ability + interest + time + budget + ... are what makes a serious tool.
    • apple141718 hours ago
      Leading this by saying I&#x27;ve only used Ida free, I can&#x27;t comment on Ida pro. I&#x27;m also a very lite user of both, I give name functions&#x2F;vars, save bookmarks, and occasionally work out custom types, and that&#x27;s about it, none of the real fancy stuff.<p>I was recently trying to analyse a 600mb exe (denuvo&#x2F;similar). I wasted a week after ghidra crashed 30h+ in multiple times. A seperate project with a 300mb exe took about 5h, so there&#x27;s some horrible scaling going on. So I tried out Ida for the first time, and it finished in less than an hour. Faced with having decomp vs not, I started learning how to use it.<p>So first difference, given the above, Ida is far far better at interrupting tasks&#x2F;crash recovery. Every time ghidra crashed I was left with nothing, when Ida crashes you get a prompt to recover from autosave. Even if you don&#x27;t crash, in general it feels like Ida will let you interrupt a task and still get partial results which you might even be able to pick back up from later, while ghidra just leaves you with nothing.<p>In terms of pure decomp quality, I don&#x27;t really think either wins, decomp is always awkward, it&#x27;s awkward in different ways for each. I prefer ghidra&#x27;s, but that might just be because I&#x27;ve used it much longer. Ida does do better at suggesting function&#x2F;variable names - if a variable is passed to a bunch of functions taking a GameManager*, it might automatically call it game_manager.<p>When defining types, I far prefer ida&#x27;s approach of just letting me write C&#x2F;C++. Ghidra&#x27;s struct editor is awkward, and I&#x27;ve never worked out a good way of dealing with inheritance. For defining functions&#x2F;args on the other hand, while Ida gives you a raw text box it just doesn&#x27;t let you change some things? There I prefer the way ghidra does it, I especially like it showing what registers each arg is assigned to.<p>Another big difference I&#x27;ve noticed between the two is ghidra seems to operate on more of a push model, while Ida is more of a pull model - i.e. when you make a change, ghidra tends to hang for a second propagating it to everything referencing it, while Ida tries pulling the latest version when you look at the reference? I have no idea if this is how they actually work internally, it&#x27;s just what it feels like. Ida&#x27;s pull model is a lot more responsive on a large exe, however multiple times I&#x27;ve had some decomp not update after editing one of the functions it called.<p>Overall, I find Ida&#x27;s probably slightly better. I&#x27;m not about to pay for Ida pro though, and I&#x27;m really uneasy about how it uploads all my executables to do decomp. While at the same time, ghidra is proper FOSS, and gives comparable results (for small executables). So I&#x27;ll probably stick with ghidra where I can.
      • q3k18 hours ago
        &gt; I was recently trying to analyse a 600mb exe (denuvo&#x2F;similar). I wasted a week after ghidra crashed 30h+ in multiple times.<p>During the startup auto analysis? For large binaries it makes sense to dial back the number of analysis passes and only trigger them if you really need them, manually, one by one. You also get to save in between different passes.
        • apple141718 hours ago
          Yup. It was actually an openjdk crash, which was extra interesting.<p>I figured I probably could remove some passes, but being a lite user I don&#x27;t really know&#x2F;didn&#x27;t want to spend the time learning how important each one is and how long they take. Ida&#x27;s defaults were just better.
    • q3k19 hours ago
      IDA is the better tool if you&#x27;re being paid to work with architectures that IDA supports well (ARM(64), x86(_64), etc). This usually means &#x27;mainstream&#x27; security&#x2F;malware research. It&#x27;s not worth the price for hobbyists. Before Hex-Rays was sold to private equity, it could make sense for rich hobbyists to pay for a private license once and use it for a few years without software updates, with the cloud offering now it pretty much makes no sense.<p>Ghidra is the better tool if you&#x27;re dealing with exotic architectures, even ones that you need to implement support for yourself. That&#x27;s because any architecture that you have a full SLEIGH definition for will get decompilation output for free. It might not be the best decompiler out there, sure, but for some architectures it&#x27;s the only decompiler available.<p>Both are generally shit UX wise and take time to learn. I&#x27;ve mostly switched from IDA to Ghidra a while back which felt like pulling teeth. Now when I sometimes go back to IDA it feels like pulling teeth.
      • 19h19 hours ago
        Which exotic architectures is IDA missing from your perspective?
        • q3k18 hours ago
          Stuff I&#x27;ve recently analyzed that IDA has no decomp support for (and Ghidra&#x27;s is anywhere from good enough to actually good):<p><pre><code> - AVR - Z80 - HC08 - 8051 - Tricore - Xtensa - WebAssembly - Apple&#x2F;Samsung S5L87xx NAND controller command sequencer VLIW (custom SLEIGH) </code></pre> And probably more that I&#x27;ve forgotten.<p>It&#x27;s also not about lack of support, but the fact that you have to pay extra for every single decompiler. This sucks if you&#x27;re analyzing a wide variety of targets because of the kind of work you do.<p>IDA also struggles with disasm for Harvard architectures which tend to make up a bulk of what I analyze - it&#x27;s all faked around synthetic relocations. Ghidra has native support for multiple address spaces.
          • xvilka18 hours ago
            Binary Ninja supports some of them as well, highly recommend.
            • q3k18 hours ago
              I really want to like Binary Ninja, but whenever I have the choice between not paying (Ghidra), paying for something that I know works (IDA) and paying for something that I don&#x27;t know if it works (Binja) then the last option has always lost so far.<p>Maybe we need to get some good cracked^Wcommunity releases of Binja so that we can all test it as thoroughly as IDA. The limited free version doesn&#x27;t cut it unfortunately - if I can&#x27;t test it on what I actually want to use it for, it&#x27;s not a good test.<p>(also it doesn&#x27;t have collaborative analysis in anything but the &#x27;call us&#x27; enterprise plan)
      • burnt-resistor9 hours ago
        Fuck private equity, e.g., rich vampiric assholes ruining everything.
  • mturk20 hours ago
    Ghidra is a very impressive piece of software with a deep bench of functionality. The recent couple major releases that move to a more integrated Python experience have been very nice to use.
  • Supermancho18 hours ago
    I first used Ghidra this weekend as part of this series:<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=d7qVlf81fKA&amp;list=PL4X0K6ZbXhIMcLiddydGAPKynJRVjtyv-" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=d7qVlf81fKA&amp;list=PL4X0K6ZbXh...</a><p>(#3 forward uses Ghidra)<p>It worked fine in Ubuntu and Windows. The interface takes some getting used to, but paired with Bless Unofficial (using snap to install), it makes reverse engineering smooth.
  • zeon25619 hours ago
    Been awhile since I used this but decided to open the latest version to check my rust binary and was pleasantly surprised how much better it is today wrt rust binaries
    • flipped19 hours ago
      Can you be more specific? Is it getting easier to reverse rust and go, since I have read about it being the hardest to reverse.
      • quux0r16 hours ago
        It&#x27;s not perfect, but in my personal experience it is still tough in languages like that due to the sheer volume of indirection and noise that makes it hard to follow. For example Go&#x27;s calling convention is a little nutty compared to other languages, and you&#x27;ll encounter a few *****ppppppppVar values that are otherworldly to make sense of, but the ability to recognize library functions and sys calls is for sure better.
  • jeron1 hour ago
    leave it to a three letter agency to use a pre-existing acronym for something pretty different
  • jakozaur18 hours ago
    Funny thing, AI is not that terrible at using Ghidra. We released a benchmark on that and hopefully models will improve: <a href="https:&#x2F;&#x2F;quesma.com&#x2F;blog&#x2F;introducing-binaryaudit&#x2F;" rel="nofollow">https:&#x2F;&#x2F;quesma.com&#x2F;blog&#x2F;introducing-binaryaudit&#x2F;</a>
    • Alifatisk18 hours ago
      There is MCPs for Ghidra
      • joe_mamba17 hours ago
        Yeah this. I saw some guys on youtube use AI MCPs to do some crazy reverse engineering.<p>It&#x27;s difficult to be an AI doomer when you see stuff like this.
        • le-mark9 hours ago
          “AI Doomer” is ambiguous here! Do you mean someone who optimistic about ai will never amount to anything, or that ai won’t be the end of humanity?
        • thenaturalist13 hours ago
          Would you have a link &#x2F; links or hints about the channel?
  • alex7o13 hours ago
    I want to say if somebody makes a tool like that it would be a big winner <a href="https:&#x2F;&#x2F;qira.me&#x2F;" rel="nofollow">https:&#x2F;&#x2F;qira.me&#x2F;</a>
  • mdavid62619 hours ago
    Works well. I used this tool once to disassemble and understand how key manager works on Vivotek cameras.<p>They create executables, which contain encrypted binary data. Then, when the executable runs, it decodes the encrypted data and pipes it into &quot;sh&quot;.<p>The security is delusional here - the password is hard coded in the executable. It was something like &quot;VIVOTEK Inc.&quot;.<p>Ghidra was able to create the C code and I was able to extract also the binary data to a file (which is essentially the bash script).
    • mickeyp19 hours ago
      Sounds like `strings&#x27; on the binary would&#x27;ve sufficed if it&#x27;s just hardcoded.
      • mdavid62618 hours ago
        No, that’s not enough.<p>The password would be visible, but the encyption algorithm and the script’s text wouldn’t.
  • dang14 hours ago
    Here are the main threads (in reverse order) that I found about Ghidra generally. Of course there have been many more threads about specific aspects or related projects: <a href="https:&#x2F;&#x2F;hn.algolia.com&#x2F;?dateRange=all&amp;page=0&amp;prefix=true&amp;query=Ghidra%20comments%3E0&amp;sort=byDate&amp;type=story&amp;storyText=none" rel="nofollow">https:&#x2F;&#x2F;hn.algolia.com&#x2F;?dateRange=all&amp;page=0&amp;prefix=true&amp;que...</a>.<p>(Btw, these links are just for anyone curious to read more - reposts are fine after a year or so - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;newsfaq.html">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;newsfaq.html</a>)<p><i>NSA Ghidra open-source reverse engineering framework</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40508777">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40508777</a> - May 2024 (61 comments)<p><i>Ghidra 11.0 Released</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38740793">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38740793</a> - Dec 2023 (11 comments)<p><i>Ghidra 10.3 has been released</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35908418">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35908418</a> - May 2023 (6 comments)<p><i>NSA Ghidra software reverse engineering framework</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35324380">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35324380</a> - March 2023 (103 comments)<p><i>Ghidra: Software reverse engineering suite developed by NSA</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=33226050">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=33226050</a> - Oct 2022 (42 comments)<p><i>Ghidra: A software reverse engineering suite of tools developed by the NSA</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=27818492">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=27818492</a> - July 2021 (142 comments)<p><i>Ghidra 9.2</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=25086519">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=25086519</a> - Nov 2020 (78 comments)<p><i>The Ghidra Book</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24879314">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24879314</a> - Oct 2020 (5 comments)<p><i>Ghidra Decompiler Analysis Engine</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19599314">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19599314</a> - April 2019 (30 comments)<p><i>Ghidra source code officially released</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19572994">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19572994</a> - April 2019 (7 comments)<p><i>Ghidra Capabilities – Get Your Free NSA Reverse Engineering Tool [pdf]</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19319385">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19319385</a> - March 2019 (17 comments)<p><i>Ghidra, NSA&#x27;s reverse-engineering tool</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19315273">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19315273</a> - March 2019 (405 comments)<p><i>Ghidra</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19239727">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19239727</a> - Feb 2019 (59 comments)<p><i>NSA to Release Their Reverse Engineering Framework GHIDRA to Public at RSA</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=18828083">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=18828083</a> - Jan 2019 (90 comments)
  • lacoolj17 hours ago
    Posting this on Github is a brilliant move by the NSA, and it showing up on HN amplifies it even more.<p>It&#x27;s certainly not the first thing they&#x27;ve released (selinux, for one, and then all the other repos in the account), but this repo showing up on HN, with a prominent call-to-action to look at a career with them, is a great way to target the applicants you want (&quot;those who would find this project interesting, because it&#x27;s just the sort of thing we need them to work on&quot;)<p>Atlassian used to do (maybe still does) this in bitbucket if you open dev tools - a link to their careers page shows up
  • Alifatisk18 hours ago
    There is also Hopper for ObjC&#x2F;Swift, haven&#x27;t tried it personally though<p><a href="https:&#x2F;&#x2F;www.hopperapp.com" rel="nofollow">https:&#x2F;&#x2F;www.hopperapp.com</a>
    • saagarjha12 hours ago
      Hopper is pretty but worse than Ghidra for both
  • givemeethekeys14 hours ago
    How do they incentivize government employees into doing such excellent work without paying them a real tech salary?
    • neodymiumphish14 hours ago
      Use military members.<p>I was a special agent with an org involved in similar work. They put me through 7 SANS courses, including paying for 5 certs, in 18 months.
    • bri3d14 hours ago
      They are contractors. The public face of Ghidra works at Praxis, for example.
    • mandeepj6 hours ago
      $160k-$170k is not a bad salary; in some cases they get $250k, but sure, it&#x27;s not a FAANG type.
    • commandersaki6 hours ago
      I wouldn&#x27;t say a program in Java Swing &#x2F; AWT would count as excellent.
    • wat1000014 hours ago
      Great benefits and job security, and a belief in the mission.
      • wewtyflakes14 hours ago
        The job security perk was recently defenestrated.
        • wat1000012 hours ago
          Hopefully seen as an aberration. Otherwise we may see the excellent work go out the window along with it.
  • commandersaki18 hours ago
    Awful to use with a tiling window manager.
  • kugutsumen16 hours ago
    unflutter supports ghidra :) <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47035788">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47035788</a>
  • systems19 hours ago
    is ghidralite dot com a safe link or an official link<p>when i try to expand their faq, it seem to try an open a (presumabl) malicious link , i wont paste the link here just in case it is really malicious
    • staubfinger19 hours ago
      Just use the official github link or links that are linked there. The URL you mentioned seems bogus at best.
      • waltbosz19 hours ago
        Curious, the ghidralite page download button links to the NSA&#x27;s github releases page.<p>I wonder what is the purpose of ghidralite dot com. SEO spam? Are they building trust and then will swap out the Download button with a poisoned binary.
        • h4ch117 hours ago
          Or climb up high enough in the search results and sell the domain to a malicious actor.
    • dizzy917 hours ago
      Looks like AI slop and SEO junk. The Guide page you linked opens with an article on Dubai sports car rental. There are also .net and .org variants of the domain, which appear to be also AI-generated slop. There&#x27;s no such program as Ghidralite, and every site just links to the official Ghidra repository.
  • tears-in-rain15 hours ago
    opus 4.6 can use that from cli, and do RE, make pseudo C, and later decode binaries based on this code into interpretable data.<p>amazing tool
  • dakolli13 hours ago
    Everyone in the comments is like, &quot;take a look at this AI tool for Ghirda&quot;<p>This is indicative of two things.<p>1. While I can&#x27;t stand the guy, ya&#x27;ll need to watch Peter Thiel&#x27;s talk from 10-15 years ago at Stanford about not building the same thing everyone else is, a la, the obvious thing.<p>2. People are really attracted to using LLMs on deep thinking tasks, off shoring their thinking, to a &quot;Think for me SaaS&quot;. This won&#x27;t end well for you, there&#x27;s no shortcuts in life that don&#x27;t come with a (huge) cost.<p>The person who showed their work and scored A&#x27;s on math tests instead of just learning how to use a calculator, is better off in their career&#x2F;endevours than the 80% of others who did the latter. If Laurie Wired makes an MCP for Ghirda and uses it that&#x27;s one thing, you using it without ever reverse engineering extensively is completely different. I&#x27;d bet my bottom dollar that Laurie Wired doesn&#x27;t prefer the MCP over her own mental processes 8&#x2F;10 times.
    • lauriewired9 hours ago
      This is correct. The majority of cases I have to rely on my own expertise.<p>It&#x27;s useful for the automation of small repetitive tasks here and there. I was never expecting it to gain the traction that it did; anyone saying they expect it to replace reverse engineers (it won&#x27;t) is wildly misunderstanding the original intent.<p>Quite trivial to create binaries that massively confuse LLMs!
      • petterroea8 hours ago
        I bet red herrings are effective
        • butvacuum8 hours ago
          I wonder if renaming variables to all reference a single movie or book (go through the exe and rename each new variable to the next word or letter in Monty Python&#x27;s Holy Grail) would do anything.
    • decidu0us903411 hours ago
      I was wondering why so many people were suddenly hopping into my humble profession and declaring me redundant. Ah, a youtube influencer is at the center of it. Makes sense.
    • tptacek9 hours ago
      In a funny inversion of the normal analogy to machine code and compilers, you could say the same thing about people using decompilation rather than getting gud at reading ARM assembly.
    • resonious13 hours ago
      This feels like a bit of a false dichotomy. Just because I give some thinking tasks to an AI doesn&#x27;t mean I&#x27;m sitting there doing nothing while it thinks.
      • godelski11 hours ago
        Interpret the intent of the parent&#x27;s comment more and focus less on finding its critiques. The irony here is that the critique you made is the most obvious one, which also means it is the one that the parent believed you&#x27;re most likely to understand the implicit context around. I don&#x27;t think anyone has handed <i>all</i> thinking over to LLMs, it&#x27;s always somewhere on a spectrum. I think we can assume the parent isn&#x27;t framing things as a binary outcome. If they were, we should ignore everything they&#x27;re saying.
        • zmgsabst11 hours ago
          I’ve made frameworks that turn a project entirely over to the AI — eg, turn a paragraph summary of what I want into a book on that topic.<p>Obviously I get much less out of that — I’m not denying the tradeoff, just saying that some people <i>are</i> all the way to “write a short request, accept the result” for (certain) thinking tasks.
          • godelski10 hours ago
            Sure but even that falls on the spectrum. The request requires some thinking. So if we&#x27;re not being pedantic then people will criticize because natural language isn&#x27;t
            • zmgsabst9 hours ago
              I think it’s a difference in kind, ie, if we return to above[0] and the discussion about “outsourcing our thinking” — then it deeply depends on what we hope to accomplish. That’s what I was originally intending to convey: that people are actually inhabiting the space you used as an extreme because they’re operating in a different mode.<p>That is, we seem to be conflating different cases - ie, being an expert versus hiring an expert. A manager and an SDE get different utility from the LLM.<p>I think I expressed it poorly, but I think that we need to consider that outsourcing thinking entirely is the right answer in the way that subcontracting or outsourcing or hiring itself can be; and that we seem to get caught in a “spectrum” or false dichotomy (ie, “is outsourcing good or bad?”) discussion, when the actual utilization of LLMs, their content, etc interacts in a complex way due to the diversity of roles, needs, etc that humans themselves have. And the impact on acquired expertise is only one aspect, for which “less work, less learning” is both true but too simple.<p>[0] - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47040091">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47040091</a>
      • SuperNinKenDo13 hours ago
        I&#x27;d say _this_ is the comment guilty of making a false dichotomy.
    • Retr0id12 hours ago
      Do you have a background in reverse engineering?
      • dakolli12 hours ago
        You literally have a blog post called &quot;AI can only solve boring problems&quot;<p>Are you just trying to argue for the sake of arguing?
        • Retr0id12 hours ago
          What does my blog post have to do with anything? (But since you mention it - a large part of reverse engineering falls under the &quot;boring&quot; category I define in that article)
    • sneak8 hours ago
      &gt; <i>People are really attracted to using LLMs on deep thinking tasks, off shoring their thinking, to a &quot;Think for me SaaS&quot;. This won&#x27;t end well for you, there&#x27;s no shortcuts in life that don&#x27;t come with a (huge) cost.</i><p>I, too, watched The Sorcerer’s Apprentice. The problem is that I, too, shipped a fuckton of working, reviewed, reworked, tests-and-lint-passing, properly-typed code implementing brand new features from scratch in the last 48 hours, that would have taken me 48 days a year ago.<p>“thinking” means a lot of different things, and you can indeed outsource a lot of it to other things that can think at different levels of ability than you. This is effectively what an engineering organization does.<p>Perhaps I haven’t fully offshored my thinking in the sense you mean in that I review all the code and give feedback on the PRs—I still steer. But I think the SOTA will continue to improve until we can indeed oneshot larger and larger tasks.
      • dakolli7 hours ago
        I actually have zero clue what Sorcerer&#x27;s apprentice is, or what you&#x27;re getting at. I never said that it isn&#x27;t useful for dumb tedious tasks that don&#x27;t require much thought.<p>I was talking about critical tasks where human nuance is important, just because an LLM can produce a result, does not mean that the result is great. Not everything people work on are &quot;features&quot; delivered via http handlers.<p>I don&#x27;t understand this new paradigm where everyone wants to brag about how quick they get X amount of work done. Its the long standing belief of pretty much any quality builder that quick != quality, and quick usually isn&#x27;t necessary. I&#x27;m glad your KPIs are great though and your product is getting 2 months of features every two days... The world needs this!
        • wdaher5 hours ago
          The Sorcerer&#x27;s Apprentice is a poem by Goethe, or more famously, a sequence from the Disney movie &quot;Fantasia&quot;, which you can see here: <a href="https:&#x2F;&#x2F;video.disney.com&#x2F;watch&#x2F;sorcerer-s-apprentice-fantasia-4ea9ebc01a74ea59a5867853" rel="nofollow">https:&#x2F;&#x2F;video.disney.com&#x2F;watch&#x2F;sorcerer-s-apprentice-fantasi...</a><p>The short summary of it is: the sorcerer&#x27;s apprentice (Mickey) uses magic to get a broom to fetch water for him, and then the situation gets out of control as the broom continues to get water, and he has no idea how to stop it.<p>(It&#x27;s a cautionary tale about the danger of playing with forces you don&#x27;t really understand&#x2F;&quot;be careful what you wish for&quot;.)
    • j4513 hours ago
      A VC might want variety and advise people he will vote with his dollars for variety, because he&#x27;s not funding the same thing as everyone else is.<p>Being first and the winner requires a lot to line up, so it shouldn&#x27;t be the only, default, or best setting. Pursuing this is optimizing.<p>Also a message from 10-15 years ago might not reflect the same context as today.
      • chairmansteve12 hours ago
        &quot;A VC might want variety and advise people he will vote with his dollars for variety&quot;.<p>In other words, what&#x27;s good for Peter Theil might not be goid for you.
        • j4512 hours ago
          Yup. Therefore postulating it as a truth or standard is ok if that&#x27;s what you agree with and want to also pursue, but it&#x27;s important to keep in mind that valid goals are a spectrum.
  • 29athrowaway17 hours ago
    OllyDbg inspired: <a href="https:&#x2F;&#x2F;github.com&#x2F;eteran&#x2F;edb-debugger" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;eteran&#x2F;edb-debugger</a>
  • alexfromapex14 hours ago
    Strange to see the NSA using Java, maybe this is really old?
    • zamadatix14 hours ago
      Some of the comment matches in the code search suggest at least portions of the codebase goes back to the very late 90s.<p>Edit: Wikipedia has a table with 1.0 being 2003 <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Ghidra" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Ghidra</a>
    • bri3d14 hours ago
      Yes, it’s from the late 90s&#x2F;early 00s, but why is it strange to see Java?
    • belfthrow9 hours ago
      I suppose they should be using rust yeah?
  • user393938211 hours ago
    I miss the analog of this community from the 90s. We had actual principles and ethos and wouldn’t have been caught dead upvoting and using software from the frickin NSA. Not that it’s any surprise here. Contemporary San Francisco driven software culture which is the majority represented on this forum have no qualms with FAANG ethics, open source is not really important either.<p>Oh I’m sorry the NSA didn’t spy on the whole country “wittingly” according to our leaders, carry on and use their software no ethical conflict here.
    • zmgsabst11 hours ago
      Having been in Seattle, I’m not sure there was a time the NSA wasn’t involved with technology — eg, UW hosted meetups between researchers, criminals, and the government at least that long.<p>Who built the Echelon follow-up, proto-dragnet system that provided the framework for the spying you bemoan? — the one extended and taken live in the early 2000s? Those same 90s hackers you glorify.
  • brcmthrowaway13 hours ago
    I&#x27;m using a tool on Parallels on Mac that says &quot;cannot run in virtual machine&quot;. Could I remove that check using Ghidra?
    • saagarjha12 hours ago
      Yes, if you know what you’re looking for.
  • atemerev19 hours ago
    I always wondered whether they have a much more capable internal version. And I wonder the same thing for AI labs (they have to do a lot of lobotomy for their models to be ready for public use... but internally, they can just skip this perhaps?)
    • bjackman19 hours ago
      Very likely people who actually work on RE at the NSA also have access to IDA Pro licenses. I don&#x27;t work in this space, so take it with a pinch of salt, but my understanding is this is a fairly long term strategic initiative to _eventually_ be the best tool.
      • bri3d19 hours ago
        It’s better in some dimensions and not others, and it’s built on a fundamentally different architecture, so of course they use both.<p>Ghidra excels because it is extremely abstract, so new processors can be added at will and automatically have a decompiler, control flow tracing, mostly working assembler, and emulation.<p>IDA excels because it has been developed for a gazillion years against patterns found in common binaries and has an extremely fast, ergonomic UI and an awesome debugger.<p>For UI driven reversing against anything that runs on an OS I generally prefer IDA, for anything below that I’m 50&#x2F;50 on Ghidra, and for anything where IDA doesn’t have a decompiler, Ghidra wins by default.<p>For plugin development or automated reversing (even pre LLMs, stuff like pattern matching scripts or little evaluators) Ghidra offers a ton of power since you can basically execute the underlying program using PCode, but the APIs are clunky and until recently you really needed to be using Java.
      • 19h19 hours ago
        Ghidra has a slightly different focus than IDA, so they&#x27;re definitely not just using Ghidra :-)
        • sergent_moon19 hours ago
          I have only a very basic understanding of the two tools. Can you give me just some highlights regarding their differences?
          • 19h19 hours ago
            Well, Ghidra&#x27;s strength is batch processing at scale (which is why P-Code is less accurate than IDA&#x27;s but still good enough) while allowing a massive amount of modules to execute. That allows huge distributed fleets of Ghidra. IDA has idalib now, and hcli will soon allow batch fleets, but IDA&#x27;s focus is very much highly accurate analysis (for now), which makes it a lot less scalable performance wise (for now).
    • hn9272681919 hours ago
      I doubt it. Ghidra is extremely extensible with their plugin&#x2F;tool architecture. Public Ghidra includes the extremely helpful decompiler tool, and a few others, but I&#x27;m willing to bet that NSA uses regular Ghidra + some way more capable plugins instead of having another Ghidra.
      • HelloNurse17 hours ago
        Powerful, &quot;capable&quot; plugins are obvious; NSA cannot stop people from writing them, and they have little reason to restrict their use.<p>I think what NSA is likely to keep confidential are in-house plugins that are so specialized and&#x2F;or underengineered that their publication would give away confidential information: stolen and illegitimate secrets (e.g. cryptographic private keys from a game console SDK), or exploits that they intend to deny knowledge of and continue milking, or general strategies and methods (e.g. a tool to &quot;customize&quot; UEFI images, with the implication that they have means to install them on a victim&#x27;s computer).
    • jacquesm19 hours ago
      Too many people in the know about this stuff I think to keep it hidden for that long. At the same time, we keep finding stuff that that should have held for and it didn&#x27;t, so maybe you&#x27;re right.
    • cactusplant737419 hours ago
      The gains come from pairing Ghidra with a coding agent. It works amazing well.
      • Mattwmaster5818 hours ago
        I&#x27;ll second this. I used opencode + opus 4.6 + ghidra to reverse engineer a seedkey generation algorithm[1] from v850 assembly. I gave it the binary, the known address for the generation function, and a set of known inputs&#x2F;outputs, and it was able to crack it.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;Mattwmaster58&#x2F;ic204" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Mattwmaster58&#x2F;ic204</a>
      • bibelo19 hours ago
        would you have a tutorial on that?
  • jevinskie17 hours ago
    Is it just me or is the merge style used for the repo very difficult to follow? Am I holding it wrong?
  • iamleppert15 hours ago
    Are these tools useable by OpenClaw yet?
  • maximalthinker17 hours ago
    [dead]
  • jeevacation19 hours ago
    [flagged]
    • reactordev19 hours ago
      No. Cheat engine scans memory as a program is running, for values of interest to pin (or modify). Allowing you to change behavior.<p>Ghidra takes a program and unravels the machine code back into assembly and thus, something resembling C code. Allowing you to change behavior.<p>Cheat Engine doesn’t modify the binary. Ghidra can.
      • kaibee18 hours ago
        &gt; Cheat Engine doesn’t modify the binary. Ghidra can.<p>To clarify for other people who may not be familiar, (though I&#x27;m far from an expert on it myself) you can inject&#x2F;modify asm of a running binary with CE. I&#x27;m not sure if there&#x27;s a way to bake the changes to the exe permanently.
  • jeevacation19 hours ago
    [flagged]
    • 13hunteo19 hours ago
      You have a disgusting username
      • flipped19 hours ago
        You&#x27;re just giving the troll an audience by reacting to it.
      • jeevacation17 hours ago
        [dead]
  • ambitious_whale17 hours ago
    What does it do I don&#x27;t understand a think can someone explain me
  • flipped19 hours ago
    Is this backdoored just like SELinux?
    • dizzy917 hours ago
      This was discussed when Ghidra was first open sourced. To the best of my knowledge, nobody&#x27;s found an NSA backdoor in Ghidra.
    • sabas12318 hours ago
      Without providing any proof that either this or SELinux is backdoored.
    • jandrese15 hours ago
      Seems like it would be of limited value to backdoor a program like Ghidra. Might be useful in identifying security researchers, except that it&#x27;s also the kind of program that will often be running on disconnected systems with little valuable data beyond whatever is being disassembled.
    • LPisGood18 hours ago
      Well it’s open source, so you can check in principle. I would imagine there’s some fame and notoriety in discovering that.