ton-vulnerability-scanner

Scan FunC smart contracts for TON-specific vulnerabilities and provide remediation guidance.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/ofelixdev/cc-kit --skill ton-vulnerability-scanner-ofelixdev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ton-vulnerability-scanner
Source: https://github.com/ofelixdev/cc-kit/tree/main/template/skills/ton-vulnerability-scanner
Command: npx skills add https://github.com/ofelixdev/cc-kit --skill ton-vulnerability-scanner-ofelixdev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill identifies and helps fix critical security vulnerabilities specific to TON smart contracts written in FunC, preventing potential exploits and financial losses.

Core Features & Use Cases

  • Vulnerability Detection: Scans for 3 critical TON-specific vulnerabilities: integer-as-boolean misuse, fake Jetton contracts, and forward TON without gas checks.
  • Code Analysis: Analyzes FunC/Tact contracts for insecure patterns.
  • Fix Recommendations: Provides detailed explanations and code examples for remediation.
  • Use Case: When auditing a new TON-based DeFi protocol, use this Skill to proactively identify and fix potential security flaws before deployment, ensuring the safety of user funds.

Quick Start

Run the ton-vulnerability-scanner skill to audit the smart contracts in the 'contracts/' directory.

Frequently Asked Questions about ton-vulnerability-scanner

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

FAQPage Schema
How do I audit TON smart contracts for critical vulnerabilities?

Auditing TON smart contracts involves scanning FunC code to identify critical vulnerabilities like integer-as-boolean misuse, fake Jetton contracts, and forward TON without gas checks. The scanner analyzes insecure patterns and provides remediation guidance.

What are common security vulnerabilities in FunC smart contracts?

Common security vulnerabilities in FunC smart contracts include integer-as-boolean misuse, fake Jetton contracts, and forwarding TON without gas checks. Identifying these insecure patterns early prevents potential exploits and financial losses.

How to check for fake Jetton contracts in TON?

Checking for fake Jetton contracts in TON involves scanning the smart contract code for specific insecure patterns that mimic legitimate Jettons. The scanner detects these fake contracts and provides detailed explanations and code examples for remediation.

Does the vulnerability scanner support Tact contracts or only FunC?

The vulnerability scanner primarily analyzes FunC contracts but also mentions analyzing Tact contracts. It scans for critical TON-specific vulnerabilities and provides detailed reports and remediation guidance for both.

What is the best way to prevent forward TON without gas checks?

Preventing forward TON without gas checks requires scanning the smart contract to identify missing gas validations. The scanner detects this specific vulnerability and provides code examples to implement proper gas checks before deployment.

Can I scan a new TON DeFi protocol for security flaws before deployment?

Yes, you can scan a new TON DeFi protocol for security flaws before deployment by running the scanner on the contracts directory. It proactively identifies and helps fix potential vulnerabilities, ensuring the safety of user funds.