Logo: Access Control Check

Access Control Check

Communautéit
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.

Iwwersiicht

Editeurbazhahei123
RepositoryCodeAudit-Single_SKill
Skill-NummAccess Control Check
Stären
34
Forks
0
Matgeliwwert Dateien
7
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 7 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    bazhahei123 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Access Control Check an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Sink_Audit_SKILL/access-control-check
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Access Control Check an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Access Control Check automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Access Control Check net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Access Control Check op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Access Control Check besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Access Control Check an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Sink_Audit_SKILL/access-control-check an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Access Control Check benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Access Control Check benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Access Control Check domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Access Control Check gratis?

bazhahei123 huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇