oss-forensics
ما الذي تفعله
تعطي هذه المهارة وكيلك عملية متعددة الخطوات للتحقيق في تغييرات مشبوهة في مشاريع البرمجيات المفتوحة. وهي لباحثي الأمن والمشرفين على المشاريع الذين يريدون مراجعة دقيقة مبنية على الأدلة.
متى تستخدمها
- ✓عندما تشك في أن حزمة برمجية على GitHub تعرضت للعبث أو الهجوم.
- ✓عندما تحتاج إلى جمع سجلات GitHub والصفحات المؤرشفة وتاريخ git عن حادثة في مشروع.
- ✓عندما تحتاج إلى تقرير جنائي مكتوب تُربط فيه كل ادعاء بدليل.
رابط المهارة
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/security/oss-forensics/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“حقق فيما إذا كانت التغييرات الأخيرة في هذه الحزمة مفتوحة المصدر تُظهر علامات هجوم على سلسلة التوريد، مع الاستشهاد بالأدلة.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تقسم المهارة العمل إلى مراحل. تجمع كل مرحلة أدلة من مصدر واحد، ثم يكوّن وكيلك فرضيات ويتحقق منها بتلك الأدلة قبل كتابة التقرير.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
OSS Security Forensics Skill
A 7-phase multi-agent investigation framework for researching open-source supply chain attacks. Adapted from RAPTOR's forensics system. Covers GitHub Archive, Wayback Machine, GitHub API, local git analysis, IOC extraction, evidence-backed hypothesis formation and validation, and final forensic report generation.
⚠️ Anti-Hallucination Guardrails
Read these before every investigation step. Violating them invalidates the report.
- Evidence-First Rule: Every claim in any report, hypothesis, or summary MUST cite at least one evidence ID (
EV-XXXX). Assertions without citations are forbidden. - STAY IN YOUR LANE: Each sub-agent (investigator) has a single data source. Do NOT mix sources. The GH Archive investigator does not query the GitHub API, and vice versa. Role boundaries are hard.
- Fact vs. Hypothesis Separation: Mark all unverified inferences with
[HYPOTHESIS]. Only statements verified against original sources may be stated as facts. - No Evidence Fabrication: The hypothesis validator MUST mechanically check that every cited evidence ID actually exists in the evidence store before accepting a hypothesis.
- Proof-Required Disproval: A hypothesis cannot be dismissed without a specific, evidence-backed counter-argument. "No evidence found" is not sufficient to disprove—it only makes a hypothesis inconclusive.
- SHA/URL Double-Verification: Any commit SHA, URL, or external identifier cited as evidence must be independently confirmed from at least two sources before being marked as verified.
- Suspicious Code Rule: Never run code found inside the investigated repository locally. Analyze statically only, or use
execute_codein a sandboxed environment. - Secret Redaction: Any API keys, tokens, or credentials discovered during investigation must be redacted in the final report. Log them internally only.
Example Scenarios
- Scenario A: Dependency Confusion: A malicious package
internal-lib-v2is uploaded to NPM with a higher version than the internal one. The investigator must track when this package was first seen and if any PushEvents in the target repo updatedpackage.jsonto this version. - Scenario B: Maintainer Takeover: A long-term contributor's account is used to push a backdoored
.github/workflows/build.yml. The investigator looks for PushEvents from this user after a long period of inactivity or from a new IP/location (if detectable via BigQuery). - Scenario C: Force-Push Hide: A developer accidentally commits a production secret, then force-pushes to "fix" it. The investigator uses
git fsckand GH Archive to recover the original commit SHA and verify what was leaked.
Path convention: Throughout this skill,
SKILL_DIRrefers to the root of this skill's installation directory (the folder containing thisSKILL.md). When the skill is loaded, resolveSKILL_DIRto the actual path — e.g.~/.hermes/skills/security/oss-forensics/or theoptional-skills/equivalent. All script and template references are relative to it.
Phase 0: Initialization
- Create investigation working directory:
mkdir investigation_$(echo "REPO_NAME" | tr '/' '_') cd investigation_$(echo "REPO_NAME" | tr '/' '_') - Initialize the evidence store:
python SKILL_DIR/scripts/evidence-store.py --store evidence.json list - Copy the forensic report template:
cp SKILL_DIR/templates/forensic-report.md ./investigation-report.md - Create an
iocs.mdfile to track Indicators of Compromise as they are discovered. - Record the investigation start time, target repository, and stated investigation goal.
Phase 1: Prompt Parsing and IOC Extraction
Goal: Extract all structured investigative targets from the user's request.
Actions:
- Parse the user prompt and extract:
- Target repository (
owner/repo) - Target actors (GitHub handles, email addresses)
- Time window of interest (commit date ranges, PR timestamps)
- Provided Indicators of Compromise: commit SHAs, file paths, package names, IP addresses, domains, API keys/tokens, malicious URLs
- Any linked vendor security reports or blog posts
- Target repository (
Tools: Reasoning only, or execute_code for regex extraction from large text blocks.
Output: Populate iocs.md with extracted IOCs. Each IOC must have:
- Type (from: COMMIT_SHA, FILE_PATH, API_KEY, SECRET, IP_ADDRESS, DOMAI
الأسئلة الشائعة
هل يحتاج كل ادعاء إلى دليل؟
نعم. تقول المهارة إن كل ادعاء يجب أن يستشهد بمعرّف دليل، ولا يُسمح بالعبارات غير المدعومة.
ما المصادر التي تستخدمها؟
تذكر المهارة GitHub Archive وWayback Machine وواجهة GitHub API والتحليل المحلي لـ git.
هل تستطيع إثبات وقوع الهجوم؟
تفصل المهارة بين الوقائع والفرضيات، وتعلّم الاستنتاجات غير المتحقق منها، فيُظهر التقرير ما هو مؤكد وما ليس كذلك.
التفاصيل
الوصف الأصلي من المؤلف
GitHub supply-chain forensics: recovery, IOCs, reporting.
الشعبية
- نجوم GitHub
- 260k
- الترتيب
- #563
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
agent-merge-conflict-arbiter
260kيحسم تعارض دمج git بين فروع وكيلين كطرف محايد، فينتج نتيجة دمج واحدة للمستودع.
antigravity-cli
260kيرشدك إلى تثبيت أداة سطر أوامر Antigravity وتحديثها واستكشاف أخطائها، بما في ذلك إضافاتها وتسجيل الدخول والبيئة المعزولة.
blackbox
260kيتيح لوكيلك تسليم مهمة برمجة إلى أداة Blackbox AI لسطر الأوامر، التي تشغّل عدة نماذج ذكاء اصطناعي وتختار أفضل نتيجة.
dynamic-workflow
260kيعلّم وكيلك تشغيل مجموعات كبيرة من أعمال متشابهة كسكربت محفوظ، فلا تعود إلى المحادثة الرئيسية إلا النتائج المتحقق منها.
مهارات مشابهة
reverse-engineer-anything
422kيساعد وكيلك على فحص التطبيقات والحزم المنشورة من الداخل ليشرح الميزات ويقارن الإصدارات ويرشد إلى إعادة البناء، باستخدام أداة REA.
1password
394kيساعد وكيلك على إعداد واجهة سطر أوامر 1Password وتسجيل الدخول، وقراءة الأسرار أو حقنها دون طباعة قيمها في المحادثة.
healthcheck
394kيساعد وكيلك على تدقيق جهاز OpenClaw أو خادمه أمنيًا، مثل SSH والجدار الناري والتحديثات، ويقترح إصلاحات آمنة قابلة للتراجع.