Powered by the
GreenCore technology, Soteria can automatically detect security vulnerabilities in Solana programs by checking all code paths against these common pitfalls. The basic idea is to look at the data flow of each user account supplied to the program and flag it as untrustful if its validity is not properly checked in the program’s execution context.
Feb 3, 2022: Soteria team has added a scan in our auto auditor (free trial version below) as a quick response to the
Wormhole vulnerability. Please check it out and let us know your thoughts. More details can be found in
this blog post.
# 1. get the latest docker image, which now includes the bpf toolchain.
docker run -v $PWD:/workspace -it greencorelab/soteria:latest /bin/bash
# 2. update dependencies in the current docker image
sh -c "$(curl -sSfL https://release.solana.com/v1.9.5/install)"
rm -rf /root/.rustup/
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
cargo build-bpf
soteria -analyzeAll .