@cyfrin/aderyn

中文文档
0.6.8发布于 2026/01/22MIT近 30 天下载 1.4万

Rust based Solidity AST analyzer backend

原始使用文档
文档目录9 节
  1. What is Aderyn?
  2. Features
  3. Installation
  4. Quick Start
  5. VS Code extension
  6. Github Action
  7. Contributing & License
  8. Credits
  9. Attribution



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



Docs Discord X/Twitter


Stargazers Forks Contributors Release 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

  • Runs without need for any configuration support for Foundry and Hardhat projects.
  • Creates Markdown, JSON and Sarif reports.
  • Powers our officially supported VSCode extension (1800+ downloads)
  • List of supported detectors
  • Contributor Friendly
  • Downloaded more than 45K times.

Installation

NOTE Windows users must have WSL installed

Cyfrinup - All in one cross platform installation manager for Cyfrin tools.

One time setup. - Run cyfrinup

Re-run cyfrinup to upgrade all Cyfrin tools to the latest version.

Curl

Once installed, run aderyn-update to upgrade.

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/cyfrin/aderyn/releases/latest/download/aderyn-installer.sh | bash

Homebrew

Once installed, run brew upgrade cyfrin/tap/aderyn to upgrade.

brew install cyfrin/tap/aderyn

npm

Once installed, re-run npm install @cyfrin/aderyn -g to upgrade.

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

Run aderyn --version to check if Aderyn is installed successfully.

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

Github Action

Checkout Aderyn CI Assistant in the marketplace. Performs Static analysis on Solidity codebases in CI to catch potential vulnerabilities before committing code.

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.

To learn how to create your custom Aderyn detectors, checkout the official docs

Aderyn relies on a custom backend to generate AST for Solidity codebases. It leverages foundry-compilers

Credits

This project exists thanks to all the people who contribute.

Attribution

  • Initial inspiration for AST Visitor code from solc-ast-rs.
  • Original detectors based on 4naly3er detectors.
  • Shoutout to the original king of static analysis slither.

版本与发布记录

@cyfrin/aderyn 共发布 26 个版本,首次发布于 2025/02/12;过去 12 个月发布了 3 个版本。

版本发布日期距今
0.6.8latest2026/01/229 个月前
0.6.72026/01/119 个月前
0.6.62026/01/1010 个月前
0.6.52025/10/221.1 年前
0.6.42025/10/101.1 年前
0.6.32025/10/101.1 年前

关于 @cyfrin/aderyn 的常见问题

@cyfrin/aderyn 是什么?

Rust based Solidity AST analyzer backend

如何安装 @cyfrin/aderyn?

在项目目录运行 npm install @cyfrin/aderyn,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 aderyn,可以用 npx aderyn 直接运行。

@cyfrin/aderyn 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/cyfrin__aderyn 是否存在。

@cyfrin/aderyn 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=14。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@cyfrin/aderyn 可以商用吗?

@cyfrin/aderyn 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@cyfrin/aderyn 的下载量有多少?

根据 npm 官方下载统计,@cyfrin/aderyn 在 2026/10/11 – 2026/11/09 这 30 天内被下载 14,333 次,日均约 478 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cyfrin/aderyn 还在维护吗?

最新版本 0.6.8 发布于 2026/01/22(9 个月前);至今共发布 26 个版本,其中过去 12 个月发布了 3 个;首次发布于 2025/02/12。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。