شعار Unsafe Deserialization Source Check

Unsafe Deserialization Source Check

المجتمع
bazhahei123
Unsafe Deserialization Source Check

Use this skill to identify source points for unsafe deserialization audits, including serialized payloads, encoded blobs, uploaded files, cookies, sessions, cache values, queue messages, stored metadata, polymorphic type fields, object restoration inputs, mobile/IPC/RPC payloads, and framework-specific deserialization source locations in Java, Android, C#/.NET, C++, Python, and PHP applications.

نظرة عامة

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

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

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

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

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

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

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

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

التثبيت

ثبّت مهارة الذكاء الاصطناعي Unsafe Deserialization 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/deserialization-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/deserialization-check .claude/skills/bazhahei123-unsafe-deserialization-source-check
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Unsafe Deserialization Source Check

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

Your goal is to determine where deserialization-relevant data enters the application and how it is carried toward object restoration, type restoration, parser/loader APIs, framework mappers, magic or lifecycle methods, stored blobs, cache/session restore paths, and message-processing code.

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 attacker-controlled or weakly trusted data reaches an unsafe deserialization sink with missing or weak type, integrity, trust-boundary, or trigger controls.

Do not record a source point without identifying:

  • the entry point,
  • the source value or serialized payload,
  • whether the value is client-controlled, external-system-controlled, stored attacker-influenced, server-trusted, mixed, or unclear,
  • the downstream deserialization relevance,
  • the code evidence that connects the source to object restoration, type restoration, or a deserialization-adjacent sink.

Prefer:

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

Scope

Focus on deserialization source points in:

  • routes
  • controllers
  • handlers
  • APIs
  • GraphQL resolvers
  • RPC methods
  • Android exported components, deep links, WebView bridges, Binder/AIDL handlers, content providers, WorkManager jobs, and SDK callbacks that receive serialized or object-restoration-relevant data
  • ASP.NET / .NET controllers, minimal APIs, SignalR hubs, gRPC services, WCF services, Azure Functions, queue consumers, and worker inputs
  • C++ HTTP/RPC/IPC/native service handlers, CGI/FastCGI entry points, plugin callbacks, custom protocol frames, and native message consumers
  • request body parsing
  • uploaded file and metadata processing
  • serializer / deserializer helpers
  • object mapper inputs
  • binary or object decoding code
  • session, cache, cookie, and token restoration logic
  • message queue and background job consumers
  • import / export handlers
  • stored blob or metadata processing
  • framework and library configuration related to object restoration

Audit Principles

Core rules

  • Do not treat a source point as a vulnerability by itself.
  • Do not assume internal, stored, cached, or queued data is trusted if attacker influence is possible.
  • Do not assume encoding, compression, wrapping, or base64 makes serialized data safe.
  • Do not assume JSON, YAML, XML, or binary formats are safe by name; focus on whether object or type restoration can occur.
  • Treat request path, query, body, header, cookie, GraphQL variable, RPC argument, form value, upload, and import row values as client-controlled unless code proves otherwise.
  • Treat queue messages, webhooks, RPC payloads, internal service responses, and integration messages as external-system-controlled until origin and integrity are verified.
  • Treat stored blobs, cache values, saved templates, saved filters, and metadata as stored attacker-influenced when an attacker can write or influence them earlier.
  • Treat class names, type metadata, object tags, and polymorphic type fields as high-priority source points.
  • 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 decoded, verified, normalized, allowlisted, or overwritten elsewhere, mark the source as "Suspected" or "Not enough evidence".
  • Do not classify a value as trusted only because it is signed, encoded, stored, or passed through a helper.
  • Always verify whether the value comes from request input, uploaded content, stored state, cache/session data, queue metadata, framework middleware, or trusted server-side construction.
  • 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 source surfaces, especially request body parsing, cookies, sessions, file imports, cache reloads, message consumers, background jobs, internal RPC, stored metadata, and admin replay/import tooling.
  5. Identify deserialization-relevant source points, such as serialized payloads, encoded blobs, type fields, object tags, uploaded files, cookie/session values, queue bodies, cache entries, stored blobs, and internal service payloads.
  6. For each source point, determine whether it is client-controlled, external-system-controlled, stored attacker-influenced, server-trusted, mixed, or unclear.
  7. Trace each source far enough to document downstream deserialization relevance, such as native object deserialization, unsafe loader use, polymorphic object mapping, session restore, cache restore, queue decoding, or dangerous object lifecycle behavior.
  8. Review the code using the six source dimensions below.
  9. Produce structured source points 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 deserialization or object-restoration logic.

For Android, prioritize mobile boundaries that can introduce serialized extras, deep-link parameters, WebView bridge arguments, IPC parcels, content-provider blobs, WorkManager input data, or backend payloads that later reach object restoration.

For C#/.NET and C++, prioritize server, RPC, IPC, queue, worker, cache/session, binary protocol, and data-access layers that receive object blobs, type metadata, encoded payloads, or stored serialized state.

Do not rely only on transport-layer or format names; focus on where object restoration, type restoration, or dangerous post-deserialization behavior may receive input.

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 source discovery guidance, not as proof that a vulnerability exists.
  • references/common-cases.md defines shared deserialization source concepts, propagation patterns, trust boundaries, false-positive controls, and source output standards.
  • Language-specific reference files define framework source locations, dangerous source shapes, language-specific type metadata, and follow-up checks.
  • Use the high-coverage candidate inventories in each reference as graph-search seed lists for entry points, payload fields, encoded/wrapped values, type metadata, stored second-order sources, and external message sources.
  • 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 property graph, semantic 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 serialized or object-restoration-relevant data:

  • HTTP route annotations, route tables, controller methods, handlers, servlet mappings, minimal APIs, and legacy scripts
  • GraphQL resolvers and mutations
  • RPC, gRPC, WCF, SOAP, Thrift, RSocket, WebSocket, queue, worker, and message handlers
  • Android activities, services, broadcast receivers, content providers, deep links, WebView bridge methods, Binder/AIDL handlers, and WorkManager jobs
  • C++ HTTP/RPC/IPC handlers, binary protocol decoders, native plugin callbacks, CGI/FastCGI handlers, and admin import/replay tools

Candidate group B: serialized payload and wrapper names

Search for values likely to carry serialized or encoded data:

  • payload, data, body, message, blob, bytes, raw, content, object, state, session, token, cookie
  • serialized, serializedData, objectData, pickle, marshal, yaml, xml, phar, binary, proto, parcel
  • base64, b64, gzip, zip, deflate, compressed, encoded, encrypted, signed, mac, signature
  • uploaded file, archive, metadata, template, config, import, backup, snapshot

Candidate group C: type and object restoration names

Search for fields that can influence restored type or object graph:

  • type, @type, _type, $type, class, className, objectType, objectClass, targetType, kind, discriminator
  • module, callable, factory, method, handler, callback, constructor, gadget
  • YAML tags, XML class attributes, PHP serialized class names, Java polymorphic metadata, Python pickle reduction data, .NET $type, C++ factory/type registry keys

Candidate group D: stored and external source surfaces

Search for second-order or weakly trusted origins:

  • cache/Redis/Memcached/session values
  • database fields containing blobs, metadata, filters, templates, preferences, serialized state, or import records
  • queue message bodies, webhook payloads, provider events, internal service responses, RPC frames, replay/admin imports
  • object storage files, uploaded archives, backup files, saved configs, mobile local stores, IPC payloads

Candidate group E: downstream relevance mapping

Keep only candidates that can be connected to deserialization-relevant behavior:

  • native object restoration
  • object mapper or polymorphic type binding
  • unsafe YAML/XML/binary loader
  • cache/session restore helper
  • queue/RPC/protocol decoder
  • file metadata or Phar-like object metadata processing
  • magic method, lifecycle hook, restore callback, or post-restore trusted business logic

Source Dimensions

S1 Untrusted Serialized Input Sources

Direction: Identify request, cookie, header, file, form, GraphQL, RPC, and uploaded content sources that may carry serialized objects, encoded object blobs, structured runtime state, or object-mapper payloads.

S2 Encoded, Wrapped, and Transformed Sources

Direction: Identify base64, compressed, encrypted, signed, JSON-wrapped, XML-wrapped, YAML-wrapped, binary, or custom-framed values that may later be decoded or unwrapped before object restoration.

S3 Stored and Second-Order Sources

Direction: Identify stored blobs, saved metadata, saved filters, saved templates, session data, cache entries, queue payloads, database fields, admin imports, and replay data that may be attacker-influenced before later restoration.

S4 Type and Object Restoration Sources

Direction: Identify class names, type metadata, object tags, polymorphic discriminator fields, object mapper target types, PHP serialized class names, Python object tags, and Java polymorphic type fields that may influence what object or type is restored.

S5 External and Internal Message Sources

Direction: Identify queue bodies, RPC payloads, internal protocol frames, webhook payloads, provider messages, cache reload values, background job arguments, and service-to-service messages that may be decoded into objects or trusted structured state.

S6 Trigger-Relevant Object State Sources

Direction: Identify restored object properties, serialized fields, metadata values, and nested object state that may feed magic methods, lifecycle hooks, restore callbacks, property access, or post-deserialization business logic.


High-Priority Source Targets

Prioritize these source targets first when present:

  • request-body object parsing paths
  • session, cookie, and token restoration logic
  • file import and metadata processing
  • cache and queue consumers
  • RPC or internal protocol handlers
  • saved filters, saved templates, or stored blobs later restored
  • admin tooling that imports or replays object data
  • framework serializer / mapper configuration
  • binary protocol handlers
  • legacy restore helpers and alternate object-loading paths
  • type metadata or polymorphic discriminator fields

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 / External-system-controlled / Stored attacker-influenced / Server-trusted / Mixed / Unclear

Downstream Deserialization Relevance

  • ...

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 origin, decoding, integrity validation, allowlists, or object restoration behavior may exist outside the visible code.
  • Keep reasoning concise but evidence-based.
  • Do not inflate a source point into a vulnerability without sink and missing-control evidence.
  • Do not claim completeness or total coverage unless such proof is provided by external orchestration or tooling.

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

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

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

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

Use this skill to identify source points for unsafe deserialization audits, including serialized payloads, encoded blobs, uploaded files, cookies, sessions, cache values, queue messages, stored metadata, polymorphic type fields, object restoration inputs, mobile/IPC/RPC payloads, and framework-specific deserialization source locations in Java, Android, C#/.NET, C++, Python, and PHP applications.

لماذا تستخدم Unsafe Deserialization Source Check على TypingMind؟

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

كيف أثبّت Unsafe Deserialization Source Check في TypingMind؟

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

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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