Auditing Move Resource Ownershipのロゴ

Auditing Move Resource Ownership

組織
UnboundCompute
auditing-move-resource-ownership

Moveスマートコントラクト(AptosまたはSui)を監査し、関数の公開範囲とability setを確認したうえで、公開エントリー関数や渡されたオブジェクトまたはリソースが、署名者の権限、所有権、ケイパビリティの保有を検証せずに処理されないか確認します。署名者の権限チェックがない公開エントリー関数、操作前に所有権を検証しないオブジェクトやリソース、漏えいや権限昇格につながる形で返却または保存されるケイパビリティ、複製を可能にする過剰なability(key、store、copy、drop)の付与、abortせずにオーバーフローする算術処理、変更可能な権限を残す初期化またはアップグレード経路を対象とします。モジュール関数、その公開範囲、リソースとabilityのモデルを確認するときに使用してください。EVMアカウントモデルや、別のスキルが扱うリエントランシーの検査は対象外です。関数に到達できる任意の署名者がソース、所有していないリソースを操作する状態変更がシンクであり、所有権または権限の検証が欠けていることが脆弱性です。

概要

公開者UnboundCompute
リポジトリsecurity-agent-skills
スキル名auditing-move-resource-ownership
スター
27
フォーク
8
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    UnboundComputeがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Auditing Move Resource Ownership」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-move-resource-ownership
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnboundCompute/security-agent-skills.git /tmp/security-agent-skills
mkdir -p .claude/skills
cp -r /tmp/security-agent-skills/skills/auditing-move-resource-ownership .claude/skills/auditing-move-resource-ownership
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAuditing Move Resource Ownershipを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にAuditing Move Resource Ownershipを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Auditing Move Resource Ownershipは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Auditing Move resource ownership: acting on a resource without proving the caller owns it

Move's safety rests on linear resources and abilities, and the bug is a function that acts on a resource or an object without proving the caller is entitled to it. A public entry function with no signer-authority check, an object passed in and mutated without verifying its owner, a capability resource that leaks because it can be stored or returned, an ability granted too broadly, these are the ways an arbitrary signer reaches a privileged state change. You audit it by resolving each function's visibility (who can call it) and the ability set of the types it touches (what can be copied, stored, or dropped), then checking whether the function asserts ownership or authority before it acts. The account-model and reentrancy shapes belong to the EVM smart-contract skills; this skill owns the resource-and-ability model of Move.

When to use

  • You are reviewing a Move module's functions, their visibility, and the resources and objects they touch.
  • A public or entry function acts on a passed object or a global resource, or hands out a capability.
  • You want to know whether an arbitrary signer can drive a state change on a resource they do not own.

Scope check

Audit only contracts you own or are authorized to assess, and submit a transaction only against a network in scope (a devnet or testnet, or a mainnet only with authorization), a call that passes moves real value. Adjudicate on the module source. If you can't name the authorization, stop.

The loop

  1. Resolve the visibility and the ability set first. For each function, determine who can call it (public, public entry, public-to-friend or package-internal, or private) and for each type it touches determine the abilities it carries (key, store, copy, drop). Visibility decides whether an arbitrary signer reaches the function, and the abilities decide whether a resource or capability can be duplicated or leaked, so settle both before flagging.

  2. Check access control on entry functions. Look for a public entry function that performs a privileged action (moving funds, changing admin state, minting) with no assertion that the signer is the owner or an authorized admin, so any signer can call it.

  3. Check object and resource ownership. Look for a function that receives an object or borrows a global resource and acts on it without verifying the caller owns it, so a caller passes an object they do not own (or targets an address they do not control) and the function mutates it.

  4. Check capability handling. Look for a capability resource returned to the caller, stored where it can be read or taken, or granted without a guard, so possession of the capability, which should be tightly held, leaks and escalates privilege.

  5. Check abilities, arithmetic, and lifecycle. Look for an ability granted too broadly (a value type that is copyable or droppable when it should be linear, enabling duplication or silent discard), arithmetic that overflows on a runtime or toolchain that does not abort, and an init or upgrade path that leaves state re-initializable or authority mutable after deployment.

  6. Confirm and record. Confirm by constructing a transaction from an unrelated signer that reaches the function and drives the state change on a resource the signer does not own. Kill the lead if the function asserts the signer's address against the owner or an admin capability before acting, if the object parameter is guarded by an ownership assertion or is a shared object with correct access rules, if the capability is a witness consumed at initialization and has no store ability so it cannot be held, if the arithmetic uses checked helpers or a runtime that aborts on overflow, if the framework enforces once-only initialization so the init is not re-callable, or if the function is package-internal or friend-only and not reachable by an arbitrary caller. Record the function, its resolved visibility, and the ownership or authority assertion it skips.

Where resource ownership leaks

  • Visibility decides reachability. A public entry function is callable by any signer; a friend-only or package-internal function is not, so resolve visibility before calling a missing check exploitable.
  • A passed object is not a proof of ownership. Receiving an object or borrowing a global resource does not mean the caller owns it; the function has to assert the signer's authority over it before acting.
  • A capability is only safe while it cannot leak. A capability with a store ability that is returned or stored can be taken; one consumed at init with no store ability cannot be held, which is the safe shape.
  • Abilities are the duplication surface. A value type that is copyable or droppable when it should be linear lets value be duplicated or silently discarded; the ability set is part of the authorization.
  • Init and upgrade are authority seams. Re-initializable state or a mutable post-deployment authority lets a later caller seize control; once-only init and a fixed authority close it.

Worked example (a confirm and a kill)

Confirm. A public entry function withdraw takes a mutable reference to a shared vault object and transfers funds to the signer, with no check that the signer owns the vault. Any signer submits the call against another user's vault and drains it. Confirmed a missing ownership assertion on a public entry function acting on an object the caller does not own, critical, remediation = assert the signer's address (or an owner capability) against the vault owner before the transfer.

Kill. The same function begins with an assertion that the vault's owner field equals the transaction sender, aborting otherwise, so only the owner can withdraw. A call from an unrelated signer aborts before the transfer. Killed, kill_reason = "the function asserts the vault owner against the transaction sender before the state change, so a caller cannot act on a vault they do not own."

Rationalizations to reject

  • "It is an entry function, that is normal." -> Entry means any signer can call it; does it assert the caller's authority before acting? Reachable plus unguarded is the bug.
  • "The caller passes the object in." -> Passing an object is not owning it; the function must verify the signer owns the object or the target address, not trust the parameter.
  • "The capability is internal." -> Does its type have the store ability, and is it ever returned or stored? A storable capability can leak; a witness consumed at init cannot.
  • "Move is safe by construction." -> Its linearity holds only with the right ability set; a copyable or droppable value that should be linear breaks the guarantee.
  • "Init only runs once." -> Does the framework enforce that here, or can the state be re-initialized? A re-initializable init or a mutable authority is an ownership seam.

Executing this in practice

You need the module source, each function's visibility, the ability set of every type it touches, the ownership or authority assertions before each state change, the capability types and whether they can be stored or returned, the arithmetic and whether the runtime aborts on overflow, and the init and upgrade paths. For each function, decide whether an arbitrary signer can drive a state change on a resource they do not own. Reading the visibility and abilities tells you what is reachable and duplicable; reading the assertions tells you what is guarded.

Related

  • auditing-smart-contract-access-control - the EVM sibling for adding or repairing an authorization gate; the same missing-authority shape, on the account model rather than Move's resource-and-ability model.
  • hunting-smart-contract-reentrancy - the EVM sibling for effect ordering; Move's linear resources remove the classic reentrancy analog, so that shape lives there, not here.
  • hunting-defi-economic-and-oracle-flaws - the economic layer that a confirmed ownership bug on a value-bearing Move object often feeds; profitability on a fork is the proof shared with that skill.
  • FINDING-SCHEMA.md - source = any signer reaching the function, sink = a state change acting on an unowned resource, evidence = the resolved visibility and ability set and the missing ownership or authority assertion.

よくある質問

AIスキル「Auditing Move Resource Ownership」では何ができますか?

Moveスマートコントラクト(AptosまたはSui)を監査し、関数の公開範囲とability setを確認したうえで、公開エントリー関数や渡されたオブジェクトまたはリソースが、署名者の権限、所有権、ケイパビリティの保有を検証せずに処理されないか確認します。署名者の権限チェックがない公開エントリー関数、操作前に所有権を検証しないオブジェクトやリソース、漏えいや権限昇格につながる形で返却または保存されるケイパビリティ、複製を可能にする過剰なability(key、store、copy、drop)の付与、abortせずにオーバーフローする算術処理、変更可能な権限を残す初期化またはアップグレード経路を対象とします。モジュール関数、その公開範囲、リソースとabilityのモデルを確認するときに使用してください。EVMアカウントモデルや、別のスキルが扱うリエントランシーの検査は対象外です。関数に到達できる任意の署名者がソース、所有していないリソースを操作する状態変更がシンクであり、所有権または権限の検証が欠けていることが脆弱性です。

TypingMindでAuditing Move Resource Ownershipを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Auditing Move Resource Ownershipはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAuditing Move Resource Ownershipをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-move-resource-ownershipを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Auditing Move Resource Ownershipを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Auditing Move Resource Ownershipで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAuditing Move Resource Ownershipを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Auditing Move Resource Ownership」は無料ですか?

はい。UnboundComputeがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇