Back to skill

Security audit

TONSCAN wallet balance

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward TON wallet lookup guide that uses TonScan, with a privacy documentation gap but no hidden, destructive, persistent, or privilege-seeking behavior.

Installers should understand that checking a TON address will contact TonScan and can link that address lookup to the user's context. Use it for explicit TON wallet lookups, avoid pasting addresses you do not want queried through TonScan, and prefer adding a short privacy notice if publishing an updated version.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (8)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The trigger guidance explicitly says to invoke the skill for casual phrases like 'check this address for me,' which is broader than a narrowly scoped blockchain lookup intent. Overbroad activation can cause the agent to send wallet addresses to an external service when the user did not clearly consent to a third-party lookup, increasing privacy and data-handling risk.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill description encourages use of a public third-party API but does not warn that wallet addresses supplied by users will be transmitted off-platform. Even though blockchain addresses are often public, they can still be sensitive in context because they may reveal a user's holdings, activity, or associations when linked to their identity.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
95% confidence
Finding

This endpoint definition establishes that user-supplied wallet addresses are transmitted to an external third-party service. In this skill's context that behavior is functional, but it is still a real data egress path and becomes risky if used without clear disclosure and consent.

Content

Scanner excerpt · SKILL.md (reported line 34)May include surrounding context.

Primary Endpoint: Address Information

text
GET https://api.tonscan.com/api/bt/getAddressInformation?address={ADDRESS}

Quick Balance Lookup (one-liner)

External Transmission

Medium
Category
Data Exfiltration
Confidence
94% confidence
Finding

The curl example demonstrates direct transmission of an address to TonScan, reinforcing that the skill exports user-provided data to a public external service. Although expected for blockchain lookups, this is still a privacy-relevant behavior that should be treated as a true security concern in agent environments.

Content

Scanner excerpt · SKILL.md (reported line 39)May include surrounding context.

Quick Balance Lookup (one-liner)

bash
curl -s "https://api.tonscan.com/api/bt/getAddressInformation?address=EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2" \
  | jq '.json.data.detail.balance'

External Transmission

Medium
Category
Data Exfiltration
Confidence
94% confidence
Finding

This example sends the address variable to the TonScan API and processes the returned account details, confirming an external data-sharing path. If a user pastes a personally associated wallet address, the lookup can expose sensitive financial metadata to a third party without adequate notice.

Content

Scanner excerpt · SKILL.md (reported line 46)May include surrounding context.

Full Response with Human-Readable Balance

bash
ADDRESS="EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2"
curl -s "https://api.tonscan.com/api/bt/getAddressInformation?address=${ADDRESS}" \
  | jq '{
      address: .json.data.detail.address,
      balance_nanoton: .json.data.detail.balance,

External Transmission

Medium
Category
Data Exfiltration
Confidence
95% confidence
Finding

The Python sample performs an outbound request with the address as a parameter, which is a concrete external transmission mechanism. In a skill system, sample code often mirrors operational behavior, so this indicates real privacy exposure rather than a hypothetical issue.

Content

Scanner excerpt · SKILL.md (reported line 96)May include surrounding context.

md
import requests

def get_ton_balance(address: str) -> dict:
    url = "https://api.tonscan.com/api/bt/getAddressInformation"
    resp = requests.get(url, params={"address": address})
    resp.raise_for_status()

External Transmission

Medium
Category
Data Exfiltration
Confidence
95% confidence
Finding

The JavaScript example similarly transmits the address to TonScan via fetch, confirming the same third-party data egress path in another implementation. The skill context makes this expected, but not harmless: addresses can be privacy-sensitive once linked to a user or conversation context.

Content

Scanner excerpt · SKILL.md (reported line 121)May include surrounding context.

JavaScript / Node.js Example

javascript
async function getTonBalance(address) {
  const url = new URL("https://api.tonscan.com/api/bt/getAddressInformation");
  url.searchParams.set("address", address);

  const res = await fetch(url);

External Transmission

Medium
Category
Data Exfiltration
Confidence
93% confidence
Finding

This example again shows an address being sent to TonScan, demonstrating repeated encouragement of external lookups without paired privacy messaging. Repetition across the skill increases the likelihood of routine data egress becoming normalized and overlooked by users.

Content

Scanner excerpt · SKILL.md (reported line 160)May include surrounding context.

Checking for empty/uninitialized accounts:

bash
curl -s "https://api.tonscan.com/api/bt/getAddressInformation?address=..." \
  | jq 'if .json.data.detail.balance == "0" then "Empty wallet" else "Has funds" end'

Static analysis

No suspicious patterns detected.