Logo: Auditing S3 Object Ownership Trust

Auditing S3 Object Ownership Trust

Organisatioun
UnboundCompute
auditing-s3-object-ownership-trust

Iwwerpréift d’Besëtzverhältnisser bei Object Storage an den Zougrëff op eenzel Objeten op Vertrauen, dat d’Bucket-Policy net ofdeckt: en Objet, deen vun engem anere Kont eropgeluede gëtt, behält de Besëtz an d’ACL vun där Persoun; e Bucket, an deem Object-ACLen trotz enger restriktiver Bucket-Policy nach ëmmer Zougrëff erméiglechen; e Cross-Account-Write, deen en Objet erstellt, deen de Besëtzer vum Bucket net liese kann oder deen eng ëffentlech Berechtegung huet; an eng Policy, déi den Zougrëff iwwer e Prefix aschränkt, wärend eng ACL um Objet dës Aschränkung iwwerschreift. Deckt S3 a kompatibel Späicher of, bei deenen de Besëtz vum Objet, d’Object-ACLen an d’Bucket-Policy zesummespillen, fir ze bestëmmen, wien all Objet liese kann an d’Kontroll doriwwer huet. Benotzt dëse Skill, wann e Bucket Objete vu méi wéi engem Principal kritt an den Zougrëff zentral gereegelt soll ginn. De Principal vum anere Kont oder deen duerch eng ACL Berechtegung kritt ass d’Quell; d’Liesen oder d’Kontroll vum Objet ass den Zilpunkt; an den Zougrëff, deen d’Bucket-Policy net virgesinn huet, ass de Feeler.

Iwwersiicht

EditeurUnboundCompute
Repositorysecurity-agent-skills
Skill-Nummauditing-s3-object-ownership-trust
Stären
27
Forks
8
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    UnboundCompute huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Auditing S3 Object Ownership Trust an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-s3-object-ownership-trust
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Auditing S3 Object Ownership Trust an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Auditing S3 Object Ownership Trust automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Auditing S3 Object Ownership Trust net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Heefeg gestallte Froen

Wat mécht de KI-Skill Auditing S3 Object Ownership Trust?

Iwwerpréift d’Besëtzverhältnisser bei Object Storage an den Zougrëff op eenzel Objeten op Vertrauen, dat d’Bucket-Policy net ofdeckt: en Objet, deen vun engem anere Kont eropgeluede gëtt, behält de Besëtz an d’ACL vun där Persoun; e Bucket, an deem Object-ACLen trotz enger restriktiver Bucket-Policy nach ëmmer Zougrëff erméiglechen; e Cross-Account-Write, deen en Objet erstellt, deen de Besëtzer vum Bucket net liese kann oder deen eng ëffentlech Berechtegung huet; an eng Policy, déi den Zougrëff iwwer e Prefix aschränkt, wärend eng ACL um Objet dës Aschränkung iwwerschreift. Deckt S3 a komp...

Firwat Auditing S3 Object Ownership Trust op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Auditing S3 Object Ownership Trust besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Auditing S3 Object Ownership Trust an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-s3-object-ownership-trust an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Auditing S3 Object Ownership Trust benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Auditing S3 Object Ownership Trust benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Auditing S3 Object Ownership Trust domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Auditing S3 Object Ownership Trust gratis?

Jo. UnboundCompute huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇