cairo-vulnerability-scanner

Detect six critical vulnerability patterns in Cairo/StarkNet contracts.

9|2|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/hongmaple0820/agent-academy --skill cairo-vulnerability-scanner-hongmaple0820
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cairo-vulnerability-scanner
Source: https://github.com/hongmaple0820/agent-academy/tree/main/skills/design/building-secure-contracts/skills/cairo-vulnerability-scanner
Command: npx skills add https://github.com/hongmaple0820/agent-academy --skill cairo-vulnerability-scanner-hongmaple0820

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identifies Cairo/StarkNet contract security vulnerabilities by examining code for six critical patterns and producing actionable remediation guidance.

Core Features & Use Cases

  • Detects six vulnerability patterns unique to Cairo/StarkNet, including arithmetic overflow, L1-L2 messaging issues, address conversion pitfalls, and signature replay.
  • Generates structured reports with file references and severity to inform security reviews.
  • Integrates with Caracal and static-analysis workflows to support automated audits.
  • Provides mitigation guidance and example patterns for remediation.

Quick Start

Scan your Cairo/StarkNet project to produce a vulnerability report with actionable remediation guidance.

Frequently Asked Questions about cairo-vulnerability-scanner

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

FAQPage Schema
How do I audit StarkNet contracts for common Cairo vulnerabilities?

To audit StarkNet contracts for common Cairo vulnerabilities, scan the codebase to detect six critical security patterns including arithmetic overflow and signature replay. The scanner generates structured reports with file references and severity ratings to guide remediation.

What types of Cairo security issues can automated static analysis detect?

Automated static analysis can detect six critical Cairo vulnerability patterns: arithmetic overflow, L1-L2 messaging issues, address conversion pitfalls, and signature replay. It identifies these structural flaws by pattern matching during security audits.

Does the vulnerability scanner support L1-L2 messaging and signature verification flows?

Yes, the vulnerability scanner explicitly supports L1-L2 messaging and signature verification flows. It applies patterned detections to these specific StarkNet interactions to identify potential security flaws during audits.

How do I generate a structured vulnerability report for my StarkNet project?

To generate a structured vulnerability report for a StarkNet project, run the scanner to analyze Cairo code for critical patterns. It outputs reports containing file references, severity levels, and actionable mitigation guidance for remediation.

Can I integrate this vulnerability scanner with Caracal workflows?

Yes, you can integrate this vulnerability scanner with Caracal and static-analysis workflows. It supports automated audits by applying patterned detections to Cairo contracts within existing development pipelines.

What is the best way to fix address conversion pitfalls in Cairo contracts?

To fix address conversion pitfalls in Cairo contracts, review the structured vulnerability report for mitigation guidance and example patterns. The scanner provides specific remediation steps to correct flawed address handling logic.