Auditing Presigned Url Scope Abuseのロゴ

Auditing Presigned Url Scope Abuse

組織
UnboundCompute
auditing-presigned-url-scope-abuse

署名付きオブジェクトストレージURLについて、リクエストの意図を超える範囲へのアクセスを許可していないか監査します。ユーザーがアクセスすべき範囲より広いキー、プレフィックス、バケットを対象に署名されている、有効期限が長すぎる、メソッドやコンテンツタイプが制限されていない、署名者の権限が呼び出し元を上回る、といった問題が対象です。URLがサーバーの外に出た後は署名済みポリシーだけが境界となり、攻撃者がキーを編集したり、URLを再利用したり、別のオブジェクトをアップロードしたりして、意図された範囲を逸脱できるS3および互換ストレージの署名付きGET・PUT URLを扱います。サービスがクライアントによるストレージの直接読み書き用に署名付きURLを発行する場合に使用してください。呼び出し元の影響を受けるキーまたはポリシー入力がソースで、署名処理がシンクです。呼び出し元の権限を超える範囲が署名されることが脆弱性です。

概要

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

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

AIスキル「Auditing Presigned Url Scope Abuse」を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-presigned-url-scope-abuse
  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-presigned-url-scope-abuse .claude/skills/auditing-presigned-url-scope-abuse
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Auditing presigned URL scope abuse: when the signature grants more than the request

A presigned URL turns a server-side permission into a standalone credential: once minted, it grants whatever the signature covers to anyone holding the URL, with no further authorization check at the store. That is convenient and precisely why it leaks. If the service signs a key the caller supplied without confirming the caller owns it, the URL reads or writes another user's object. If the signed policy leaves the key prefix, the HTTP method, the content type, or the expiry looser than the request needed, the holder does more than intended: reads a sibling object, overwrites a path they were only meant to read, or replays the URL long after it should have died. The signer's own identity matters too, because the URL inherits its permissions, not the caller's. You audit these by comparing the signed scope against the caller's actual entitlement.

When to use

  • A service mints presigned object-storage URLs so clients read or write a store directly.
  • The object key, prefix, bucket, or upload parameters in a presign request come from the caller.
  • Presigned URLs are returned to browsers or third parties where they can be inspected, edited, or replayed.

Scope check

Test presigned-URL handling only against storage and applications you own or are authorized to assess, on non-production data. A confirming request reads or writes real objects, so stay inside the authorized bucket and account and never touch another tenant's data outside an owned test fixture. If you can't name the authorization, stop.

The loop

  1. Establish the caller's real entitlement first. Before inspecting any signature, determine what object or prefix this authenticated caller is actually allowed to read or write. This is the false-positive killer: a presigned URL scoped exactly to what the caller owns is correct no matter how powerful presigning looks. Name the entitlement, then compare the signed scope to it.

  2. Trace caller input into the signed key and policy. Follow the key, prefix, bucket, method, and content-type from the request into the signing call. The critical question is whether the service confirms the caller owns the requested key before signing, or signs whatever key it is handed. A signer that trusts a caller-supplied key lets the caller name another user's object and receive a valid URL for it.

  3. Compare the signed scope to the entitlement. Read what the signature actually covers: is it pinned to one exact key, or does it permit a prefix or wildcard that reaches siblings? Is the method constrained to the one operation needed (GET for a read, PUT for an upload), or does it allow both? A URL that grants more keys, more methods, or a different bucket than the caller's entitlement is over-scoped.

  4. Check the expiry and the replay window. A presigned URL is valid for its whole lifetime to anyone holding it. An expiry measured in hours or days when the operation needs seconds turns a one-time action into a durable credential that survives in logs, browser history, and referrer headers. Confirm the expiry matches the operation's real need.

  5. Confirm the signer identity is least-privilege. The URL inherits the signing principal's permissions. If the service signs with a role that can read or write the whole bucket, every presigned URL is a potential whole-bucket credential regardless of the intended object. Determine whether the signer's own permissions are scoped to what presigned URLs should ever grant.

  6. Confirm and record. Confirm by requesting a presign for an object the caller does not own and showing the returned URL succeeds against it, or by editing a signed key or replaying an expired-in-intent URL within scope, without touching data outside an owned fixture. Kill the lead if the service verifies key ownership before signing, pins the signature to the exact key and method needed, sets an expiry matching the operation, and signs with a least-privilege identity. Record the input, the signing call, and the scope beyond entitlement.

Where presigned URL scope abuse leaks

  • A caller-supplied key signed without an ownership check is direct object access. The service becomes a signing oracle for any key the caller names.
  • A prefix or wildcard scope reaches siblings. Signing a prefix instead of the exact key lets the holder enumerate and fetch neighboring objects.
  • An unconstrained method turns a read grant into a write. A signature that permits PUT when the caller needed GET lets the holder overwrite the object.
  • An overlong expiry is a lingering credential. The URL keeps working from logs, history, and shared links long after the operation completed.
  • The URL carries the signer's power, not the caller's. A broadly permissioned signing role makes every URL as strong as that role over the covered scope.

Worked example (a confirm and a kill)

Confirm. An avatar-download endpoint signs a GET URL for a key taken from the request without checking the key belongs to the caller. Requesting a presign for another user's object key returns a valid URL that fetches that object. Confirmed presigned URL scope abuse to cross-user object read, high, remediation = verify the requested key resolves to an object the authenticated caller owns before signing, pin the signature to that exact key and to GET, and sign with a role scoped to the user-content prefix only.

Kill. The service resolves the object from the caller's own identity, never from a caller-supplied key, signs the exact resolved key for the single required method with a two-minute expiry, and signs with a role permitted only on the user-content prefix. A presign request naming another user's key is rejected before signing. Killed, kill_reason = "key derived from the caller's identity, signature pinned to the exact key and method with a short expiry, signer scoped to the user prefix; no URL grants beyond the caller's entitlement."

Rationalizations to reject

  • "The client only sends its own key." → The attacker is not using your client. Verify ownership of the requested key on the server before signing.
  • "The URL expires." → Confirm the expiry matches the operation's seconds-long need; an hours-long window is a durable credential in logs and history.
  • "It is just a read URL." → Check the signed method; a signature that also permits PUT is a write grant, and a prefix scope reaches other objects.
  • "Signing is internal." → The signed URL leaves your boundary the moment it is returned; its scope is the only remaining control.
  • "The signer role is our standard service role." → The URL inherits that role's power; a whole-bucket signer makes every URL a whole-bucket credential.

Executing this in practice

You need each presign endpoint, the caller's real entitlement, which of the key/prefix/bucket/method/ content-type come from the caller, what the signature actually covers, the expiry, and the signer identity's permissions. For each endpoint, compare the signed scope to the entitlement and confirm ownership is checked before signing. Reading the signing call shows the intended scope; requesting a URL for an unowned key shows whether the boundary holds.

Related

  • hunting-broken-object-level-authorization - the same missing ownership check, here expressed through a signed URL rather than a direct object reference.
  • auditing-s3-object-ownership-trust - the bucket-side companion: who owns and can read the objects a presigned URL points at.
  • hunting-non-human-identity-and-secret-reachability - the signer identity is a machine credential; its scope determines how much every presigned URL can grant.
  • adjudicating-taint-paths - use it to confirm a caller-supplied key reaches the signing call without an intervening ownership check.
  • FINDING-SCHEMA.md - source = the caller-influenced key or policy input, sink = the signing call, evidence = the signed scope beyond the caller's entitlement.

よくある質問

AIスキル「Auditing Presigned Url Scope Abuse」では何ができますか?

署名付きオブジェクトストレージURLについて、リクエストの意図を超える範囲へのアクセスを許可していないか監査します。ユーザーがアクセスすべき範囲より広いキー、プレフィックス、バケットを対象に署名されている、有効期限が長すぎる、メソッドやコンテンツタイプが制限されていない、署名者の権限が呼び出し元を上回る、といった問題が対象です。URLがサーバーの外に出た後は署名済みポリシーだけが境界となり、攻撃者がキーを編集したり、URLを再利用したり、別のオブジェクトをアップロードしたりして、意図された範囲を逸脱できるS3および互換ストレージの署名付きGET・PUT URLを扱います。サービスがクライアントによるストレージの直接読み書き用に署名付きURLを発行する場合に使用してください。呼び出し元の影響を受けるキーまたはポリシー入力がソースで、署名処理がシンクです。呼び出し元の権限を超える範囲が署名されることが脆弱性です。

TypingMindでAuditing Presigned Url Scope Abuseを使うメリットは何ですか?

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

TypingMindにAuditing Presigned Url Scope Abuseをインストールするにはどうすればよいですか?

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

Auditing Presigned Url Scope Abuseを使えるAIモデルはどれですか?

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

Auditing Presigned Url Scope Abuseで使えるAIモデルの数に制限はありますか?

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

AIスキル「Auditing Presigned Url Scope Abuse」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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