Auditing S3 Object Ownership Trustのロゴ

Auditing S3 Object Ownership Trust

組織
UnboundCompute
auditing-s3-object-ownership-trust

オブジェクトストレージの所有権とオブジェクト単位のアクセスについて、バケットポリシーが対象としない信頼の問題を監査します。別アカウントからアップロードされたオブジェクトがアップロード元の所有権とACLを保持する、制限的なバケットポリシーがあってもオブジェクトACLでアクセスが許可される、別アカウントからの書き込みでバケット所有者が読めないオブジェクトや公開アクセス権付きのオブジェクトが作成される、プレフィックスで範囲を限定するポリシーをオブジェクトのACLが上書きする、といった問題が対象です。オブジェクトの所有権、オブジェクトACL、バケットポリシーが相互に作用し、各オブジェクトを誰が読み取り、制御できるかを決定するS3および互換ストレージを扱います。バケットが複数のプリンシパルからオブジェクトを受け入れ、アクセスを一元的に管理する必要がある場合に使用してください。別アカウントまたはACLで許可されたプリンシパルがソースで、オブジェクトの読み取りまたは制御がシンクです。バケットポリシーが意図していないアクセスが脆弱性です。

概要

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

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

AIスキル「Auditing S3 Object Ownership Trust」を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-s3-object-ownership-trust
  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-s3-object-ownership-trust .claude/skills/auditing-s3-object-ownership-trust
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Auditing S3 object-ownership trust: when the object, not the bucket, decides access

Object stores let access be decided in more than one place, and that is where ownership trust breaks. A bucket policy is the central control most teams reason about, but each object also has an owner and, unless disabled, its own ACL, and a cross-account upload can land an object owned by the uploader rather than the bucket owner. The result is objects the bucket owner cannot fully control, ACLs that grant access the bucket policy meant to deny, and public grants riding on individual objects under a bucket that looks private. When a bucket receives objects from more than one principal, central governance is an assumption, not a fact. You audit these by checking who owns each object, whether object ACLs are still in force, and whether any object grants access the bucket policy did not intend.

When to use

  • A bucket receives objects from more than one principal, including cross-account or third-party writers.
  • Access is meant to be governed centrally by the bucket policy, but object ACLs may still be enabled.
  • Cross-account writes may land objects the bucket owner does not own or cannot fully read or control.

Scope check

Audit object ownership only in buckets and accounts you own or are authorized to assess, on non-production data. Confirming access reads or controls real objects, so stay inside the authorized bucket and treat any object contents as sensitive within scope. If you can't name the authorization, stop.

The loop

  1. Establish the intended access model first. Name who should read and control the objects in this bucket and how it is meant to be enforced: central bucket policy, single owner. This is the false-positive killer: a bucket with ownership enforced to the bucket owner and object ACLs disabled, governed only by the bucket policy, is correct. Name the intended model, then check whether ownership and ACLs match it.

  2. Determine object ownership across writers. For objects written by more than one principal, confirm who owns each. A cross-account upload can retain the uploader's ownership, leaving objects the bucket owner cannot fully control. Check whether bucket-owner-enforced ownership is set so every object is owned centrally, or whether uploader ownership persists.

  3. Check whether object ACLs are in force. If object ACLs are enabled, each object can grant access independently of the bucket policy. Determine whether ACLs are disabled (so the bucket policy is the sole control) or still active, and if active, whether any object ACL grants read or control to a principal, or to the public, that the bucket policy would deny.

  4. Reconcile the bucket policy with the per-object grants. A restrictive bucket policy does not override an object ACL that grants access; the two combine. Compare the effective access on individual objects to what the bucket policy intends, looking for objects reachable by a principal the policy excludes because an ACL admits them.

  5. Check cross-account write consequences. A cross-account writer can land an object the bucket owner cannot read, or attach a public-read grant, or create objects under a prefix the owner's policy assumed it controlled. Confirm that cross-account writes are constrained to grant ownership to the bucket owner and cannot carry an ACL that widens access.

  6. Confirm and record. Confirm by reading or controlling an object as a principal the bucket policy excludes but an ACL or ownership admits, or by showing a cross-account write lands an owner-unreadable or publicly-granted object, within scope and without exfiltrating data. Kill the lead if ownership is bucket-owner-enforced, object ACLs are disabled so the bucket policy is the sole control, and cross-account writes cannot widen access. Record the admitted principal, the object read or control sink, and the access the bucket policy did not intend.

Where object-ownership trust leaks

  • Object ownership can escape the bucket owner. A cross-account upload may keep uploader ownership, leaving objects the bucket owner cannot fully control.
  • Object ACLs override a restrictive bucket policy. If ACLs are enabled, an object grant admits access the bucket policy meant to deny; the two combine, not override.
  • A public object hides under a private bucket. An ACL public grant on one object exposes it even when the bucket looks locked down centrally.
  • Cross-account writes can be unreadable to the owner. An object the bucket owner does not own may be outside their read and lifecycle control.
  • Central governance is an assumption with multiple writers. The moment more than one principal writes, who owns and who can grant per object must be verified, not assumed.

Worked example (a confirm and a kill)

Confirm. A shared ingest bucket receives uploads from a partner account, object ACLs are enabled, and the partner's objects retain partner ownership with an ACL that grants read to a broad group. An object the bucket policy meant to keep internal is readable by a principal the policy excludes, via the object ACL. Confirmed object-ACL access beyond the bucket policy, high, remediation = enable bucket-owner-enforced ownership to disable object ACLs and centralize control, and require cross-account writes to grant ownership to the bucket owner without an access-widening ACL.

Kill. The bucket enforces bucket-owner ownership on every object, object ACLs are disabled so the bucket policy is the sole access control, and cross-account writers must grant full ownership to the bucket owner on upload. No object grants access the bucket policy excludes, and every object is owned and controlled centrally. Killed, kill_reason = "ownership bucket-owner-enforced with object ACLs disabled and cross-account writes ceding ownership; the bucket policy is the sole control and no object widens access."

Rationalizations to reject

  • "The bucket policy is restrictive." → An enabled object ACL combines with the policy and can grant access it denies; disable ACLs or reconcile every object.
  • "It is our bucket." → A cross-account upload can land an object you do not own and cannot fully control; confirm ownership per object.
  • "Nothing is public." → Check per-object ACLs; a public grant on a single object hides under a private-looking bucket.
  • "Only our partner writes to it." → A partner is a separate principal; their objects' ownership and ACLs decide access unless you enforce bucket-owner ownership.
  • "We set the policy centrally." → Central policy is not central control while object ACLs are enabled and cross-account ownership persists; verify both.

Executing this in practice

You need the intended access model, the object ownership across writers, whether object ACLs are enabled, the per-object grants reconciled against the bucket policy, and the cross-account write constraints. For the bucket, confirm ownership is enforced and ACLs disabled, or reconcile every object's effective access. Reading the ownership and ACL settings shows the intended control; reading an object as a policy-excluded principal shows whether it holds.

Related

  • auditing-presigned-url-scope-abuse - the signed-access companion; presigned URLs and object ACLs are two ways access escapes the bucket policy on individual objects.
  • auditing-infrastructure-as-code-exposures - the declared-configuration side; ownership enforcement and ACL disabling are settings that skill checks in the resource definitions.
  • auditing-multi-tenant-isolation - a shared bucket across tenants is an isolation boundary; object ownership is how that boundary is enforced or broken per object.
  • mapping-attack-surface - use it to find buckets that receive cross-account or third-party writes before auditing any one bucket's ownership.
  • FINDING-SCHEMA.md - source = the cross-account or ACL-granted principal, sink = the object read or control, evidence = the access the bucket policy did not intend.

よくある質問

AIスキル「Auditing S3 Object Ownership Trust」では何ができますか?

オブジェクトストレージの所有権とオブジェクト単位のアクセスについて、バケットポリシーが対象としない信頼の問題を監査します。別アカウントからアップロードされたオブジェクトがアップロード元の所有権とACLを保持する、制限的なバケットポリシーがあってもオブジェクトACLでアクセスが許可される、別アカウントからの書き込みでバケット所有者が読めないオブジェクトや公開アクセス権付きのオブジェクトが作成される、プレフィックスで範囲を限定するポリシーをオブジェクトのACLが上書きする、といった問題が対象です。オブジェクトの所有権、オブジェクトACL、バケットポリシーが相互に作用し、各オブジェクトを誰が読み取り、制御できるかを決定するS3および互換ストレージを扱います。バケットが複数のプリンシパルからオブジェクトを受け入れ、アクセスを一元的に管理する必要がある場合に使用してください。別アカウントまたはACLで許可されたプリンシパルがソースで、オブジェクトの読み取りまたは制御がシンクです。バケットポリシーが意図していないアクセスが脆弱性です。

TypingMindでAuditing S3 Object Ownership Trustを使うメリットは何ですか?

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

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

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

Auditing S3 Object Ownership Trustを使えるAIモデルはどれですか?

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

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

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

AIスキル「Auditing S3 Object Ownership Trust」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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