View Single Post
  #1  
Old 07-17-2025, 22:10
dotdll dotdll is offline
Guest
 
Join Date: Jul 2025
Location: South Africa
Posts: 2
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 3
Thanks Rcvd at 4 Times in 1 Post
dotdll Reputation: 0
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.
Reply With Quote
The Following 4 Users Say Thank You to dotdll For This Useful Post:
Apuromafo (07-18-2025), Doit (09-09-2025), Nooboy (09-30-2025), zionoobie (07-28-2025)