access-control

A security review for access-control flaws, where a logged-in user can reach data or actions they are not allowed to use.

In plain words
What is it for?
It examines object identifiers, filenames, roles, permission checks, tenant boundaries, and multi-step flows for authorization gaps.
Why use it?
It helps catch missing or inconsistent permission checks, such as one user viewing another user's records or a regular user reaching an administrator function.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/emre-guler/websec/access-control
Any agent
npx skills add emre-guler/websec --skill access-control
Clone the repo
git clone --depth 1 https://github.com/emre-guler/websec

Made for: Claude Code, Codex.

Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,998 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00066 $0.04998
Opus 5 $0.00033 $0.02499
Sonnet 5 $0.00013 $0.01000
Haiku 4.5 $0.00007 $0.00500

Measured 2d ago against content hash 725af174f9c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

access-control scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/access-control/SKILL.md · 156 lines

How it starts

The opening of the file, as written. The whole thing — 156 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Access Control Detection

Overview

Access control decides whether an already-identified caller may perform an action or reach a resource. It fails when that decision is skipped, made from data the caller controls, enforced in one layer but not another, or applied to some steps of a flow and not others. The attacker is usually an authenticated low-privilege user (sometimes anonymous) who changes an identifier, a role value, a header, an HTTP method, or the order of steps to reach another user's data (horizontal), a privileged function (vertical), or a state they should not be in (context-dependent). This skill finds such gaps by locating every site where authorization should be enforced, verifying each one in parallel, and merging the results into <output_dir>/access-control-results.md.

What it is NOT

  • Missing authentication (/websec:authentication): the endpoint requires no login at all. Test: if adding a valid session changes nothing about who may reach it, it is an authentication problem. Here the caller is authenticated (or the resource is reachable) and the authorization decision is missing or wrong. How the identity was obtained is likewise not this class — a delegated grant is /websec:oauth, a signature or a claim minted from a user-writable field is /websec:jwt; here the identity is taken as given and only what it may reach is in question.
  • Information disclosure (/websec:information-disclosure): the application volunteers data (verbose errors, backups, debug pages). Here the attacker pulls data through a missing check. A ?user= parameter that returns another user's record is access control when an ownership check is the missing control.
  • Business logic (/websec:business-logic): tampering with price, quantity, or discount is logic abuse unless it crosses an ownership or privilege boundary. Changing role=admin or owner_id in a bulk-bound body is mass assignment — classify it here only if the changed field grants access; otherwise note it under "Also observed" for /websec:api.
  • Injection via an id field (/websec:sql-injection, /websec:nosql-injection): ?id=1 OR 1=1, or an id that arrives as an operator object and changes the filter document's shape, is injection, not authorization.
  • Not a finding: an authorization decision that architecture.md records as made outside this tree — a gateway, reverse proxy, service mesh, or shared library that maps callers to scopes before the request arrives. Read the "Enforced where" column and the trust-boundary section before recording an absence; a service whose handlers carry no guard because an external layer decides is not a page of findings. Judge that configuration where it is readable; where it is not, the label is NEEDS MANUAL REVIEW naming the file a human must open. What is judged here: whether this service would believe a caller who reached it directly, bypassing that layer, and whether it trusts a role, tenant, or identity value the layer supplies without any check of its own.
  • Not a finding: a resource that is intentionally public (posts, product pages); an unguessable reference that the server also checks ownership on; a role check enforced server-side even though the UI merely hides the link; scoping done by the framework in the guaranteed form (current_user.orders.find(id)).

Read the full file on GitHub · 156 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 156 lines · 66 tokens per session scan A 725af174f9c7

Subscribe to this mod's changes

access-control is a skill published in the GitHub repository emre-guler/websec (2 stars, last pushed 5d ago), licensed MIT. It adds 66 tokens to every session and 4,998 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

vantage

Autonomous, artifact-driven SAST (Static Application Security Testing) for web AND mobile app repositories, plus optional code-level remediation. Use whenever the user asks to security-review, pentest, audit, or scan a codebase for vulnerabilities — web (SQLi, XSS, IDOR/BOLA, auth bypass, SSRF, XXE, hardcoded secrets…

tinoimammp/vantage-security-agent · 230 tokens

prowler-ui

Prowler UI-specific patterns. For generic patterns, see: typescript, react-19, nextjs-16, tailwind-4. Trigger: When working inside ui/ on Prowler-specific conventions (shadcn, folder placement, actions/adapters, shared types/hooks/lib).

prowler-cloud/prowler · 64 tokens

prowler-test-api

Testing patterns for Prowler API: JSON:API, Celery tasks, RLS isolation, RBAC. Trigger: When writing tests for api/ (JSON:API requests/assertions, cross-tenant isolation, RBAC, Celery tasks, viewsets/serializers).

prowler-cloud/prowler · 62 tokens

prowler-pr

Creates Pull Requests for Prowler following the project template and conventions. Trigger: When working on pull request requirements or creation (PR template sections, PR title Conventional Commits check, changelog gate/no-changelog label), or when inspecting PR-related GitHub workflows like conventional-commit.yml…

prowler-cloud/prowler · 84 tokens

tailwind-4

Tailwind CSS 4 patterns and best practices. Trigger: When styling with Tailwind (className, variants, cn()), especially when dynamic styling or CSS variables are involved (no var() in className).

prowler-cloud/prowler · 47 tokens

prowler-docs

Prowler documentation style guide and writing standards. Trigger: When writing documentation for Prowler features, tutorials, or guides.

prowler-cloud/prowler · 31 tokens