ton-vulnerability-scanner

Scan FunC smart contracts for integer-as-boolean, fake Jetton, and gas-check vulnerabilities.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/andrescardonas7/salchipapa-web --skill ton-vulnerability-scanner-andrescardonas7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ton-vulnerability-scanner
Source: https://github.com/andrescardonas7/salchipapa-web/tree/main/.cursor/skills/ton-vulnerability-scanner
Command: npx skills add https://github.com/andrescardonas7/salchipapa-web --skill ton-vulnerability-scanner-andrescardonas7

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

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

Core Features & Use Cases

  • Vulnerability Detection: Scans for 3 high-severity issues: integer-as-boolean misuse, fake Jetton contracts, and improper TON forwarding.
  • Code Analysis: Analyzes FunC/Tact code, checks project structure, and identifies common TON development patterns.
  • Use Case: Before deploying a new Jetton token on TON, use this Skill to audit your contract's transfer_notification handler for vulnerabilities that could allow attackers to mint tokens out of thin air.

Quick Start

Use the ton-vulnerability-scanner skill to audit the smart contracts in the current directory for security flaws.

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 FunC smart contracts on TON for security vulnerabilities?

To audit FunC smart contracts on TON, use a scanner to analyze contract code for platform-specific vulnerabilities like integer-as-boolean misuse, fake Jetton implementations, and improper TON forwarding. It scans your project directory and provides actionable mitigation recommendations for identified flaws.

What are common security vulnerabilities in TON Jetton contracts?

Common TON Jetton vulnerabilities include fake contract implementations, improper TON forwarding without gas checks, and integer-as-boolean misuse. Attackers can exploit these flaws in handlers like transfer_notification to potentially mint tokens out of thin air or drain contract funds.

Can I scan Tact smart contracts for TON network vulnerabilities?

Yes, you can scan Tact smart contracts alongside FunC code for TON network vulnerabilities. The scanner analyzes both languages to identify platform-specific patterns, checks project structure, and detects critical issues like fake Jetton contracts and improper forward TON handling.

How do I check if my TON contract has fake Jetton vulnerabilities?

To check for fake Jetton vulnerabilities in your TON contract, scan the code to identify whether the contract properly validates Jetton implementations. The scanner analyzes your transfer_notification handler and project structure to detect patterns that could allow attackers to mint tokens illegitimately.

What happens if I forward TON without checking gas in FunC contracts?

Forwarding TON without gas checks in FunC contracts creates a critical vulnerability where transactions may fail or consume excessive fees. The scanner identifies improper TON forwarding patterns in your code and provides actionable recommendations to ensure gas validation before execution.

When should I run a vulnerability scan on TON smart contracts?

Run a vulnerability scan on TON smart contracts before deploying any new Jetton token or contract to mainnet. Use it during development to audit transfer_notification handlers and verify that integer-as-boolean misuse, fake Jetton patterns, and gas check issues are resolved pre-deployment.