Getting Started
Aegis Vault checks 7 core SEP-56 functions and four basic security risks of a Soroban tokenized vault, on Stellar Testnet. It is a command-line tool written in Rust. The web checker on aegisvault.site runs the same tool on a hosted backend.
What a run does
Every run makes 11 checks, in two groups.
- 7 conformance checks:
total_assets,deposit,mint,withdraw,redeem,convert_to_shares,convert_to_assets. - 4 security checks:
donation_attack,overflow_protection,rounding_direction,access_control_probing.
The 7 conformance checks change the target vault's state. They call deposit, mint, withdraw and redeem on the vault you pass to --vault, using Testnet funds from your own test accounts. Running the checker against a vault is not a read-only operation.
The 4 security checks never touch the target vault's state. Each one reads the target's Wasm hash, underlying asset and decimals_offset, deploys a throwaway copy with that configuration, and runs its scenario against the copy.
The network is fixed to Testnet. There is no option to point the checker at another network.
Requirements
- Stellar CLI v28.0.0 or newer on your
PATH. The checker startsstellardirectly, not through a shell. On Windows it needs a package that providesstellar.exe; astellar.cmdorstellar.batshim is not found. - Seven funded Testnet identities:
alice,bob,carol,dave,erin,frank,grace. - To build from source only: a Rust toolchain that supports edition 2024 (built and tested with 1.98.1) and Git.
Create the test identities
The checks use seven named accounts. They are not interchangeable: checks that run at the same time use separate accounts so they do not compete for transaction sequence numbers. Create and fund them once.
for n in alice bob carol dave erin frank grace; do
stellar keys generate "$n" --network testnet --fund
doneforeach ($n in "alice","bob","carol","dave","erin","frank","grace") {
stellar keys generate $n --network testnet --fund
}If the vault's underlying asset is a custom token rather than native XLM, some accounts also need a balance of that token. See Custom token vaults.
Install
Download the archive for your platform and its .sha256 file from the GitHub releases page (latest: v0.5.0).
| Platform | File | Notes |
|---|---|---|
| Windows x86_64 | sep56-vault-guard-windows-x86_64.zip | Run from cmd, not by double-clicking. |
| Linux x86_64 | sep56-vault-guard-linux-x86_64.tar.gz | Needs glibc 2.35 or newer (Ubuntu 22.04). |
| macOS (Apple silicon and Intel) | sep56-vault-guard-macos-universal.tar.gz | One universal binary, macOS 11.0 or newer. |
certutil -hashfile sep56-vault-guard-windows-x86_64.zip SHA256sha256sum -c sep56-vault-guard-linux-x86_64.tar.gz.sha256
tar -xzf sep56-vault-guard-linux-x86_64.tar.gzshasum -a 256 -c sep56-vault-guard-macos-universal.tar.gz.sha256
tar -xzf sep56-vault-guard-macos-universal.tar.gzOn Windows, compare the printed hash with the contents of the .sha256 file.
The Windows and Linux binaries are not signed. The macOS binary is ad-hoc signed (.github/workflows/release.yml), not Developer-ID signed and not notarized. Downloaded through a browser, Windows SmartScreen shows a warning; after checking the hash, choose "More info", then "Run anyway". Whether macOS Gatekeeper warns for a browser download has not been tried, so no workaround is given.
The Linux binary is built and glibc-checked in CI but has not been run by the maintainer. The macOS binary is built and smoke-tested in CI only; it has not been run against Testnet on macOS.
Build from source
git clone https://github.com/SkyBreak1927/sep56-vault-guard.git
cd sep56-vault-guard
cargo build --release -p sep56-vault-guardKeep -p sep56-vault-guard. Without it, Cargo also builds the example vault contracts in contracts/, which the checker does not need. The binary lands at target/release/sep56-vault-guard (.exe on Windows).
Run your first check
.\sep56-vault-guard.exe --vault <CONTRACT_ADDRESS> --output text./sep56-vault-guard --vault <CONTRACT_ADDRESS> --output textA run usually takes about a minute, because every check is a chain of Testnet round trips. It prints 11 result lines and one summary line. Without --vault, it checks the project's own reference vault.
Because the conformance checks change the vault's state, only run the checker against vaults you deployed yourself or the project's test vaults.