ton-vulnerability-scanner

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

1|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/Ramprasad4121/srp --skill ton-vulnerability-scanner-ramprasad4121
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ton-vulnerability-scanner
Source: https://github.com/Ramprasad4121/srp/tree/main/skills-repos/trailofbits/plugins/building-secure-contracts/skills/ton-vulnerability-scanner
Command: npx skills add https://github.com/Ramprasad4121/srp --skill ton-vulnerability-scanner-ramprasad4121

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill identifies and helps fix critical, platform-specific vulnerabilities in TON smart contracts written in FunC, ensuring the security of your decentralized applications on The Open Network.

Core Features & Use Cases

  • Vulnerability Detection: Scans for 3 critical TON-specific issues: integer-as-boolean misuse, fake Jetton contracts, and forward TON without gas checks.
  • Code Analysis: Analyzes FunC/Tact contracts, identifies vulnerable patterns, and provides specific code fixes.
  • Use Case: Before deploying your new TON-based DeFi protocol, use this Skill to audit your FunC smart contracts for common and critical security flaws, preventing potential exploits and financial loss.

Quick Start

Use the ton-vulnerability-scanner skill to audit the FunC smart contracts in the 'contracts/' directory for security vulnerabilities.

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

To audit FunC smart contracts for security vulnerabilities on TON, you can scan your project's code to automatically identify critical issues like integer-as-boolean misuse and fake Jetton contracts. The scanner provides detailed code analysis and specific mitigation strategies for each detected vulnerability pattern.

What critical vulnerabilities should I check before deploying a TON smart contract?

Before deploying a TON smart contract, check for three critical vulnerabilities: integer-as-boolean misuse, fake Jetton contracts, and forwarding TON without gas checks. Scanning for these platform-specific flaws prevents potential exploits and financial loss in decentralized applications.

Can I use this vulnerability scanner to audit Tact contracts in my TON project?

Yes, you can use this vulnerability scanner to audit Tact contracts in your TON project. It supports analyzing both FunC and Tact contracts within your project directories to identify vulnerable patterns and provide specific code fixes.

What is the best way to detect fake Jetton contracts in FunC code?

The best way to detect fake Jetton contracts in FunC code is to run an automated vulnerability scan on your TON smart contracts. The scanner analyzes your codebase for this specific pattern, providing detailed code references and mitigation strategies to fix the identified issue.

Why does forwarding TON without gas checks cause security issues in smart contracts?

Forwarding TON without gas checks causes security issues because it allows operations to proceed without verifying sufficient transaction fees, potentially leading to unexpected contract behavior or exploitation. The scanner detects this pattern in FunC contracts and provides specific code fixes to mitigate the risk.