# Review TON Smart Contracts

A TON contract review can miss discrepancies between intended permissions, source code, and interface definitions. This workflow traces those checks and records findings and coverage gaps.

## Install

```bash
npx skillstore add flint-research/ton-review
```

## Metadata

- Status: approved
- Slug: flint-research-ton-review
- Skillstore revision: r1
- Version status: missing
- Tree hash: 57d6c82ad199f4b7608d099f674b50cbfba8f7ac3db798fc6af239ce347916d6
- Author: flint-research
- GitHub username: flint-research
- Repository: https://github.com/flint-research/skills/tree/b739665d19cd1d924d41c680722e1372867a1bff/auditing/ton-audit/skills/ton-review
- Ref: d715043e3196bdd213a9eb9e5f78632e50554733
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, network, filesystem
- Quality score: 64
- Public page: https://skillstore.pages.dev/skills/flint-research-ton-review
- Manifest: https://skillstore.pages.dev/api/skills/flint-research-ton-review/manifest

## Capabilities

- Defines the review scope using the contract language, compiler details, and expected roles.
- Guides review of message handling, sender checks, and outgoing actions.
- Guides review of storage updates, value handling, and serialization.
- Compares contract source with a supplied ABI and records discrepancies.
- Calls for source citations, counterevidence, remediation, and coverage notes.

## Use Cases

- Check owner permissions: Compare expected owner and sender roles with the checks in a local contract before requesting a formal review.
- Compare source and interface: Check whether a supplied ABI matches message handling in the source and document differences for release review.
- Assess evidence and coverage: Check prior findings against the available source, record counterevidence, and identify unanswered questions.

## Prompt Templates

### Outline the review scope

```
Review only the authorized local TON source in [scope]. Identify the language, known compiler details, expected roles, and missing inputs.
```

### Trace sender permissions

```
Check the authorized handlers in [scope] against [expected roles]. Cite sender checks and related storage updates, then note assumptions about outgoing actions.
```

### Check source and ABI alignment

```
Compare [authorized source] with [supplied ABI]. Cite message or serialization differences, and separate confirmed discrepancies from coverage gaps.
```

### Verify an audit assessment

```
Reassess [prior findings] against [authorized source and artifacts]. Cite evidence and counterevidence, explain severity, and recommend fixes for supported findings.
```

## Limitations

- The documented workflow targets local TON source, not Solidity or Solana programs.
- The reviewed package does not contain the Python helper or the companion review skills.
- ABI discrepancies cannot be assessed without an ABI.
- Deployment assumptions can only be reviewed when supporting source and artifacts are available.

## Best Practices

- Specify the authorized files, compiler version, and expected roles before review.
- Provide an ABI and deployment artifacts from the same build when available.
- Verify the origin and contents of the Python helper before allowing execution.

## Anti Patterns

- Expanding the review to unrelated repositories or files without authorization.
- Treating the ABI as proof of sender checks or state updates.
- Reporting unreviewed message paths or deployment assumptions as verified.

## Security Audit

- Audited at: 2026-11-29T12:14:32.285\+00:00
- Summary: The static alerts identify Markdown formatting, a website link, and a fixed dependency reference rather than the reported vulnerabilities. The workflow directs agents to run a Python helper that is absent from the audited package. No evidence was found of prompt injection or instructions to transfer project data.

## Stats

- Views: 0
- Downloads: 0
- Favorites: 0
- Popularity score: 0
