Logo Auditing S3 Object Ownership Trust

Auditing S3 Object Ownership Trust

Tổ chức
UnboundCompute
auditing-s3-object-ownership-trust

Kiểm tra quyền sở hữu và quyền truy cập từng đối tượng trong dịch vụ lưu trữ để phát hiện những vấn đề mà chính sách bucket không bao quát: đối tượng do tài khoản khác tải lên vẫn thuộc quyền sở hữu và ACL của bên tải lên; ACL của đối tượng vẫn cấp quyền truy cập dù chính sách bucket đã hạn chế; thao tác ghi từ tài khoản khác tạo ra đối tượng mà chủ sở hữu bucket không thể đọc hoặc có quyền truy cập công khai; và chính sách giới hạn theo tiền tố nhưng ACL trên đối tượng lại ghi đè giới hạn đó. Áp dụng cho S3 và các dịch vụ tương thích, nơi quyền sở hữu đối tượng, ACL của đối tượng và chính sách bucket cùng quyết định ai có thể đọc và kiểm soát từng đối tượng. Dùng khi một bucket nhận đối tượng từ nhiều principal và quyền truy cập cần được quản lý tập trung. Principal từ tài khoản khác hoặc được cấp quyền qua ACL là nguồn; việc đọc hoặc kiểm soát đối tượng là đích; còn lỗi là quyền truy cập ngoài dự kiến của chính sách bucket.

Tổng quan

Nhà phát hànhUnboundCompute
Kho mãsecurity-agent-skills
Tên kỹ năngauditing-s3-object-ownership-trust
Sao
27
Bản fork
8
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được UnboundCompute công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Auditing S3 Object Ownership Trust trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-s3-object-ownership-trust
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân 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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Auditing S3 Object Ownership Trust trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Auditing S3 Object Ownership Trust ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Auditing S3 Object Ownership Trust với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Câu hỏi thường gặp

Kỹ năng AI Auditing S3 Object Ownership Trust làm được gì?

Kiểm tra quyền sở hữu và quyền truy cập từng đối tượng trong dịch vụ lưu trữ để phát hiện những vấn đề mà chính sách bucket không bao quát: đối tượng do tài khoản khác tải lên vẫn thuộc quyền sở hữu và ACL của bên tải lên; ACL của đối tượng vẫn cấp quyền truy cập dù chính sách bucket đã hạn chế; thao tác ghi từ tài khoản khác tạo ra đối tượng mà chủ sở hữu bucket không thể đọc hoặc có quyền truy cập công khai; và chính sách giới hạn theo tiền tố nhưng ACL trên đối tượng lại ghi đè giới hạn đó. Áp dụng cho S3 và các dịch vụ tương thích, nơi quyền sở hữu đối tượng, ACL của đối tượng và chính...

Vì sao nên dùng Auditing S3 Object Ownership Trust trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Auditing S3 Object Ownership Trust là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Auditing S3 Object Ownership Trust trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-s3-object-ownership-trust. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Auditing S3 Object Ownership Trust?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Auditing S3 Object Ownership Trust với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Auditing S3 Object Ownership Trust với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Auditing S3 Object Ownership Trust có miễn phí không?

Có. Kỹ năng này được UnboundCompute phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇