Exetools

Exetools (https://forum.exetools.com/index.php)
-   Community Tools (https://forum.exetools.com/forumdisplay.php?f=47)
-   -   dnSpyEx + LLM Plugin for Deobfuscation & Code Analysis (https://forum.exetools.com/showthread.php?t=21298)

dotdll 07-17-2025 22:10

dnSpyEx + LLM Plugin for Deobfuscation & Code Analysis
 
Attempting to build a plugin for dnSpyEx that integrates a local LLM (like Meta’s LLaMA via Ollama or llama.cpp) to perform:
Automated deobfuscation of .NET assemblies
AI-powered code analysis and summarisation
Context-based rename suggestions
IL tracing and patch generation

The plugin would send selected decompiled or IL code to the LLM and stream back suggestions or explanations. My goal is to add a toolbar option to "Analyse with LLM"

Using

Ollama or LLamaSharp to run the model locally (e.g., LLaMA 3 or Mistral in GGUF format)

dnSpyEx extension API to hook context menus, analyse code, and apply changes

Cloud fallback via OpenAI GPT-4o API for richer context or weaker machines

Use cases include:

Refactoring obfuscated code

Explaining complex IL or control flow

Suggesting patches to bypass license checks or inject logic

Auto-generating meaningful symbol names based on context

The goal is a seamless, AI-assisted RE workflow—no uploading code to the cloud required.


All times are GMT +8. The time now is 11:59.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX