cairo-vulnerability-scanner

Scan Cairo and StarkNet smart contracts for critical security vulnerabilities.

Updated Nov 23, 2025
One-click install
npx skills add https://github.com/manuelbrandner85/Weltenbibliothekapp --skill cairo-vulnerability-scanner-manuelbrandner85
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cairo-vulnerability-scanner
Source: https://github.com/manuelbrandner85/Weltenbibliothekapp/tree/main/.agents/skills/cairo-vulnerability-scanner
Command: npx skills add https://github.com/manuelbrandner85/Weltenbibliothekapp --skill cairo-vulnerability-scanner-manuelbrandner85

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires caracal, and includes references (resource) components.

What problem does it solve?

This skill addresses the high-stakes challenge of securing Cairo smart contracts by automating the detection of critical vulnerabilities that are unique to the StarkNet ecosystem.

Core Features & Use Cases

  • Vulnerability Detection: Scans for 6 critical patterns including unchecked arithmetic, storage collisions, and L1-L2 messaging flaws.
  • Security Reporting: Provides detailed findings with file references, severity levels, and actionable code fixes.
  • Use Case: Use this during a pre-launch security assessment to identify and patch infinite mint vulnerabilities or signature replay risks before deploying to mainnet.

Quick Start

Run the cairo-vulnerability-scanner on the current directory to identify potential security flaws in your smart contracts.

Frequently Asked Questions about cairo-vulnerability-scanner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan Cairo smart contracts for security vulnerabilities on StarkNet?

To scan Cairo smart contracts for security vulnerabilities, run the automated scanner on your source directory to analyze contract logic and detect critical StarkNet risks like arithmetic overflows and storage collisions.

What types of StarkNet vulnerabilities can an automated audit detect?

An automated StarkNet vulnerability audit detects six critical patterns including unchecked arithmetic, storage collisions, L1-L2 messaging flaws, and signature replay attacks by analyzing contract source code and L1 handler logic.

When do I need to run a security audit for StarkNet contracts?

You need to run a StarkNet security audit during pre-launch assessments to identify and patch infinite mint vulnerabilities or signature replay risks before deploying your Cairo contracts to mainnet.

Does the Cairo vulnerability scanner require static analysis integration?

Yes, the Cairo vulnerability scanner requires static analysis integration to validate storage access, address boundaries, and cryptographic implementation when ensuring compliance with StarkNet security standards.

Can I get actionable code fixes for L1-L2 messaging errors?

Yes, you can get actionable code fixes for L1-L2 messaging errors because the security reporting provides detailed findings with file references, severity levels, and recommended code fixes for your Cairo contracts.

Do I need the caracal dependency to check for arithmetic overflows in Cairo?

Yes, you need the caracal dependency installed to check for arithmetic overflows in Cairo, as it provides the required integration for the scanner to analyze contract source code and L1 handler logic.