Skip to content

Cyfrin/aderyn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c774d2d Β· Apr 13, 2025
Apr 11, 2025
Apr 11, 2025
Oct 13, 2023
Apr 13, 2025
Apr 13, 2025
Apr 13, 2025
Apr 15, 2024
Mar 10, 2025
Mar 7, 2025
Apr 12, 2025
Apr 11, 2025
Apr 13, 2025
Oct 5, 2024
Sep 22, 2024
Mar 19, 2025
Mar 10, 2025
Oct 30, 2023
Apr 10, 2025
Apr 13, 2025
Apr 13, 2025
Jun 12, 2024
Mar 23, 2025
Apr 13, 2025
Mar 23, 2025
Mar 22, 2025
Apr 7, 2025
Apr 2, 2025
Oct 17, 2024
Mar 5, 2024
Feb 12, 2025
Oct 4, 2024
Apr 13, 2025

Repository files navigation



A powerful Solidity static analyzer that takes a bird's eye view over your smart contracts.



Docs Discord Twitter


Stargazers Forks Contributors Issues GPL-3.0 License

What is Aderyn?

Aderyn is an open-source public good developer tool. It is a Rust-based solidity smart contract static analyzer designed to help protocol engineers and security researchers find vulnerabilities in Solidity code bases.

You can read the Cyfrin official documentation for an in-depth look at Aderyn's functionalities.

There is also an officially supported VSCode extension for Aderyn. Download from the Visual Studio Marketplace and start identifying vulnerabilities in your Solidity code with ease.

Features

  • Off the shelf support for Foundry projects.
  • Off the shelf support for Hardhat projects. (Sometimes remappings.txt maybe required)
  • Configuration file (adeyrn.toml) needed to support custom frameworks.
  • Markdown, JSON and Sarif reports

Installation

NOTE Windows users must have WSL installed

Using Cyfrinup

Cyfrinup is the cross platform installation manager for Cyfrin tools.

One time setup.

Run aderyn --version to check the installation.

Run cyfrinup to upgrade everything to the latest version.


Using curl

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/cyfrin/aderyn/releases/latest/download/aderyn-installer.sh | bash
Upgrade older versions by running: aderyn-update

Using Homebrew

brew install cyfrin/tap/aderyn
Upgrade older versions by running: brew upgrade cyfrin/tap/aderyn

Using npm

npm install @cyfrin/aderyn -g
Upgrade older versions by (re)running: npm install @cyfrin/aderyn -g

If you are installing with Curl or Homebrew or npm, ensure that the correct version of Aderyn in your path comes from either the Homebrew or npm global packages directory. If an older version exists at ~/.cyfrin/bin/aderyn, remove it using rm -f ~/.cyfrin/bin/aderyn, as this is no longer the default installation location.

Quick Start

Quick Start example with video guide.

cd path/to/solidity/project/root
aderyn

This generates a report.md

See examples using more CLI options here

VS Code extension

Officially supported VSCode extension for Aderyn. Download from Visual Studio Marketplace

Contributing & License

Help us build Aderyn 🦜 Please see our contribution guidelines for in-depth developer environment setup and PR approval process. Aderyn is an open-source software licensed under the GPL-3.0 License.

Building a custom Aderyn detector

Aderyn makes it easy to build Static Analysis detectors that can adapt to any Solidity codebase and protocol. This guide will teach you how to build, test, and run your custom Aderyn detectors. To learn how to create your custom Aderyn detectors, checkout the official docs

Credits

This project exists thanks to all the people who contribute.

Attribution