EN ▼
Favorites
My Favorites
View All
Market Cap Price 24h%

Disclaimer: Content does not constitute investment advice. Trading involves risks—please invest with caution!

Kaspero Labs发布Kaspa-Redteam:面向Kaspa SilverScript合约的开源攻击模拟器

2026-11-02 21:24:23
Bookmark

Kaspero Labs 发布 kaspa-redteam:专为 SilverScript 合约设计的红队测试工具

Kaspero Labs(@KasperoLabs)是 Kaspa(@kaspaunchained)$KAS 生态系统中的一家开发者工作室,近日发布了 kaspa-redteam。这是一款旨在帮助开发人员在部署前发现 SilverScript 合约潜在弱点的测试工具。

该工具超越了传统的静态代码审查。它会对恶意交易进行签名,并依据 rusty-kaspa(Kaspa 节点软件)中的共识规则对这些交易进行评估。随后,它会标记出那些共识机制接受了攻击者预期应被拒绝的交易的情况。开发人员可以重放这些确切的交易,以深入调查漏洞。

kaspa-redteam 如何测试合约

根据项目 GitHub 仓库的介绍,该工具通过命令行针对 SilverScript 文件运行。其文档列出的选项包括:

  • 详细模式(Verbose Mode):列出每一次攻击尝试;
  • JSON 输出:支持持续集成流程;
  • 重放命令(Replay Command):重新评估已保存的发现结果。

目前列出的最新版本为 v0.2.0。

据 KuCoin News 总结的文章描述,该工具免费且开源。kaspa-redteam 首先会为每个合约路径找到合法的支出方式,然后尝试已知攻击,由 rusty-kaspa 自身的共识代码判定每种结果。对于工具无法支出的路径,会被报告为“未探索”而非“安全”,这意味着通过所有测试并不等同于证明合约绝对安全。

同一篇文章引用了主网契约 MinerDrip v1 的真实案例。该契约允许矿工保留第二枚硬币作为费用。该问题在审查中被发现并在 v2 版本中修复,据悉该工具能在毫秒级时间内检测到此类错误。

背景知识:SilverScript 与 Kaspa 契约

SilverScript 是 Kaspa 的高级智能合约语言。根据 Silverscript 语言参考文档,它直接编译为本机 Kaspa Script,无需虚拟机或中间表示形式,专为 Layer-1 UTXO 上的契约支出条件而设计。同一份参考文档指出,截至 2026 年 3 月,该技术仍处于实验阶段,仅限于 Testnet 12 使用。Kaspa 官方常见问题解答(FAQ)将契约描述为控制资金支出方式的可编程规则。

Kaspero Labs 自称是一家专注于 Kaspa 生态系统的独立软件工作室,致力于构建支付、钱包、分析和安全领域的工具。根据其 GitHub 页面介绍,他们还开发了 SilverScript Studio,这是一个基于 Web 的 IDE,用于编写和部署 Kaspa 契约。

随着基于契约的应用程序在 Kaspa 上不断发展,针对真实共识规则测试合约的工具可为开发人员提供额外的检查手段。该工具旨在辅助审查流程,而非替代专业的安全审计。

Disclaimer:

All content published on this website, including hyperlinks, related applications, forums, blogs, and other media accounts, originates from third-party platforms and their users. CoinMarketInsight makes no representations or warranties of any kind regarding the website or its content. All blockchain-related data and materials are provided for informational and research purposes only and do not constitute financial, legal, or investment advice. Users and third parties are solely responsible for the content they publish. CoinMarketInsight shall not be liable for any losses arising from the use of this website. You should exercise caution and conduct your own independent research, review, analysis, and verification before making any decisions.

Read Full Article
More News
TOP

TOP