ton-vulnerability-scanner

Audit TON FunC smart contracts for critical security vulnerabilities.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/keremtoker468-dotcom/restoran --skill ton-vulnerability-scanner-keremtoker468-dotcom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ton-vulnerability-scanner
Source: https://github.com/keremtoker468-dotcom/restoran/tree/main/.claude/skills/ton-vulnerability-scanner
Command: npx skills add https://github.com/keremtoker468-dotcom/restoran --skill ton-vulnerability-scanner-keremtoker468-dotcom

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

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

Core Features & Use Cases

  • Vulnerability Detection: Scans for 3 specific, high-impact TON vulnerabilities: integer-as-boolean misuse, fake Jetton contracts, and forward TON without gas checks.
  • Code Analysis: Analyzes FunC/Tact contracts, identifies patterns, and reports findings with severity.
  • Fix Recommendations: Provides actionable advice and code examples to remediate identified issues.
  • Use Case: Before deploying a new Jetton token on TON, use this Skill to audit its contract for common security flaws, ensuring its integrity and preventing exploits.

Quick Start

Use the ton-vulnerability-scanner skill to audit the FunC smart contract located at '/contracts/my_token.fc'.

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 a TON smart contract for security vulnerabilities?

Auditing a TON smart contract involves scanning FunC code to detect critical vulnerabilities such as integer-as-boolean misuse, fake Jetton implementations, and missing forward TON gas checks, followed by applying specific mitigation strategies to secure the contract.

What are common FunC vulnerabilities when deploying a Jetton on the TON blockchain?

Common FunC vulnerabilities include fake Jetton contract implementations, integer-as-boolean misuse, and failing to check forward TON gas. These high-impact flaws can lead to severe financial loss if not audited before deployment.

How do I fix fake Jetton contract implementations in FunC?

Fix fake Jetton implementations by identifying the vulnerable code patterns during an audit and applying the recommended code examples and mitigation strategies provided to ensure proper contract integrity on the TON blockchain.

Can I use this vulnerability scanner to check TON contracts written in Tact?

The scanner primarily analyzes TON smart contracts written in FunC to identify critical security vulnerabilities. It evaluates FunC and Tact contract patterns to report findings with severity and actionable fix recommendations.

Why does my TON contract fail when forward TON gas is not checked?

Failing to check forward TON gas is an improper implementation that can cause transaction failures or unexpected behavior. The scanner identifies this missing gas check pattern and provides code examples to remediate the issue.