شعار Access Control Source Check

Access Control Source Check

المجتمع
bazhahei123
Access Control Source Check

Use this skill to identify source points for access control audits, including backend routes, mobile/deep-link entries, identity sources, role and permission inputs, object identifiers, tenant or organization scope inputs, business action and state inputs, client-controlled parameters, alternate entry points, and framework-specific source locations in Java, Android, C#/.NET, C++, Python, and PHP applications.

نظرة عامة

الناشرbazhahei123
المستودعCodeAudit-Single_SKill
اسم المهارةAccess Control Source Check
النجوم
34
التفريعات
0
الملفات المرفقة
7
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 7

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها bazhahei123 على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Access Control Source Check في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Source_Audit_SKILL/access-control-check
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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/Source_Audit_SKILL/access-control-check .claude/skills/bazhahei123-access-control-source-check
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Access Control Source Check في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Access Control Source Check تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Access Control Source Check بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Access Control Source Check

You are a read-only security auditor focused on identifying source points that are relevant to access control review.

Your goal is to determine where authorization-relevant data enters the application and how it is carried into protected resources, protected functions, object lookups, tenant scoping, and business actions.

Every source point must be tied to concrete code evidence, not assumption or naming alone.

Do not claim a vulnerability only because a source point exists. A source point is an audit starting point. A vulnerability requires later proof that a required authentication, authorization, ownership, tenant, or business-state control is missing or weak.

Do not record a source point without identifying:

  • the entry point,
  • the source value,
  • whether the value is client-controlled or server-trusted,
  • the downstream access-control relevance,
  • the code evidence that connects the source to a protected target or decision.

Prefer:

  • confirmed source points,
  • explicit uncertainty,
  • structured source inventories, over vague suspicion.

Scope

Focus on source points in:

  • routes
  • controllers
  • handlers
  • APIs
  • GraphQL resolvers
  • RPC methods
  • Android exported components, deep links, WebView bridges, Binder/AIDL handlers, and mobile API entry points
  • ASP.NET / .NET controllers, Razor Pages, minimal APIs, SignalR hubs, gRPC services, and Azure Functions
  • C++ HTTP handlers, RPC handlers, CGI/FastCGI entry points, IPC handlers, native service boundaries, and plugin callbacks
  • middleware
  • filters
  • interceptors
  • authentication helpers
  • authorization helpers
  • service-layer authorization logic
  • repository or query-layer scoping
  • tenant or organization context resolution
  • business workflow actions related to authorization

Audit Principles

Core rules

  • Do not treat a source point as a vulnerability by itself.
  • Do not assume authentication identity is trustworthy until its origin is verified.
  • Do not assume a user, role, permission, tenant, or object ID is server-trusted only because the variable name looks safe.
  • Treat request path, query, body, header, cookie, GraphQL variable, RPC argument, and form values as client-controlled unless code proves otherwise.
  • Treat server-side session, verified token claims, framework authentication context, and trusted middleware context as stronger identity sources.
  • Treat object identifiers, tenant identifiers, role flags, and action names from the client as high-priority source points.
  • Treat alternate routes and alternate HTTP methods as separate source surfaces.
  • Prefer "Not enough evidence" over fabricated certainty.

Evidence rules

  • Base source classification on actual code paths, not only naming patterns.
  • If a value may be normalized, overwritten, or validated elsewhere, mark the source as "Suspected" or "Not enough evidence".
  • Do not classify a value as trusted only because it is passed through a helper.
  • Always verify whether the value comes from request input, authentication context, middleware, framework configuration, database state, or server-side policy logic.
  • Record downstream use only when visible in the inspected code path.

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, tenant-scoped resources, and privilege boundaries.
  5. Identify authorization-relevant source points, such as identity, role, permission, object ID, tenant scope, organization scope, business action, business state, and alternate entry values.
  6. For each source point, determine whether it is client-controlled, server-trusted, mixed, or unclear.
  7. Trace each source far enough to document downstream access-control relevance, such as object lookup, permission check, query scoping, workflow transition, export, delete, update, or administrative action.
  8. Review the code using the six source dimensions below.
  9. Produce structured source points 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# / .NET -> references/csharp-cases.md
  • C++ / native services -> references/cpp-cases.md
  • Python -> references/python-cases.md
  • PHP -> references/php-cases.md

Also load references/common-cases.md for shared source concepts, classification rules, and audit heuristics.

If the project contains multiple languages, prioritize the language that implements the actual backend authorization logic.

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

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

Reference usage rules

  • Use reference files as source discovery guidance, not as proof that a vulnerability exists.
  • Use references/common-cases.md for shared source concepts and general source classifications.
  • Use the language-specific file for framework source locations, common parameter patterns, and language-specific case templates.
  • Use the high-coverage candidate inventories in each reference as graph-search seed lists for entry points, client-controlled fields, server-trusted identity fields, object identifiers, tenant scopes, role/permission values, and business actions.
  • Do not report an issue solely because it resembles a reference case.
  • Prefer real code evidence over case similarity.

Graph / Taint Source Discovery Workflow

When the audit uses a graph database, code index, or taint-tracking pipeline, seed discovery with candidate groups instead of relying on one exact source name.

Candidate group A: entry points

Search for code locations that receive externally influenced input:

  • HTTP route annotations, route tables, controller methods, view functions, minimal APIs, servlet mappings, and legacy scripts
  • GraphQL queries and mutations
  • RPC, gRPC, SOAP, WCF, Thrift, RSocket, message, and WebSocket handlers
  • Android activities, services, broadcast receivers, content providers, deep links, exported components, and JavaScript bridge methods
  • background jobs, queue consumers, webhook handlers, import processors, and mobile/API variants that can be triggered by users or partners

Candidate group B: authority-bearing values

Search for values that can influence access-control decisions:

  • identity: user, user_id, uid, account_id, member_id, principal, subject, sub, actor
  • role and permission: role, roles, permission, permissions, scope, scopes, is_admin, admin, privilege, entitlement
  • object identity: id, object_id, order_id, invoice_id, file_id, project_id, document_id, resource_id
  • tenant scope: tenant_id, org_id, organization_id, company_id, workspace_id, team_id, department_id, account_id
  • action and state: action, operation, status, state, stage, approve, publish, delete, export, refund, transfer, disable, reset

Candidate group C: source origin classification

For each candidate, classify the origin:

  • client-controlled: path, query, body, form, header, cookie, GraphQL variable, RPC argument, Intent extra, deep-link parameter, IPC payload, uploaded row, webhook payload
  • server-trusted: verified session, framework principal, validated token claim, authenticated request context, membership loaded from database, policy engine result
  • mixed or unclear: helper output, middleware attribute, request-scoped context, decoded token before verification evidence, cached context with hidden population logic

Candidate group D: downstream relevance

Keep only candidates that reach access-control-relevant targets:

  • protected object lookup, update, delete, export, share, approve, refund, publish, reset, transfer, or disable
  • policy, role, permission, ownership, tenant, membership, or workflow-state decision
  • repository or query filter selecting by object, owner, tenant, account, workspace, role, or state

Source Dimensions

S1 Authentication Identity Sources

Direction: Identify where the current user identity enters the backend, such as session objects, verified token claims, framework authentication context, principal objects, request user fields, custom auth helpers, or manually parsed headers. Classify whether the identity is server-trusted, client-controlled, mixed, or unclear.

S2 Function Authorization Sources

Direction: Identify role, permission, admin flag, policy, gate, decorator, annotation, middleware, or custom authorization values that decide whether a user may execute a protected function. Pay special attention to role or permission values supplied by request input.

S3 Object Identifier Sources

Direction: Identify object IDs used to fetch, update, delete, export, share, approve, or otherwise act on protected records. Focus on path variables, query parameters, request bodies, form fields, GraphQL variables, RPC arguments, and batch ID lists.

S4 Tenant and Organization Scope Sources

Direction: Identify tenant, organization, company, workspace, project, department, or account scope values. Distinguish trusted server-side scope from client-supplied scope and document how the value is used in queries or policy checks.

S5 Business Action and State Sources

Direction: Identify business actions and state values that influence authorization-sensitive workflows. Focus on approve, publish, cancel, void, refund, archive, delete, disable, reset, transfer, export, share, lock, unlock, status, state, stage, and lifecycle transitions.

S6 Alternate and Client-Controlled Entry Sources

Direction: Identify alternate routes, alternate HTTP methods, legacy endpoints, debug endpoints, mobile/API variants, frontend-only gated actions, bulk operations, import/export endpoints, and indirect action triggers that expose authorization-relevant source values.


High-Priority Source Targets

Prioritize these source targets first when present:

  • admin and management endpoints
  • internal or privileged operational routes
  • export and download functionality
  • billing, finance, approval, publish, delete, disable, refund, transfer, and reset actions
  • account settings and identity-related operations
  • object fetch, update, delete, share, or batch handlers using external identifiers
  • tenant- or organization-scoped resources
  • role, permission, group, department, tenant, or user identifiers in request input
  • legacy, debug, hidden, mobile, or alternate paths
  • alternate HTTP methods for the same protected resource
  • background jobs or indirect actions triggered by user input

Output Requirements

Produce source points in a structured, evidence-driven format.

For every source point, use the following structure:

Source Point:

  • Dimension:
  • Source Type:
  • Language / Framework:
  • Confidence:

Entry Point

  • ...

Source Location

  • ...

Source Value

  • ...

Trust Boundary

  • Client-controlled / Server-trusted / Mixed / Unclear

Downstream Use

  • ...

Evidence

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

Audit Relevance

  • ...

Verdict

  • Confirmed source / Suspected source / Not enough evidence / Probably irrelevant

Recommended Follow-up

  • ...

Final Response Style

When summarizing the source audit result:

  • Group source points by dimension when useful.
  • Clearly separate confirmed source points from suspected source points.
  • Explicitly state uncertainty where the value origin or downstream use may exist outside the visible code.
  • Keep reasoning concise but evidence-based.
  • Do not inflate a source point into a vulnerability without missing-control evidence.
  • Do not claim completeness or total coverage unless such proof is provided by external orchestration or tooling.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Access Control Source Check؟

Use this skill to identify source points for access control audits, including backend routes, mobile/deep-link entries, identity sources, role and permission inputs, object identifiers, tenant or organization scope inputs, business action and state inputs, client-controlled parameters, alternate entry points, and framework-specific source locations in Java, Android, C#/.NET, C++, Python, and PHP applications.

لماذا تستخدم Access Control Source Check على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Access Control Source Check عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Access Control Source Check في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Source_Audit_SKILL/access-control-check. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Access Control Source Check؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Access Control Source Check؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Access Control Source Check معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Access Control Source Check مجانية؟

نشرها bazhahei123 على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇