r/ExploitDev • u/Nlbjj91011 • Feb 01 '26
Learning Joern
This is more of a VR question, but does anyone have some good resources for learning joern to query p-code/compiled binaries? Most of the tutorials online cover source code analysis
7
Upvotes
0
Feb 01 '26
[deleted]
0
u/Nlbjj91011 Feb 01 '26
Yea but last I checked it doesn’t work on p-code right? But I agree, I prefer using codeql
1
u/Sysc4lls Feb 02 '26
It works only on sources and needs to take part of the compilation process, it's a headache
2
u/tenatore Feb 01 '26
I had a good amount of success feeding Joern docs and GitHub repo to an LLM and asking it to generate a query to find vuln X. This was on a private platform so I can't really share a link but you can probably reproduce something similar with chatGPT personas or with Claude and some RAG. I also seem to recall there was a Joern MCP out there. I had to tweak the queries a bit because the model would sometimes fumble but it was a lot less work to fix them and going through a ton of queries to see what works and what doesn't Vs writing everything from scratch.