security-review
ما الذي تفعله
توجّه هذه المهارة الوكيل خلال فحص أمني لشيفرة أو وحدة أو ميزة. تبحث عن نقاط الضعف التي يمكن للمهاجم استغلالها فعلاً، وتشرح كيفية إصلاح كل منها. وهي موجهة لمن يريد التحقق من أمان تطبيقه.
متى تستخدمها
- ✓عندما تطلب مراجعة أمنية لشيفرة جديدة قبل إطلاقها.
- ✓عندما تشتبه في أن ميزة قد تسمح للمستخدمين برؤية بيانات أو تغييرها دون إذن.
- ✓عندما تريد فحص المشروع بحثاً عن كلمات مرور أو مفاتيح مسربة أو أوامر غير آمنة.
رابط المهارة
https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/security-review/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“هل يمكنك فحص ميزة تسجيل الدخول لدي بحثاً عن ثغرات أمنية، وأخبرني كيف أصلح أي شيء خطير؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يحدد الوكيل المواضع التي تدخل فيها المدخلات الخارجية والأماكن التي قد تسبب فيها ضرراً. ثم يتتبع تلك البيانات خطوة بخطوة، ويبلغ فقط عن المشكلات التي يستطيع الإشارة إليها، مع الملف والإصلاح.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Security Review
Produce findings a reviewer can verify, not a vibes pass. Every finding names the file, the reachable path that makes it real, and the fix.
Scope the review first
- What is under review: a diff, a module, a plugin bundle, a network surface. Say the boundary out loud before reading.
- Trust boundaries: where untrusted input enters (HTTP handlers, MCP tool args, file parsers, CLI flags, env vars, rendered content) and where authority is exercised (fs writes, network egress, process spawn, credential reads, signing).
- Prerequisites: a checked-out tree and the project's own test runner. Ask for credentials only if a live path genuinely needs them; never read secrets from the environment or keychain yourself.
Procedure
- Map entry points and sinks.
rgfor the handlers, deserializers, and exec/fs/net calls in scope. Follow data from entry to sink before judging it. - Authn/authz. Every mutating or sensitive handler checks identity and object-level authorization. Look for checks that exist on one path but not its sibling, and for checks done on the client only.
- Injection. Command lines, SQL, template eval, shell expansion, path joins under user influence, and markup that will render later — including generated HTML/markdown that carries repo content into a browser surface.
- Secrets.
rgfor token/key/secret patterns andgit log -pthe diff for credentials. Also check what gets logged or embedded in receipts, exports, or error messages. - Dependencies. Run the project's audit gate if it exists
(
cargo audit,npm audit,osv-scanner) — report versions and CVEs, not "deps look old". - Denial and abuse paths. Unbounded reads/allocations, missing timeouts on network calls, resource leaks in error paths, retry storms.
- Verify a finding before reporting it. Trace the real call path or write a minimal proof. A finding that "looks suspicious" but has no reachable path is a note, not a finding.
Findings format
For each: severity (exploitability × impact), file:line, the reachable path, a one-paragraph explanation, and the fix. Order by severity. Then a short "checked and clean" list naming what was audited and cleared — the scope statement means something only if the clear list is honest.
Recovery and limits
- If you cannot prove reachability, downgrade the claim and say what evidence is missing.
- Do not claim a formal audit, certification, or absence of vulnerabilities. This review finds defects; it does not prove none exist.
- Never fix-and-stay-quiet on a security finding in someone else's in-flight code — report it first.
Completion criteria
- Every entry point in scope was traced to its sinks.
- Findings carry file:line + reachability + fix; the clear list names what was actually checked.
- Severity ordering is defensible by exploitability, not by how loudly the code smells.
الأسئلة الشائعة
هل هذه مراجعة شيفرة عادية؟
لا. تركز المهارة على نقاط ضعف قابلة للاستغلال، لا على الجودة العامة أو الأسلوب أو نظافة الشيفرة.
هل سيقرأ الوكيل كلمات مروري أو مفاتيحي؟
تنص المهارة على أن الوكيل لا يقرأ الأسرار من البيئة أو سلسلة المفاتيح بنفسه، ولا يطلب بيانات الاعتماد إلا عندما يحتاجها اختبار حي فعلاً.
هل تأتي كل نتيجة مع إصلاح؟
نعم. تسمي كل نتيجة الملف، والمسار الذي يجعلها خطراً حقيقياً، والإصلاح المقترح.
التفاصيل
الوصف الأصلي من المؤلف
Review a change, module, or surface for exploitable defects — trust boundaries, authn/authz, injection, secret exposure, filesystem and network reach, dependency risk. Use when the user asks for a security review, audit, or vulnerability check of concrete code. Not for general code review, lint, or compliance paperwork.
repo: codewhale-hq/Codewhale
الشعبية
- نجوم GitHub
- 41k
- الترتيب
- #6552
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
best-of-n
41kيساعد وكيلك على إنتاج عدة إجابات مستقلة لمشكلة صعبة، وتقييمها بمعيار واحد، وتطبيق الإجابة الوحيدة التي تجتاز الفحوصات.
dataviz
41kيساعد وكيلك على اختيار مخطط أو لوحة معلومات مناسبة لبياناتك، بتسميات واضحة وملاحظات عن المصدر، مع فحص المحاور والقيم المفقودة.
debug
41kيساعد وكيلك على معرفة السبب الحقيقي للخطأ عبر إعادة إنتاجه وتضييقه، ولا يصلحه إلا بعد موافقتك، بدلاً من التخمين.
delegate
41kيعلّم وكيلك تقسيم المهمة الكبيرة إلى مساعدين متوازيين مركزين، مع إبقاء التخطيط والتكامل والفحص النهائي في يده.
مهارات مشابهة
reverse-engineer-anything
422kيساعد وكيلك على فحص التطبيقات والحزم المنشورة من الداخل ليشرح الميزات ويقارن الإصدارات ويرشد إلى إعادة البناء، باستخدام أداة REA.
1password
394kيساعد وكيلك على إعداد واجهة سطر أوامر 1Password وتسجيل الدخول، وقراءة الأسرار أو حقنها دون طباعة قيمها في المحادثة.
healthcheck
394kيساعد وكيلك على تدقيق جهاز OpenClaw أو خادمه أمنيًا، مثل SSH والجدار الناري والتحديثات، ويقترح إصلاحات آمنة قابلة للتراجع.