cairo vulnerability scanner

AI Community

Skill notes

1. Purpose

Systematically scan Cairo smart contracts on StarkNet for platform-specific security vulnerabilities related to arithmetic, cross-layer messaging, and cryptographic operations. This skill encodes 6 critical vulnerability patterns unique to Cairo/StarkNet ecosystem.

2. When to Use This Skill

Auditing StarkNet smart contracts (Cairo) Reviewing L1-L2 bridge implementations Pre-launch security assessment of StarkNet applications Validating cross-layer message handling Reviewing signature verification logic

File Extensions & Indicators

Cairo files: .cairo

Project Structure

src/contract.cairo - Main contract implementation src/lib.cairo - Library modules tests/ - Contract tests Scarb.toml - Cairo project configuration

Tool Support

Caracal: Trail of Bits static analyzer for Cairo Installation: cargo install --git https://github.com/crytic/caracal --profile release --force (a Rust tool — not on PyPI) Usage: caracal detect src/ cairo-test: Built-in testing framework Starknet Foundry: Testing and development toolkit

Fluxly profile Runtime and permissions are inferred by Fluxly static checks, not author declarations or runtime test results.
Domain
AI
Author-declared agents
No explicit declaration found; this is not inferred or tested compatibility
Static check
88 / 100 · heuristic scan, not runtime safety proof
Runtime evidence
Not run; no isolated runtime test evidence is currently recorded
Author / version / license
@trailofbits · no license declared
Token usage
Lean
Setup complexity
Plug-and-play
External API key
Not required
Operating systems
Unspecified (assume cross-platform)
Runtime requirements
No explicit requirements detected
Detected file/system behavior
  • Read-only
  • Write / modify
Network behavior
Local-only
Install commands
None (reference only)

Heads up: Tool permissions are not declared; actual access depends on the runtime.

Output preview cairo-vulnerability-scanner.preview
# 5. Example Output

=== CAIRO/STARKNET VULNERABILITY SCAN RESULTS ===

Discussion

Powered by GitHub Discussions. Sign in with GitHub to comment, react, or subscribe.