scan
Run source-level security analysis with bundled or custom Starlark rules.
$ vertexy scan --target-dir ./program
// OPEN_SOURCE :: SECURITY_TOOLCHAIN
Solana program security analysis
source scanning█
Audit Rust source, inspect Anchor constraints, fetch deployed programs, disassemble sBPF, and map control flow from one CLI.
// 01 :: COMMAND_SURFACE
Run source-level security analysis with bundled or custom Starlark rules.
$ vertexy scan --target-dir ./program
Extract instruction, signer, writable-account, PDA, and constraint context from Anchor.
$ vertexy recap --target-dir ./anchor
Pull executable programs, ProgramData, or raw accounts from a Solana RPC endpoint.
$ vertexy fetch --program-id <ADDRESS>
Disassemble sBPF, track immediates, label functions, and generate control-flow graphs.
$ vertexy reverse --mode both --bytecodes-file program.so
Expose Rust syntax-tree data for building and debugging custom detections.
$ vertexy ast --file-path ./src/lib.rs --starlark-syn-ast
Build Anchor or native SBF programs and stage compiled program binaries.
$ vertexy build --target-dir ./program
// 02 :: ANALYSIS_PIPELINE
01 def detect(node):
02 # inspect prepared Rust AST
03 if is_instruction(node):
04 accounts = node.accounts
05 for account in accounts:
06 if requires_signer(account):
07 emit(
08 severity="high",
09 message="signer validation"
10 )
11
12 register(detect)
// RULE_ENGINE :: STARLARK
Readable Starlark rules make it possible to add project-specific checks while keeping the core CLI stable. Vertexy ships with checks for common Solana security patterns and lets you bring your own rules.
// 03 :: BOOT_SEQUENCE
git clone https://github.com/AndrewKCollins/vertexy.gitcd vertexycargo install --path .vertexy --help// SOURCE_AVAILABLE :: REVIEW / FORK / CONTRIBUTE
CA_PENDING