/security-agent-skills:hunting-tenant-onboarding-and-discovery-abusefrom security-agent-skills
Hunts multi-tenant SaaS onboarding flows for vulnerabilities: auto-join by email domain, unverified domain claims, guessable invitations, tenant enumeration, and first-admin races.
Ships in security-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
In multi-tenant SaaS the organization is the trust boundary, and onboarding is how someone gets put inside it, so the onboarding flow decides membership as surely as any access-control check. The trouble is that onboarding is built for growth, self-service signup, easy domain-based joining, frictionless invitations, and growth-shaped defaults are exactly where an attacker walks in. A signup that auto-joins a new user to an existing organization because their email domain matches lets anyone who can get an address at that domain, or spoof one, land inside the tenant with whatever a member sees. A domain-claim step that can be satisfied without truly proving ownership lets an attacker claim a domain and, with it, the users under it. An invitation whose token is guessable, reusable, or not bound to the address it was sent to lets an attacker redeem someone else's invite. A tenant-discovery endpoint that answers which organizations exist or which domains are registered hands an attacker the map. And a first-admin or org-creation race, where claiming an as-yet-unclaimed organization makes you its admin, grants authority over everyone who later joins. The hunt walks every way in, and every way to learn a tenant exists, and checks that each proves what it claims. You hunt this by trying to join, claim, or enumerate a tenant you have no right to.
Test tenant onboarding and discovery only against applications and organizations you own or are authorized to assess, on test tenants. Joining, claiming, and enumerating tenants touches real organization membership and data, so use test organizations and never join, claim, or enumerate a tenant that is not yours. If you can't name the authorization, stop.
Establish how membership and claims are meant to be proven first. Name what each onboarding path is supposed to require: what lets a user join an existing organization, what proves domain ownership, how an invitation is bound to its recipient, and how organization creation assigns the first admin. This is the false-positive killer: a flow that joins users only on proven membership, verifies domain ownership before trusting a domain, binds each invitation to one address and one use, and assigns org admin deliberately is behaving correctly. Name the intended proof, then test each path.
Test email-domain auto-join. Sign up with an address at a target organization's domain, a lookalike domain, a subdomain, and a plus-addressed or otherwise crafted variant, and check whether the signup auto-joins you to the existing organization. An organization that admits anyone with a matching email domain trusts an address as membership, so anyone who obtains or spoofs one lands inside.
Test domain verification. Exercise the domain-claim flow and confirm it requires a real ownership proof (a DNS record, a served file, an email to a controlled administrative address) that an outsider cannot satisfy. Try to complete a claim without controlling the domain. A domain-claim step satisfied without proving ownership lets an attacker claim a domain and the users tied to it.
Test invitation binding. Examine invitation tokens and links: whether the token is guessable or sequential, whether it can be redeemed more than once, and whether it is bound to the invited address so only that recipient can accept. Try to redeem an invite from a different account or a guessed token. A guessable, reusable, or unbound invitation lets an attacker join as someone else's invitee.
Test discovery and org-claim races. Probe any endpoint that reveals whether an organization or domain exists (signup checks, SSO-discovery lookups, error-message differences) and confirm it does not enumerate tenants. Separately, check whether claiming or creating an organization for an unclaimed domain or name grants admin over users who later join. An enumeration endpoint hands over the map, and a first-claim-wins org creation grants authority over future members.
Confirm and record. Confirm on test tenants by auto-joining an organization through a matching or spoofed domain, completing a domain claim without ownership, redeeming an invitation bound to someone else, or claiming an unclaimed org to gain admin, without touching real organizations. Kill the lead if joining requires proven membership, domain claims require ownership proof, invitations are bound and single-use, discovery does not enumerate, and org admin is assigned deliberately. Record the onboarding or discovery request, the unauthorized membership, claim, or enumeration, and the unverified domain claim or unbound invitation.
Confirm. A SaaS application auto-joins any new signup to an existing organization when the signup email's domain matches the organization's domain, and its domain-claim flow marks a domain verified after an email is sent to an address at that domain with no ownership proof. On a test tenant, signing up with an address at the target domain lands the attacker inside the organization with member access, and the domain can be claimed without controlling it. Confirmed unauthorized tenant join and domain claim via email-domain trust and unproven verification,
high, remediation = require an explicit invitation or admin approval to join an existing organization rather than trusting the email domain, and verify domain ownership with a control the outsider cannot satisfy (a DNS record or served token) before trusting a domain.Kill. Joining an existing organization requires an explicit, address-bound, single-use invitation or admin approval; domain claims require a DNS or served-file ownership proof; invitation tokens are unguessable, bound to one address, and consumed on first use; discovery endpoints and errors do not reveal whether an organization or domain exists; and organization admin is assigned deliberately, not by first claim. A matching-domain signup does not auto-join, an unproven domain claim fails, and a foreign invite cannot be redeemed. Killed,
kill_reason= "joining needs proven membership, domain claims need ownership proof, invitations are bound and single-use, discovery does not enumerate, and admin is assigned deliberately; no onboarding or discovery request joins, claims, or enumerates a tenant it should not."
You need every way to join or claim a tenant (domain auto-join, invitation, org creation), what each requires as proof, how domain ownership is verified, how invitations are bound, and whether any endpoint reveals that a tenant exists. On test tenants, try to join through a matching or spoofed domain, claim a domain you do not own, redeem a foreign or guessed invite, and enumerate organizations. Reading the onboarding and discovery handlers shows the intended proof; an unauthorized membership, claim, or enumeration shows where the proof is missing.
auditing-multi-tenant-isolation - the runtime tenant boundary; onboarding decides who is inside a tenant,
isolation decides what a member can reach, and the two together bound tenant data.auditing-scim-provisioning-trust - the provisioned way into a tenant; SCIM and self-service onboarding are
two doors into the same organization membership.auditing-jit-provisioning-and-role-mapping - a federated first login is another onboarding path; domain and
claim trust recur there in the assertion.auditing-account-recovery-and-reset-trust - a claim-without-proof in onboarding is the same failure as a
recovery-without-proof; both grant access on an unverified assertion of identity.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub unboundcompute/security-agent-skills --plugin security-agent-skills194 skills in this plugin
/adjudicating-dependency-cve-reachabilityDecide whether a CVE in a dependency actually exposes your application before you scramble to patch: is the vulnerable function on a real call path from your code, do the trigger preconditions hold, and can an attacker control the input that reaches it. Use when an advisory, SCA scan, or dependency bot flags a CVE and you must separate a genuine exposure from unreachable noise, or justify why you are or are not affected. Covers pinning the vulnerable symbol, call-path reachability, precondition checks, and taint from your entry points./adjudicating-taint-pathsDecide whether a whitebox lead is a real bug by tracing taint from an untrusted source to a dangerous sink and confirming every hop against live source. Use after a scanner, a candidate list, or your own reading surfaces a "this looks dangerous" sink (SQL exec, system/exec, file open, deserialize, template render, redirect target, memcpy) and you must decide whether attacker- controlled input actually reaches it - or kill the lead with evidence. Covers forward and reverse taint, witness paths, sanitizer analysis, and the evidence rules that separate a finding from a false positive./auditing-account-abstraction-and-paymaster-trustAudit an ERC-4337 account-abstraction deployment for trust misplaced in the user-operation lifecycle: a smart account whose validation accepts a signature or nonce it should reject, a paymaster that agrees to sponsor gas for operations it should not so an attacker drains its deposit, a bundler or entry-point assumption that lets a user operation be replayed or reordered for gain, and validation logic that reads mutable state or reaches outside its allowed scope. Covers smart-contract wallets, paymasters, bundlers, and the entry point in an account-abstraction stack where a user operation is validated and sponsored before it executes. Use when a user operation is validated, paid for, and executed by separate parties and that trust split is the boundary. The crafted user operation is the source, the drained paymaster or unauthorized execution is the sink, and the over-permissive validation or sponsorship rule is the bug./auditing-account-recovery-and-reset-trustAudit password reset and account recovery flows for the trust that lets an attacker take over an account: a reset token that is guessable, long-lived, reusable, or not bound to the account it was issued for, a recovery path that verifies a weaker factor than login and bypasses multi-factor, a reset link whose host comes from an attacker-controllable header so the token leaks, and a recovery that trusts an unverified email or phone change to redirect the reset. Covers the recovery surface of authentication systems, where resetting a credential or recovering access is the alternate door into an account. Use when an application offers password reset or account recovery and that flow is a path to authentication. The attacker-driven recovery request is the source, the account it takes over is the sink, and the weak token, bypassed factor, or leaked reset link that grants it is the bug./auditing-admission-control-policy-gapsAudit cluster admission control for gaps that let a non-compliant or hostile workload through: a validating webhook that fails open when its backend is unreachable, a policy that scopes by namespace or label and misses the namespaces that matter, a mutating webhook whose changes are trusted downstream, and an ordering or exemption that lets a privileged pod bypass the checks meant to stop it. Covers Kubernetes admission webhooks and policy engines that are supposed to enforce workload security at create and update time. Use when admission policies are the control that keeps privileged, unsigned, or over-permissioned workloads out of the cluster. The workload submitted for admission is the source, the admitted resource is the sink, and the policy gap that let it through is the bug./auditing-ai-agent-permissionsAudit what an AI agent is actually allowed to do versus what its task needs. Covers excessive agency (tools, scopes, and autonomy beyond the job), missing human-in-the-loop gates on irreversible actions, over-broad credentials and their blast radius, sandbox and code-interpreter escape, unfiltered egress, and unbounded resource or spend (denial-of-wallet). Use when granting an agent a tool or scope, reviewing an agent's permission posture, or deciding which actions need approval. The model's restraint is not a control; permissions are.Other plugins' skills for the same job