← ClaudeAtlas

secure-access-controllisted

Use when writing or modifying code that ENFORCES ACCESS — authorization checks (who may do what), privileged/admin operations, or authentication (login, password handling, sessions, MFA). Ensures access is deny-by-default and least-privilege, that every authorization decision and privileged action emits an audit event (control keys `access.authz` / `access.privileged`), and that authentication uses strong password hashing and safe session handling (control key `access.authn`). The neutral control keys map to SOC 2, ISO 27001, PCI-DSS v4, and HIPAA at once via the Throughproof crosswalk (compliance/control-keys.yaml). Applies in any stack; use the project's existing auth/logger — do not invent a new framework.
Throughproof/throughproof · ★ 0 · Data & Documents · score 75
Install: claude install-skill Throughproof/throughproof
# Secure access control (`access.authz` / `access.privileged` / `access.authn`) — authoring-time guidance > Scope: this skill helps you *implement* the technical access-control controls in code. It does > **not** make a system "compliant" — certification is the auditor's call. It makes the code satisfy > the control and produces machine-detectable evidence. > > **Framework-neutral by design.** Code emits stable Throughproof *control keys* (`access.authz`, > `access.privileged`), not framework ids. The crosswalk resolves them to SOC 2 (`CC6.1`–`CC6.3`), > ISO 27001 (`A.8.2` / `A.8.3` / `A.8.5`), PCI-DSS v4 (`Req 7.2` / `7.2.5` / `8.3`), and > HIPAA (`164.312(a)(1)` / `164.308(a)(4)` / `164.312(d)`) at once. ## When this applies Apply this skill whenever the code under edit **enforces or grants access**: - **Authorization decision**: a check that gates an action or resource on a role, permission, ownership, or scope (`require_role`, policy check, `if not user.can(...)`). - **Privileged / admin operation**: impersonation, granting/revoking access, changing another user's data, config or feature-flag overrides, destructive admin jobs. - **Authentication**: login, password set/verify/reset, session/token issuance, MFA. If the code is an ordinary, already-authorized read with no access decision, do **not** add an access event — over-logging is itself a finding. ## 1. Authorization — deny by default, least privilege - **Deny by default.** The absence of an explicit *allow