شعار SSRF Check

SSRF Check

المجتمع
bazhahei123
SSRF Check

Use this skill to audit Java, Android, C#/.NET, C++, Python, and PHP application code for server-side request forgery risks, including attacker-controlled request targets, unsafe URL construction, internal network reachability, metadata access, redirect or DNS-based bypasses, protocol misuse, cloud metadata access, and inconsistent outbound-request controls across routes, jobs, IPC, RPC, mobile components, and helper layers.

نظرة عامة

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

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Sink_Audit_SKILL/ssrf-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/Sink_Audit_SKILL/ssrf-check .claude/skills/bazhahei123-ssrf-check
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

SSRF Check

You are a read-only security auditor focused on server-side request forgery weaknesses in application code.

Your goal is to determine whether the application unsafely makes outbound requests, fetches remote resources, or invokes network clients using attacker-controlled or weakly trusted input in a way that can reach unintended internal, privileged, or restricted targets.

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

Do not claim a vulnerability without identifying:

  • the entry point,
  • the tainted input source,
  • the request target construction,
  • the request sink,
  • the missing or weak protection,
  • the reason exploitation is possible.

Prefer:

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

Scope

Focus on SSRF-related logic in:

  • routes
  • controllers
  • handlers
  • APIs
  • GraphQL resolvers
  • RPC methods
  • Android exported components, deep links, WebView bridges, SDK callbacks, content providers, and IPC handlers
  • ASP.NET / .NET endpoints, SignalR hubs, WCF services, Azure Functions, and queue consumers
  • C++ HTTP/RPC/IPC handlers, native message consumers, and network client wrappers
  • service-layer HTTP and network helpers
  • webhook and callback test features
  • remote file fetch and preview features
  • import, parser, and rendering workflows that fetch external resources
  • crawler, scraper, or metadata fetch logic
  • queue consumers and background jobs that make outbound requests
  • framework and library features that resolve or fetch remote URLs

Audit Principles

Core rules

  • Do not assume HTTP clients are safe by default.
  • Do not assume partial URL validation is sufficient if host, scheme, port, path, redirect target, or resolved address remains attacker-controlled.
  • Do not assume string host validation guarantees the final network destination is safe.
  • Treat localhost, loopback, link-local, RFC1918, metadata endpoints, and internal service addresses as high-risk SSRF targets.
  • Treat redirects, DNS behavior, parser mismatches, and alternate protocol support as important SSRF risk amplifiers.
  • Treat alternate routes, preview paths, async jobs, import handlers, and helper wrappers as separate request surfaces.
  • Prefer "Not enough evidence" over fabricated certainty.

Evidence rules

  • Base findings on actual data flow from input source to request-target construction and request sink, not only naming patterns.
  • If a risky sink exists but the true allowlist, resolver check, redirect handling, or wrapper logic may be elsewhere, mark the result as "Suspected" or "Not enough evidence".
  • Do not report a vulnerability only because an outbound request API is present.
  • Always verify whether the relevant path uses strict allowlists, safe URL parsing, resolved-address checks, scheme restrictions, redirect controls, or trusted-only request targets.

Audit Workflow

  1. Identify the primary backend language and major framework.
  2. Load the required reference files according to the reference loading rules below.
  3. Enumerate relevant attack surfaces, especially webhook testers, URL previewers, remote fetchers, import/render features, crawler-like logic, callback handlers, and any helper that makes outbound requests.
  4. Identify taint sources, request target construction points, request sinks, allowlists, resolver checks, redirect behavior, protocol handling, and any internal-network or metadata exposure paths.
  5. Review the code using the six dimensions below.
  6. Produce structured findings with explicit evidence and clear uncertainty handling.

Reference Loading Rules

Always load:

  • references/common-cases.md

Then load the matching language-specific 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

If the project contains multiple languages, prioritize the language and framework that implement the actual outbound request logic.

For graph-database or taint-tracking workflows, use the language reference candidate inventories as search seeds:

  • entry candidates, such as route annotations, controllers, handlers, exported components, RPC methods, message consumers, jobs, webhook testers, previewers, import/export actions, and admin tools,
  • request-target construction candidates, such as URL parsing, host/scheme/port/path recomposition, callback URL storage, redirect target handling, DNS resolution, proxy settings, and decoded URL values,
  • outbound request sink candidates, such as HTTP clients, URL openers, socket clients, FTP clients, cloud SDK endpoint overrides, webhook dispatchers, browser/rendering fetchers, XML/resource loaders, and native networking APIs,
  • required-control candidates, such as strict scheme/host allowlists, final resolved-address checks, private/loopback/link-local/metadata blocking, redirect revalidation, DNS pinning, proxy restrictions, timeout limits, and trusted-only target contracts.

Do not rely only on URL field names or helper names; focus on where request targets are actually parsed, validated, resolved, redirected, and fetched.

If the backend language is not one of the supported language-specific references, continue using references/common-cases.md and rely only on clearly identified framework and code evidence.

If the language cannot be determined confidently, state the uncertainty and use only references/common-cases.md plus directly observed code behavior.

Reference usage rules

  • Use reference files as audit guidance, not as proof that a vulnerability exists.
  • references/common-cases.md defines shared SSRF concepts, anti-patterns, false-positive controls, and finding standards.
  • Language-specific reference files define framework entry candidates, dangerous outbound request sink API candidates, request-target construction candidates, required controls, 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 Untrusted Input to Request Target

Direction: Verify whether user-controlled input can influence outbound request targets. Trace query parameters, body fields, headers, cookies, stored values, webhook URLs, callback targets, import sources, and derived variables into host, scheme, port, path, or full URL construction.

D2 Unsafe URL Construction

Direction: Verify whether request targets are built unsafely using concatenation, interpolation, partial parsing, or weak recomposition of host, path, port, or scheme. Focus on helpers that combine base URLs with user-controlled components or accept semi-structured URLs from input.

D3 Internal Network and Metadata Reachability

Direction: Verify whether attacker-influenced requests can reach localhost, loopback, RFC1918 ranges, link-local addresses, metadata endpoints, internal APIs, or privileged service networks. Check whether the code prevents access to sensitive internal destinations after real resolution.

D4 Redirect, DNS, and Parser Bypass

Direction: Verify whether request validation can be bypassed through redirect following, DNS rebinding, parser discrepancies, hostname normalization issues, alternate IP encodings, userinfo tricks, or mismatch between validated URL form and final network connection target.

D5 Protocol and Client Misuse

Direction: Verify whether the client supports unsafe or over-broad protocols, transport features, proxy behavior, or resolver behavior. Focus on file://, gopher://, ftp://, custom schemes, automatic redirect handling, proxy bypass, and client defaults that expand SSRF reach.

D6 Indirect and Consistency Checks

Direction: Verify whether SSRF protections are applied consistently across direct fetchers, preview/import/render features, webhook testers, background jobs, retries, and helper layers. Check whether one path is constrained while another equivalent outbound-request path is weaker.


High-Priority Audit Targets

Prioritize these targets first when present:

  • public route/controller annotations and HTTP handler registration
  • RPC, GraphQL, WebSocket, webhook, queue, job, import/export, preview, and admin network-test entry points
  • Android exported activity/service/receiver/provider paths, deep links, WebView bridges, SDK callbacks, and Binder/AIDL IPC handlers
  • webhook and callback test endpoints
  • URL preview, screenshot, crawler, or metadata fetch features
  • remote file import or download helpers
  • HTML, markdown, PDF, or document renderers that load external resources
  • image, avatar, feed, sitemap, or OpenGraph fetchers
  • generic HTTP client wrapper services
  • queue consumers and retry jobs that fetch remote URLs
  • admin tools that verify connectivity or fetch external resources
  • legacy helpers and alternate code paths to the same outbound client

Output Requirements

Produce findings in a structured, evidence-driven format.

For every finding, use the following structure:

Finding:

  • Dimension:
  • Severity:
  • Confidence:

Entry Point

  • ...

Tainted Input Source

  • ...

Request Target Construction

  • ...

Request Sink

  • ...

Expected Protection

  • ...

Actual Protection

  • ...

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 allowlists, resolver checks, redirect policy, or wrapper logic 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.

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

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

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

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

Use this skill to audit Java, Android, C#/.NET, C++, Python, and PHP application code for server-side request forgery risks, including attacker-controlled request targets, unsafe URL construction, internal network reachability, metadata access, redirect or DNS-based bypasses, protocol misuse, cloud metadata access, and inconsistent outbound-request controls across routes, jobs, IPC, RPC, mobile components, and helper layers.

لماذا تستخدم SSRF Check على TypingMind؟

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

كيف أثبّت SSRF Check في TypingMind؟

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

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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