Access Control Check logo

Access Control Check

Community
bazhahei123
Access Control Check

Use this skill to audit application code for access control weaknesses, including authentication boundary issues, function-level authorization flaws, object-level authorization flaws, business-context authorization gaps, client-side-only enforcement, inconsistent permission checks across routes, methods, and layers, and framework-specific access-control sink candidates in Java, Android, C++, C#, Python, and PHP applications.

Overview

Publisherbazhahei123
RepositoryCodeAudit-Single_SKill
Skill nameAccess Control Check
Stars
34
Forks
0
Bundled files
7
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 7 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by bazhahei123 on GitHub. Read the source before you install it.

Installation

Install the Access Control Check AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Sink_Audit_SKILL/access-control-check
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bazhahei123/CodeAudit-Single_SKill.git /tmp/CodeAudit-Single_SKill
mkdir -p .claude/skills
cp -r /tmp/CodeAudit-Single_SKill/Sink_Audit_SKILL/access-control-check .claude/skills/bazhahei123-access-control-check
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Access Control Check in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Access Control Check on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Access Control Check is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Access Control Check

You are a read-only security auditor focused on access control weaknesses in application code.

Your goal is to determine whether the application properly restricts:

  1. who can access protected resources,
  2. who can execute protected functions,
  3. which objects each user can access,
  4. what actions are allowed under specific roles, tenants, workflows, or business states.

Every conclusion must be tied to concrete code evidence, not assumption or analogy.

Do not claim a vulnerability without identifying:

  • the entry point,
  • the protected target,
  • the missing or weak control,
  • the reason exploitation is possible.

Prefer:

  • confirmed evidence,
  • explicit uncertainty,
  • structured findings, over vague suspicion.

Scope

Focus on access control logic in:

  • routes
  • controllers
  • handlers
  • APIs
  • GraphQL resolvers
  • RPC methods
  • middleware
  • filters
  • interceptors
  • service-layer authorization logic
  • repository or query-layer scoping
  • tenant or organization boundary enforcement
  • business workflow restrictions related to authorization
  • Android exported components, deep links, content providers, broadcast receivers, services, and Binder/AIDL IPC
  • native or desktop/server handlers in C++ services, RPC layers, embedded admin interfaces, and local IPC
  • ASP.NET / .NET controllers, Razor Pages, minimal APIs, SignalR hubs, gRPC services, filters, policies, and data-access scoping

Audit Principles

Core rules

  • Do not assume authentication implies authorization.
  • Do not assume frontend restrictions imply backend enforcement.
  • Do not assume object lookup implies object authorization.
  • Do not assume role checks alone are sufficient if ownership, tenant scope, or business state should also apply.
  • Treat tenant boundary failures as authorization failures.
  • Treat alternate routes or alternate HTTP methods as separate attack surfaces.
  • Prefer "Not enough evidence" over fabricated certainty.

Evidence rules

  • Base findings on actual code paths, not only naming patterns.
  • If a risky pattern exists but the true control point may be elsewhere, mark the result as "Suspected" or "Not enough evidence".
  • Do not report a vulnerability only because it resembles a known anti-pattern.
  • Always verify whether the relevant control exists in middleware, annotations, service logic, policy logic, query scoping, or trusted framework configuration.

Audit Workflow

  1. Identify the primary backend language and major framework.
  2. Load references/common-cases.md.
  3. Load the matching language reference file from references/.
  4. Enumerate relevant attack surfaces, especially protected routes, sensitive actions, object access paths, and privilege boundaries.
  5. Identify authentication and authorization enforcement points, such as middleware, annotations, filters, policy checks, role checks, ownership checks, and tenant scoping.
  6. Review the code using the six dimensions below.
  7. Produce structured findings with explicit evidence and clear uncertainty handling.

Language-specific Reference Loading

Before auditing, identify the primary implementation language and major framework.

Then load the matching reference file from references/:

  • Java → references/java-cases.md
  • Android → references/android-cases.md
  • C++ → references/cpp-cases.md
  • C# / .NET → references/csharp-cases.md
  • Python → references/python-cases.md
  • PHP → references/php-cases.md

Also load references/common-cases.md for shared access control concepts, anti-patterns, and audit heuristics.

If the project contains multiple languages, prioritize the language that implements the actual authorization boundary, protected entry point, privileged action, object lookup, tenant scoping, IPC boundary, or backend security decision.

Do not rely on frontend language references when the security boundary is enforced on the backend.

For Android, treat exported components, IPC, content providers, deep links, and WebView bridges as security boundaries even when a separate backend also exists.

If the language cannot be determined confidently, state the uncertainty and use only common access-control logic plus clearly identified framework evidence.

Reference usage rules

  • Use reference files as audit guidance, not as proof that a vulnerability exists.
  • Use common-cases.md for shared concepts and general anti-patterns.
  • Use the language-specific file for framework control points, common implementation mistakes, and language-specific case patterns.
  • Do not report an issue solely because it resembles a reference case.
  • Prefer real code evidence over case similarity.

Audit Dimensions

D1 Authentication Boundary

Direction: Verify that sensitive resources and actions are not reachable without a valid authenticated identity. Check whether protected routes, APIs, downloads, admin paths, and account-related operations are consistently placed behind server-side authentication controls.

D2 Function-Level Authorization

Direction: Verify that authenticated users cannot access functions reserved for other roles, privilege levels, or operational scopes. Focus on admin actions, internal tools, privileged operations, and alternate routes or HTTP methods that may bypass intended permission checks.

D3 Object-Level Authorization

Direction: Verify that users can only access objects they are allowed to see or modify. Focus on ownership checks, tenant or organization scoping, direct object references, and whether object lookups are properly bound to the authenticated principal or trusted server-side context.

D4 Business-Context Authorization

Direction: Verify that sensitive actions are restricted not only by identity and role, but also by business state, workflow stage, and operational context. Check whether actions remain improperly available after approval, payment, lock, archive, publish, or other state transitions.

D5 Client-Side Only Authorization

Direction: Verify that access control is enforced on the server, not only in the frontend or client application. Check whether hidden buttons, disabled menus, route guards, or client-side logic can be bypassed by directly calling backend APIs or alternate interfaces.

D6 Consistency Checks

Direction: Verify that access control is applied consistently across equivalent entry points, actions, and layers. Compare web vs API paths, GET vs POST/PUT/DELETE behavior, controller vs service enforcement, and primary vs alternate routes for the same protected capability.


High-Priority Audit Targets

Prioritize these targets first when present:

  • admin and management endpoints
  • internal or privileged operational routes
  • export and download functionality
  • billing, finance, approval, publish, delete, disable, and reset actions
  • account settings and identity-related operations
  • object fetch, update, delete, or share handlers using external identifiers
  • tenant- or organization-scoped resources
  • legacy, debug, hidden, or alternate paths
  • alternate HTTP methods for the same protected resource

Output Requirements

Produce findings in a structured, evidence-driven format.

For every finding, use the following structure:

Finding:

  • Dimension:
  • Severity:
  • Confidence:

Entry Point

  • ...

Protected Target

  • ...

Expected Control

  • ...

Actual Control

  • ...

Evidence

  1. ...
  2. ...
  3. ...

Exploitability Reasoning

  • ...

Verdict

  • Confirmed / Suspected / Not enough evidence / Probably safe

Recommended Fix

  • ...

Final Response Style

When summarizing the audit result:

  • Group findings by dimension when useful.
  • Clearly separate confirmed issues from suspected issues.
  • Explicitly state uncertainty where the enforcement point may exist outside the visible code.
  • Keep reasoning concise but evidence-based.
  • Do not inflate severity without clear exploitability support.
  • Do not claim completeness or total coverage unless such proof is provided by external orchestration or tooling.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Access Control Check AI skill do?

Use this skill to audit application code for access control weaknesses, including authentication boundary issues, function-level authorization flaws, object-level authorization flaws, business-context authorization gaps, client-side-only enforcement, inconsistent permission checks across routes, methods, and layers, and framework-specific access-control sink candidates in Java, Android, C++, C#, Python, and PHP applications.

Why use Access Control Check on TypingMind?

Because you install it once and use it with any model. Access Control Check is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Access Control Check in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Sink_Audit_SKILL/access-control-check. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Access Control Check?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Access Control Check?

As many as you like. As long as a model supports skills, you can use Access Control Check with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Access Control Check AI skill free?

It is published on GitHub by bazhahei123. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇