GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - pavanchow/unweave: EVM bytecode disassembler in Rust that reconstructs intent and flags dangerous opcodes

BranchesTags
Open more actions menu

Latest commit

 

History

26 Commits
26 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
docs
docs
 
 
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
DESIGN.md
DESIGN.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

Unweave logo

Unweave: an EVM bytecode disassembler in Rust

Unweave is an EVM bytecode disassembler written in Rust that reconstructs intent and flags dangerous opcodes inline: delegatecall, callcode, selfdestruct, external call, create2, and tx.origin auth, each with a severity and a one-line explanation. Most disassemblers list mnemonics and leave you to supply the EVM security knowledge; Unweave names the security meaning, so a smart-contract auditor or agent gets correct disassembly with the risky opcodes, basic blocks, and recovered function selectors marked out.

Live demo · MIT licensed · written in Rust

Built from scratch by Pavan Nallamothu (LinkedIn, GitHub).

Try it

cargo run -- disasm 0x600160005560016000f4          # disassemble hex
cargo run -- disasm ./contract.hex --flags-only     # only the dangerous opcodes
cargo run -- disasm 0x...f4 --json                  # structured output
0009: DELEGATECALL
        ! [critical] delegatecall: runs external code in THIS contract's context and storage. The classic proxy/upgrade takeover and storage-collision vector.

How it differs

evmdis and ethersplay give you a correct opcode listing, and you supply the EVM security knowledge. Panoramix and heimdall decompile to pseudo-Solidity, powerful but heavy. Unweave is the fast middle: correct disassembly with the security-relevant opcodes (delegatecall, callcode, selfdestruct, external call, create2, tx.origin auth) flagged inline with severity and a one-line explanation.

HTTP API and console

cargo run -- serve --port 8080

Open the URL, paste bytecode, and see the disassembly with dangerous opcodes flagged. Or POST directly: curl -s localhost:8080/disasm -H 'content-type: application/json' -d '{"hex":"0x...f4"}'.

MCP server (agent-native)

cargo run -- mcp
claude mcp add unweave -- /path/to/unweave mcp

Tool unweave_disasm takes {hex} and returns instructions, basic blocks, recovered function selectors, and flagged opcodes, so an agent auditing a contract can ask "does this bytecode delegatecall".

Stack

Rust. A full EVM opcode table, PUSH-immediate decoding, and a danger table that maps security-relevant opcodes to a severity and explanation. See DESIGN.md.

Status

v0.2: disassembler, full opcode table, danger flags, basic-block splitting, function- selector recovery, CLI (text/JSON/flags-only), HTTP API, paste-bytecode console, and MCP server. Next: light stack tracking to resolve delegatecall/call targets.

License

MIT licensed. By Pavan Nallamothu.

About

EVM bytecode disassembler in Rust that reconstructs intent and flags dangerous opcodes

pavanchow.github.io/unweave/

Topics

binary-analysisblockchainbytecodedisassemblerethereumevmpavanchowreverse-engineeringrustsmart-contract-securityweb3

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.