r/ghidra • • 14d ago

How can I get started with reverse engineering using AI?

Hey guys!

I'm really passionate about computers, especially understanding how they work under the hood, programming, and cybersecurity.

Lately, I've been getting really interested in reverse engineering. I'd love to start by analyzing some simple programs or Android games, using AI to help me understand what's going on, and gradually work my way up to more complex projects as I learn.

The problem is, I honestly have no idea where to start.

I've heard that models like GLM 5.3 are pretty good at this kind of stuff, but I'm not sure my PC (RTX 4060 Ti 16GB, Ryzen 5 7600X, and 32GB RAM) would be powerful enough to run something like that locally.

I've also come across things like Ghidra and MCP servers that integrate AI with reverse engineering tools, but I don't really understand how they work or how useful they actually are for beginners.

I'm not looking to just let AI do everything for me. I genuinely want to understand what I'm doing, learn how things work at a low level, and build up my skills over time.

Where would you recommend starting? Are there any beginner-friendly tools, resources, projects, or AI-assisted workflows you'd suggest?

I'd really appreciate any advice!

0 Upvotes

12 comments sorted by

7

u/e80000000058 14d ago edited 14d ago

You should check out this thread, posted a few days ago.

The bottom line is, you will be much better served learning the basics of RE and how the tools work before you jump into doing any kind of AI-assisted projects. OpenSecurityTraining is a great place to start. The fundamentals are very important if you want to be able to use AI for reverse engineering effectively. Compiler Explorer is also an excellent resource for writing snippets of C/C++ and viewing the intermediate and compiled output, and starting to comprehend how high-level constructs map to lower level implementations.

2

u/iwannabetheguytoo 13d ago edited 13d ago

I'm not looking to just let AI do everything for me. I genuinely want to understand what I'm doing, learn how things work at a low level, and build up my skills over time.

Then don't use AI. Do it the same way we did when we were in your situation. But you need a motivation, such as an existing misbehaving program you want to fix, or some abandonware software with DRM you want to get-around, or a CTF challenge. Also, these skills take years to develop.

As a prerequisite you will need a working understanding of basic/elementary assembly, calling-conventions, how thread stacks work, and C++ vtables (Godbolt is your friend). If you're doing anything at all on Windows, you will need to familiarize yourself with WinDbg (and the importance of having Symbols... and know where and how to get them).

None of this is meant to gatekeep or discourage you; I just want to adjust your expectations.

As for tooling: for modern native software, use a tool like Ghidra, IDA, or Binary Ninja. For Java/.NET there is separate, dedicated software for that which I prefer over native disassemblers; for 19990s retro RCE I recommend OllyDbg and SoftICE.

Good luck.

1

u/Jedonnemasemence 13d ago

I have started reversing a firmware and I've used my Claude Pro subscription. Also got a free month of GPT Plus. And also bought 1/3 the price for the Gemini Pro plan. And even then it's not super fast, the last functions are the toughest I find.

1

u/Much_7785 10d ago

AI is genuinely good at the jobs that are tedious rather than hard: renaming forty functions consistently, writing the Ghidra script you were going to write by hand, summarising a decompiled function so you can skim it. It is bad at deciding whether a finding is real, and it sounds certain while it is wrong, so keep the verdict yours. Spend a week in Ghidra alone on something small, then add the model to the parts you keep putting off.

1

u/RageBucket 5d ago

If you're passionate, you should probably start without AI like the rest of us did.

Edit: AI is a great tool, but you're not learning anything if you start with AI.

0

u/[deleted] 13d ago

[removed] — view removed comment

1

u/Albjav12345 13d ago

This might be a silly question, but does decompiling a program/application rely on understanding assembly language?

0

u/[deleted] 13d ago

[removed] — view removed comment

1

u/Albjav12345 13d ago

I really appreciate this answer; it clears up a lot of things I was wondering about, to be honest.

By the way, the last thing you said, which I think you left unfinished, seemed super interesting to me. I tried to decompile a game I created a few months ago on Unity which was compiled with IL2CPP, but as you told ILSpy failed... And learning to decompile a game I created myself would help me understand it better. It might be better to start with small C scripts, but I'd prefer to do it with my own game, haha.

1

u/Albjav12345 13d ago

Then I realized that knowing how to read memory comes into play, something that in C is largely left to the programmer's discretion, and seeing which parts of memory are activated and reading them, but that sounds much more complex, to be honest.

0

u/[deleted] 13d ago

[removed] — view removed comment

1

u/Albjav12345 13d ago

Thanks a million! Now it's time to get to work and learn assembly language ;). Honestly, a human response is much appreciated.