Heimdall is an advanced EVM smart contract toolkit specializing in bytecode analysis and extracting information from unverified contracts.
heimdall-rs
Overview
Heimdall is an advanced EVM smart contract toolkit specializing in bytecode analysis and extracting information from unverified contracts. Heimdall is written in Rust and is designed to be fast, modular, and more accurate than other existing tools.
Currently, Heimdall supports the following operations:
EVM Bytecode Disassembly
EVM Smart-Contract Control Flow Graph Generation
EVM Smart-Contract Decompilation
Smart-Contract Storage Dumping
Raw Transaction Calldata Decoding
Raw Transaction Trace Decoding
Installation & Usage
Ensure that Rust & Cargo are installed:
bash
curl https://sh.rustup.rs -sSf | sh
Heimdall's update and installation manager, bifrost, can be installed using the following command:
bash
curl -L http://get.heimdall.rs | bash
If you want to manually install bifrost, you can download the latest release from here.
Once you have installed bifrost, you can use it to install Heimdall using the following command from a new terminal:
bash
bifrost
After compilation, the heimdall command will be available to use from a new terminal. For advanced options, see the bifrost documentation.
Having trouble? Check out the Troubleshooting section in the wiki.
Documentation
Documentation for all of heimdall-rs is available in the wiki.
Contributing
If you'd like to contribute to Heimdall or add a module, please open a pull-request with your changes, as well as detailed information on what is changed, added, or improved.
Chen, Z., Beillahi, S. M., Barahimi, P., Minwalla, C., Du, H., Veneris, A., & Long, F. (2025). Secure smart contract with control flow integrity. arXiv. https://doi.org/10.48550/arXiv.2504.05509
Dai, N. D., & Tuan, L. M. (2026). Towards Semantic-Preserving Obfuscation for Analysis-Resistant EVM Bytecode. Journal of Science and Technology on Information security. https://isj.vn/index.php/journal_STIS/article/view/6410
Gkioka, M. (2025). Domain transfer via decompilation: Enhancing code LLMs’ performance for blockchain applications [Master’s thesis, National and Kapodistrian University of Athens]. Pergamos. https://pergamos.lib.uoa.gr/uoa/dl/object/5296079
Lagouvardos, S., Bollanos, Y., Debono, M., Grech, N. & Smaragdakis, Y. (2025). Precise static identification of Ethereum storage variables. arXiv. https://doi.org/10.48550/arXiv.2503.20690
Lagouvardos, S., Bollanos, Y., Grech, N., & Smaragdakis, Y. (2025). The incredible shrinking context…in a decompiler near you. arXiv. https://doi.org/10.48550/arXiv.2409.11157
Liu, Y., Li, X., & Li, Y. (2025). DeepTx: Real-time transaction risk analysis via multi-modal features and LLM reasoning. arXiv. https://doi.org/10.48550/arXiv.2510.18438
Nguyen, D. D., & Lai, M. T. (2026). Towards semantic-preserving obfuscation for analysis-resistant EVM bytecode. Journal of Science and Technology on Information Security, 2(28). https://doi.org/10.54654/isj.v2i28.6410
Peng, C., Jiang, M., Zhou, Y., & Wu, L. (2026). Thought is all you need: Smart contract vulnerability detection with thought-augmented large language model. Proceedings of the ACM on Software Engineering, 3(FSE). https://doi.org/10.1145/3808141
Qasse, I., Hamdaqa, M., & Jónsson, B. Þ. (2025). PROXiFY: A bytecode analysis tool for detecting and classifying proxy contracts in Ethereum smart contracts. In ASE 2025: Proceedings of the 40th IEEE/ACM International Conference on Automated Software Engineering (pp. 4114–4117). IEEE. https://doi.org/10.1109/ASE63991.2025.00388
Wang, Z., Yu, J., Qin, K., Song, D., Gervais, A., & Zhou, L. (2026). TxRay: Agentic postmortem of live blockchain attacks. arXiv. https://doi.org/10.48550/arXiv.2602.01317
Ye, M., Lin, X., Nan, Y., Wu, J., & Zheng, Z. (2024). Midas: Mining profitable exploits in on-chain smart contracts via feedback-driven fuzzing and differential analysis. In M. Christakis & M. Pradel (Eds.), ISSTA 2024: Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis (pp. 794–805). Association for Computing Machinery. https://doi.org/10.1145/3650212.3680321
Huang, M., Ji, Z., Mo, Y., & Wang, S. (2026). When Verified Source Becomes Attack Input: Defending Smart Contracts Against LLM-Based Vulnerability Scanning. arXiv. https://doi.org/10.48550/arXiv.2608.28400
If you have used or plan to use Heimdall in your research, please reach out to me via email or Twitter! I'd love to hear about what you're using heimdall for :)