bytecode-viewer icon indicating copy to clipboard operation
bytecode-viewer copied to clipboard

[feature] Add MCP server

Open bivex opened this issue 7 months ago • 6 comments

For easy life ;)

bivex avatar Jun 14 '25 04:06 bivex

Surely this is necessary and won't bloat the BCV?

lustman avatar Jun 23 '25 20:06 lustman

Surely this is necessary and won't bloat the BCV?

I think nope

bivex avatar Jun 24 '25 04:06 bivex

Decompilation done by AI looks better and doesn't crash because of aconst_null + athrow and other primitive tricks. But due to limitations of AI services and the models themselves, it won't handle massive disassembler listings caused whether by MBA spam, useless calls or other garbage. It's interesting, but complicated. I can only see something like this as a plugin, as BCV is already bloated and needs to be cleaned up, IMO. What do you think?

lustman avatar Jun 27 '25 18:06 lustman

i doubt the idea was to use ai for decompilation.

ai for decompilation is probably be easily mislead by names of things and might randomly decide to not post something or output code which is just similar to what actually happens (maybe some parameters switched changes a legit function call from an exploit fuction call)?

the idea i think might more likely be to let ai see list of files and decompilation results of specific files/classes or methods it asks for.

Janmm14 avatar Jun 27 '25 19:06 Janmm14

AI is easily misled, you're right.

I see the use of AI as an aid to RE of certain method/class. “Please describe what the following thing does, and rename the variables and methods”.

The problem is that, firstly, the decompiler doesn't always produce the code, and secondly, that with a large context AI can start talking nonsense, forgetting the task, etc.

lustman avatar Jun 27 '25 19:06 lustman

I think this would be a cool feature! I've been thinking about integrating something like this for a while now. Personally though, I'd like to see it as a main feature, not just an optional plugin. - If anyone is interested in adding this and needs collaborative help I'm always willing to help out - feel free to reach out with a PR, email, or nudge on discord if you need help implementing this.

Konloch avatar Jun 27 '25 20:06 Konloch