跳到正文
TakoAPI
返回技能列表

suisec

由 k66inthesky 提供

Health & Fitness
829下载量由 clawskills.sh 提供
2星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Sui Secure - Pre-simulate transactions via sui client call --dry-run and sui client ptb --dry-run, compare results.

描述

该技能的功能

Sui Secure intercepts Sui blockchain transactions before execution by running a dry-run simulation and comparing results against your declared intent. If the simulated outcome diverges from expectations, the transaction is blocked. Supports both automated auditing via main.py and manual comparison for sui client call commands.

Unlike manually inspecting contract source code, suisec runs the actual transaction path in simulation and surfaces concrete balance and object changes against your stated intent.

何时使用

  • Catching hidden SUI drain to attacker addresses before signing
  • Verifying NFT mint cost matches quoted price
  • Auditing swap transactions for unexpected asset flows
  • Blocking object ownership hijack in DeFi interactions
  • Pre-checking gas consumption on unfamiliar smart contracts

示例工作流

输入

User asks: run this PTB to swap 100 USDC for SUI, should cost about 0.01 SUI

智能体
  1. 1

    Collect user intent: swap 100 USDC for SUI, gas under 0.01 SUI

  2. 2

    Run python3 main.py 0.01 'sui client ptb --move-call 0xPKG::module::swap ...'

  3. 3

    Parse balance changes and object changes from dry-run JSON output

  4. 4

    Compare each change against declared intent, flag any unexpected recipients or mutations

  5. 5

    Report SAFE TO SIGN or BLOCKING MALICIOUS TRANSACTION based on exit code

输出

Audit passed: balance changes match intent, no unknown recipients detected. Transaction executed, digest: 0xABC123...

前置要求

  • Sui CLI installed and configured with an active address
  • main.py auditor script present in the working directory

安装

clawhub install k66inthesky/suisec

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接