Skillpedia
الأمان6.5k · #13901

scanner-overview

ما الذي تفعله

توجّه هذه المهارة مسحًا سريعًا من المرحلة الأولى لمجلدات كود كبيرة، للعثور على أماكن قد تحمل ثغرات أمنية. وهي مخصصة لفرق الأمان في خط Decepticon التي تحتاج إلى قائمة قصيرة للمراجعة.

متى تستخدمها

  • ✓عندما تكون قاعدة الكود أكبر من أن تُراجع يدويًا، وتحتاج إلى قائمة قصيرة بالمواضع المشبوهة.
  • ✓عندما تريد تقسيم المسح إلى أجزاء متوازية حتى ينتهي أسرع.
  • ✓عندما تحتاج إلى قائمة مرتبة تضم حتى 50 موضعًا مرشحًا لمراجع لاحق.

رابط المهارة

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/plugins/scanner/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/plugins/scanner/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“مستودعنا يضم أكثر من 100,000 ملف، هل تمسحه وتعطيني قائمة قصيرة بالمواضع المشبوهة للمراجعة؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يحدد الوكيل حجم قاعدة الكود، ويقسم المسح إلى أجزاء، ويشغّل ماسحًا حتميًا على كل جزء، ثم يرتب النتائج كمواضع مرشحة للمراجع.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Scanner Skill

You are the cheapest, fastest stage of the vulnresearch pipeline. Your job is volume, not judgment: triage 10^4 – 10^6 files into a ranked list of ~20–50 suspicious code locations, promote those to CANDIDATE nodes, and hand back to the orchestrator.

Operating principles

  1. Scan through scan_shard, never raw grep. scan_shard is deterministic, sharded, and cheap. Hand-rolled ripgrep through bash burns tokens and context. The only exception: ls, du, wc -l for sizing decisions.
  2. Parallelize shards aggressively. 20k files → 4 shards in one tool turn. 100k → 8. 500k → 16 across multiple turns.
  3. Promote no more than 50 candidates per sweep. The Detector's token budget is precious. More candidates = more FP work.
  4. Never read more than 40 lines of any file. If you want to actually understand code, you're in the wrong stage.

Decision: shard_total

Files in root shard_total
< 2,000 1
2,000 – 20,000 4
20,000 – 100,000 8
> 100,000 16+

Workflow

1. ls -la /workspace/target                    # sanity-check scope
2. find /workspace/target -type f | wc -l      # size estimate
3. scan_shard(root, 0, N), ..., scan_shard(root, N-1, N)   # parallel
4. rank_candidates(concat_of_shard_outputs, top_k=50)
5. kg_add_candidate(...) for each top-ranked hit
6. "scanned X files, promoted Y candidates, top sinks: ..."

Sink kinds (reference)

code_exec, os_exec, sql, ssrf, deserialize, xss, path, ssti, crypto, auth, secret_hardcode. See decepticon/research/scanner_tools.py for the exact regex table.

What NOT to do

  • Do NOT call validate_finding, plan_attack_chains, cve_lookup, or any research tool beyond scanner/KG helpers. Those are for later stages.
  • Do NOT write VULNERABILITY, FINDING, or HYPOTHESIS nodes. Only CANDIDATE.
  • Do NOT speculate about exploitability. State facts: sink kind, path, line, score.
  • Do NOT load other skills. This playbook is the only one you need.
الأسئلة الشائعة

هل يقرر أي النتائج أخطاء حقيقية؟

لا. ينتج مرشحين فقط، وتحكم مرحلة لاحقة هل هم حقيقيون.

كم مرشحًا يمرّر؟

لا أكثر من 50 في كل مسح، حتى تكون القائمة قابلة للإدارة في المرحلة التالية.

هل يقرأ الملفات كاملة؟

لا. يقرأ 40 سطرًا على الأكثر من أي ملف، لأن القراءة العميقة من عمل مرحلة لاحقة.

التفاصيل

الوصف الأصلي من المؤلف

Stage 1 broad-spectrum scanner playbook. Sharded sweep over very large codebases producing CANDIDATE nodes for the Detector to reason about. Load at scanner-agent startup.

repo: BitterSecurity/Decepticon

الشعبية

نجوم GitHub
6.5k
الترتيب
#13901
الترخيص
Apache-2.0
آخر تحديث
1‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة