Scout is an extensible open-source tool intended to assist ink! and Soroboan smart contract developers and auditors detect common security issues and deviations from best practices.
This tool will help developers write secure and more robust smart contracts.
Our interest in this project comes from our experience in manual auditing and our usage of comparable tools in other blockchains. To improve coverage and precision, we´ll persist in research efforts on static and dynamic analysis techniques.
Create .github/workflows/scout.yml:
name: Scout-actions
on: [push]
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: coinfabrik/scout-actions@v3
with:
target: './target'
scout_args: (scout arguments)
scout_extra_args: (scout extra arguments)./target, and scout will run on sub/project: ./target/Cargo.toml.
This toml file in the target directory likely has the dependencies and project configuration that will undergo analysis.In short, this .yml file sets up a GitHub Action that activates on any push to the repository. When triggered, it will checkout the repository and then run the 'scout-actions@v3' Action on the './target' path.
| Key | Description |
|---|---|
target |
The path to the root of the project to be analyzed by Scout. It can be a path of Cargo.toml, and it defaults to the repo root. |
scout_args |
Allows you to overwrite the arguments for scout. The default makes scout output a markdown output. |
scout_extra_args |
This parameter allows you to add arguments for scout execution while keeping the required for markdown output. |
Detectors available for Scout Actions are the ones available for Scout in its ink! and Soroban versions.
name: scout-workflow
on: [push]
jobs:
nuevo-test:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
repository-projects: write
steps:
- name: checkout
uses: actions/checkout@v4
- name: do scout
uses: coinfabrik/scout-actions@v3
with:
target: 'avoid-autokey-upgradable/avoid-autokey-upgradable-1/vulnerable-example'
- uses: mshick/[email protected]
with:
message-path: ${{ github.workspace }}/report.mdScout is an open source vulnerability analyzer developed by CoinFabrik's Research and Development team.
We received support through grants from the Web3 Foundation Grants Program, the Aleph Zero Ecosystem Funding Program and the Stellar Community Fund.
| Grant Program | Description |
|---|---|
| Proof of Concept: We collaborated with the Laboratory on Foundations and Tools for Software Engineering (LaFHIS) at the University of Buenos Aires to establish analysis techniques and tools for our detectors, as well as to create an initial list of vulnerability classes and code examples. View Grant | Application Form. Prototype: We built a functioning prototype using linting detectors built with Dylint and expanded the list of vulnerability classes, detectors, and test cases. View Prototype | Application Form. |
|
| We improved the precision and number of detectors for the tool with a multi-phase approach. This included a manual vulnerability analysis of projects within the Aleph Zero ecosystem, comprehensive testing of the tool on leading projects, and refining its detection accuracy. | |
![]() |
We added support for Stellar's smart contract language, Soroban. We included various output formats, such as an HTML report, improved the tool's precision and recall, and added a GitHub action to run the tool with pull requests. |
We - CoinFabrik - are a research and development company specialized in Web3, with a strong background in cybersecurity. Founded in 2014, we have worked on over 180 blockchain-related projects, EVM based and also for Solana, Algorand, Stellar and Polkadot. Beyond development, we offer security audits through a dedicated in-house team of senior cybersecurity professionals, currently working on code in Substrate, Solidity, Clarity, Rust, TEAL and Stellar Soroban.
Our team has an academic background in computer science and mathematics, with work experience focused on cybersecurity and software development, including academic publications, patents turned into products, and conference presentations. Furthermore, we have an ongoing collaboration on knowledge transfer and open-source projects with the University of Buenos Aires.
Scout is licensed and distributed under a MIT license. Contact us if you're looking for an exception to the terms.