Logo von Auditing Multi Tenant Isolation

Auditing Multi Tenant Isolation

Organisation
UnboundCompute
auditing-multi-tenant-isolation

Audit whether every data operation is scoped to the caller's tenant, so a request in one tenant cannot read or write another's data. Covers a query or object lookup with the object identifier but no tenant predicate, a tenant taken from client-controlled input at the operation rather than the authenticated session, scoping applied on the list path but dropped on the detail, update, delete, or export path, a cache or storage key with no tenant segment, and a background job, report, or privileged connection that runs across tenants or bypasses the mandatory scope. Frames isolation as a systemic invariant, not a single-object reference bug, which a separate skill covers. Use when reviewing data access in a system that serves multiple tenants. The tenant used at the operation is the source, the tenant-scoped data operation is the sink, and a sink scoped by anything but the authenticated tenant is the bug.

Übersicht

HerausgeberUnboundCompute
Repositorysecurity-agent-skills
Skill-Nameauditing-multi-tenant-isolation
Sterne
27
Forks
8
Mitgelieferte Dateien
Nur Anweisungen
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von UnboundCompute auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Auditing Multi Tenant Isolation in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-multi-tenant-isolation
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

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-multi-tenant-isolation .claude/skills/auditing-multi-tenant-isolation
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Auditing Multi Tenant Isolation in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Auditing Multi Tenant Isolation automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Auditing Multi Tenant Isolation nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Auditing multi-tenant isolation: is every operation scoped to the caller's tenant

When one system holds many tenants' data, isolation is an invariant that has to hold everywhere at once: every query, cache read, storage access, search, and background job is scoped to the tenant the request is authenticated as, and to no other. A single unscoped operation is not one bug but a whole class of cross-tenant access at that point. This is the systemic view, distinct from asking whether one object reference is owner-checked; here the question is whether the boundary is enforced by construction across the codebase. You audit it by finding the tenant value at each data operation and tracing it back: does it come from the authenticated session, or from something the client controls, and is there a mandatory scope that covers this path at all. The decisive false positive is a central, invisible enforcement, a global scope or a row-level policy, so establish that first.

When to use

  • One deployment or database serves multiple tenants, organizations, or workspaces, separated by a scope rather than by isolation.
  • Data operations take an object identifier, a tenant selector, or run in a background job or export.
  • You want to know whether any authenticated tenant can reach another tenant's data.

Scope check

Test cross-tenant access only in systems you own or are authorized to assess, using tenants you control. A confirmed bleed exposes another customer's data, so use only test tenants and coordinate disclosure. If you can't name the authorization, stop.

The loop

  1. Establish the enforcement model first. Determine how tenant scoping is meant to be enforced: a mandatory global scope or base query that injects the tenant on every call, a database row-level policy bound to a per-request tenant, or per-query discipline where each query must add its own predicate. Which model is in force decides what an unscoped-looking query means, so settle it before flagging anything.

  2. Find operations with no tenant predicate. Under a per-query model, look for a query or object lookup that filters by the object identifier but carries no tenant condition, and its equivalent through a data layer that does not inject one. This is the most common bleed: the row is fetched by identifier alone, so any tenant that can name the identifier reads it.

  3. Find the tenant sourced from client input. Look for a tenant taken at the operation from a path segment, query parameter, body field, header, or subdomain and used to scope the query, with no reconciliation against the authenticated session. Scoping to an attacker-chosen tenant is scoping in appearance only. Include the case where the session tenant is resolved but the query still uses the client value or a default.

  4. Find the asymmetric paths. Look for scoping that is present on one path and dropped on a sibling: a list endpoint that filters by tenant while the detail, update, delete, or export endpoint for the same resource does not. Asymmetry is a strong true-positive signal, because it shows the team knew the filter and missed a path.

  5. Find the shared keys and the boundary-crossing jobs. Look for a cache, storage, or search key built without a tenant segment, so one tenant's value serves or poisons another's, and for a background job, scheduled report, export, or privileged or admin connection that queries across all tenants or runs under credentials that bypass the mandatory scope. Async and privileged paths are where scoping is most often forgotten.

  6. Confirm and record. Confirm by acting as tenant A, naming or influencing a resource, key, or job belonging to tenant B, and showing the operation reads or writes B's data. Kill the lead if a mandatory global scope or a row-level policy provably covers this path and is not bypassed here by a raw query or an unscoped or admin connection, if a client tenant selector is reconciled against the session before use, if a cross-tenant job is intentional and carries its own authorization, or if the deployment is single-tenant. Record the operation, the tenant source, and the cross-tenant data reached.

Where tenant isolation leaks

  • One unscoped operation is a class of cross-tenant access. Isolation is an all-points invariant; a single query without the tenant predicate opens every object it can name.
  • A client-supplied tenant is not a scope. Filtering by a tenant the caller chose is theater; the scope has to come from the authenticated session, and any client selector reconciled against it before use.
  • Asymmetry is the tell. A list path that scopes and a detail or export path that does not proves the filter exists and was missed; that gap is the finding.
  • Async and privileged paths forget the tenant. Background jobs, exports, and admin or service connections routinely run across tenants or bypass the mandatory scope; scoping must be re-established from the job's owner and the connection must not bypass the policy.
  • A cache or storage key without a tenant segment bleeds sideways. A key of only an object identifier serves one tenant's value to another and lets one poison the other's.

Worked example (a confirm and a kill)

Confirm. A resource detail endpoint fetches the record by the identifier in the path with no tenant condition, and there is no global scope or row-level policy in force; the list endpoint for the same resource does filter by the session tenant. Acting as tenant A, requesting an identifier owned by tenant B returns B's record. Confirmed cross-tenant read through an unscoped detail path, high rising to critical where identifiers are enumerable, remediation = enforce tenant scoping centrally through a mandatory scope or a row-level policy so every operation, including this one, is bound to the authenticated tenant.

Kill. The detail query carries no explicit tenant predicate, but every request sets a per-connection tenant from the verified session and a row-level policy on the table restricts rows to that tenant; this path uses the standard scoped connection, not an admin one, and no raw-query or unscoped sibling bypasses it, and a client tenant selector elsewhere is reconciled against session membership before use. Acting as tenant A cannot read tenant B's record. Killed, kill_reason = "tenant boundary enforced at the query layer by a row-level policy bound to the verified session, no bypassing connection or raw query on this path, and client selectors reconciled before use."

Rationalizations to reject

  • "The query has no tenant filter, so it bleeds." -> Not if a mandatory global scope or a row-level policy covers it. Establish the enforcement model before flagging an unscoped-looking query.
  • "We scope by the tenant in the URL." -> That tenant is the caller's to choose. Scoping by it is scoping to the attacker unless it is reconciled against the authenticated session.
  • "The list endpoint is scoped, so the resource is safe." -> The detail, update, delete, and export paths are separate. Asymmetry is exactly where the bleed hides.
  • "It is a background job, it runs as the system." -> Then it likely bypasses the scope. Re-establish the tenant from the job's owner and run it under scoped, not bypassing, credentials.
  • "The identifiers are unguessable, so no one can cross." -> Unguessability is defense-in-depth, not the control. Add the tenant predicate; do not rely on the identifier being secret.

Executing this in practice

You need the enforcement model in force, the data operations and whether each carries or inherits a tenant scope, the origin of the tenant value at each operation, the list-versus-detail and read-versus- write symmetry for each resource, the cache and storage key shapes, and the background jobs and privileged connections. For each operation, decide whether it is bound to the authenticated tenant by something the caller cannot change. Reading the model and the operation tells you whether a scope covers it; acting as one tenant against another's resource tells you whether the boundary holds.

Related

  • hunting-broken-object-level-authorization - the single-object manifestation of this systemic property; a tenant-scoping failure is a whole class of it at once, and the two audits complement each other.
  • auditing-declarative-authorization - the mandatory scope or policy this audit checks for is often a declarative rule; both ask whether the central control actually covers every path.
  • adjudicating-taint-paths - the discipline of tracing the tenant value from the operation back to its source and confirming reachability before calling a gap a bug.
  • FINDING-SCHEMA.md - source = the tenant used at the operation, sink = the tenant-scoped data operation, evidence = one tenant reading or writing another's data.

Häufig gestellte Fragen

Was macht der KI-Skill Auditing Multi Tenant Isolation?

Audit whether every data operation is scoped to the caller's tenant, so a request in one tenant cannot read or write another's data. Covers a query or object lookup with the object identifier but no tenant predicate, a tenant taken from client-controlled input at the operation rather than the authenticated session, scoping applied on the list path but dropped on the detail, update, delete, or export path, a cache or storage key with no tenant segment, and a background job, report, or privileged connection that runs across tenants or bypasses the mandatory scope. Frames isolation as a system...

Warum Auditing Multi Tenant Isolation in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Auditing Multi Tenant Isolation besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Auditing Multi Tenant Isolation in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-multi-tenant-isolation ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Auditing Multi Tenant Isolation nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Auditing Multi Tenant Isolation verwenden?

So viele Sie möchten. In TypingMind können Sie Auditing Multi Tenant Isolation mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Auditing Multi Tenant Isolation kostenlos?

Ja. Der Skill wird von UnboundCompute auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇