شعار Security Assessment

Security Assessment

مؤسسةشائع
amd
security-assessment

تقييم ثغرة أمنية مُبلّغ عنها في GAIA واستكمال فرز PSIRT / JIRA: تحديد ما إذا كانت صحيحة وقابلة للاستغلال، وما إذا كانت تستدعي CVE ونشرة أمنية، وإعداد درجة CVSS 4.0 وتصنيف CWE ووصف CVE. استخدمها عند فرز بلاغ باحث أو نشرة أمنية أو نتيجة من claude-security-audit، وكلما احتجت إلى الإجابة عن سؤال «هل تستحق هذه الحالة CVE؟» أو إعداد درجة/متجه/مستوى خطورة CVSS. احسب الدرجة دائمًا من متجه تمت مراجعته باستخدام util/cvss4.py (فهو يطابق أول حاسبة 4.0)، ولا تخمّن الرقم أبدًا؛ فتخمين نموذج لغوي لدرجة CVSS لا يُعتمد عليه.

Add to TypingMind

نظرة عامة

الناشرamd
المستودعgaia
اسم المهارةsecurity-assessment
النجوم
1.6K
التفريعات
176
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/amd/gaia/tree/main/.claude/skills/security-assessment
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/amd/gaia.git /tmp/gaia
mkdir -p .claude/skills
cp -r /tmp/gaia/.claude/skills/security-assessment .claude/skills/security-assessment
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Security Assessment (PSIRT / CVSS triage)

For scoring a reported GAIA vulnerability and filling the PSIRT triage template. The one hard rule: the CVSS number is arithmetic on a reviewed vector, never a guess.

Rule 0 — never guess a CVSS score. Compute it.

The vector is the human judgment call. The number is math. Pick the vector, then run:

bash
python util/cvss4.py "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N"
# -> {"vector": "...", "base_score": 5.3, "severity": "Medium"}

util/cvss4.py is a thin, tested wrapper over the cvss pip package (in the [dev] extra) whose 4.0 output matches https://www.first.org/cvss/calculator/4.0 exactly (anchored in tests/unit/test_cvss4.py). A malformed vector is a loud ValueError, never a silent 0.0.

Why this rule exists (real GAIA cases):

  • An AI triage on the find -exec ticket asserted "CVSS 6.9 Medium" for the vector CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N — which actually computes to 8.4 High.
  • The security-audit workflow's prior anchor: a triage guessed 7.3 for a vector that scores 8.7.

Guessed numbers are off by a full severity band. Always run the tool and quote its output.

The GAIA vector rubric (which metric to pick)

This mirrors the rubric baked into .github/workflows/claude-security-audit.yml (keep the two consistent). Full form: CVSS:4.0/AV:_/AC:_/AT:_/PR:_/UI:_/VC:_/VI:_/VA:_/SC:_/SI:_/SA:_.

  • AV — Network only if untrusted data crosses a network boundary to reach the sink (hub artifact, HTTP request). A local CLI/file input on the same host is Local.
  • AC — Low unless a real, specific condition (not just "attacker must try") is needed.
  • AT — Present if exploitation needs a precondition outside the attacker's control (a specific agent installed, victim points at a non-default hub); else None.
  • PR — None unless GAIA privilege/auth is required to trigger it.
  • UI — This is where GAIA agent-tool findings usually turn. Active if the user must click through a warning or approve a confirmation-gated tool (TOOLS_REQUIRING_CONFIRMATION); Passive if they must merely initiate a command/install; None only if fully automatic. Most run_shell_command / write-tool findings are UI:A because the operator sees and approves the literal command first.
  • VC disclosure/reads · VI writes/tampering · VA crash/DoS. Set the subsequent scope metrics (SC/SI/SA) only if the impact escapes into a separate security scope (VM, container, downstream client) — an in-process capability gain does not.

Incremental-impact check: score the capability the finding adds, not what the tool could already do. The find -exec bypass's novel gain is write/delete/exec (VI/VA); file reads were already reachable via other whitelisted commands under the same path controls, so its VC is Low, not High. Overstating VC:H is what pushed the AI vector to a High score for a Medium-in-practice issue.

The confirmation gate changes the answer to "is this a CVE?"

Many GAIA agent tools are gated behind explicit per-command user approval (TOOLS_REQUIRING_CONFIRMATION in src/gaia/agents/base/agent.py). When the user sees and approves the literal command before it runs, that human-approval step is the real security boundary. A bypass of a secondary control (e.g. an incomplete command allowlist) layered on top of an intact primary control is defense-in-depth hardening, not a standalone exploitable vulnerability — it typically does not warrant a CVE + public bulletin.

Check before deciding:

  • Is the tool in TOOLS_REQUIRING_CONFIRMATION? (grep it.)
  • Does it get denied in non-interactive mode, or only run under an opt-in like GAIA_AUTO_APPROVE_TOOLS=1? The opt-in is a documented, user-accepted risk.
  • Is there a code path (API server, programmatic SDK) that skips the gate? If yes, the gate is not universal and the CVE bar may be met after all — verify, don't assume.

Fix it regardless (defense-in-depth), but let the gate drive the CVE decision.

CWE — name the root cause, not the impact

Rank the root cause first, the consequence second. For the find -exec bypass: CWE-184 (Incomplete List of Disallowed Inputs) is the root cause (the allowlist check is incomplete); CWE-78 (OS Command Injection) is only the consequence. An AI triage that leads with CWE-78 has described the symptom, not the defect.

Filling the PSIRT / JIRA triage

Answer in this order (the template PSIRT sends):

  1. Valid, exploitable vulnerability? Yes/No — be honest about the bypass even if a gate limits it; qualify exploitability rather than denying the weakness.
  2. Needs a CVE ID + public Security Bulletin? Yes/No — apply the confirmation-gate test above. If No, state whether a security brief is required (usually optional).
  3. If new CVE: CVSS 4.0 (Score + Vector — from util/cvss4.py, not guessed), CWE (root-cause first), and CVE description in the required shape: <Weakness> in <component> could allow <attacker> to <exploit> potentially resulting in <CIA>.
  4. Mitigation delivery / AMD deliverables — for a GAIA code fix this is the amd-gaia package (PyPI + GitHub) only; None for PI / SEV FW / uCode / ROCm / Radeon / Adrenalin / uProf / Chipset drivers. Not a Linux-upstream issue.

Then move the JIRA ticket Opened → Assessed.

Worked example — the find -exec triage (2026-07)

Vectorutil/cvss4.py saysNote
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N8.4 Highthe AI's vector — it claimed 6.9
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N5.3 Mediumcorrected: UI:A (approval gate), VC:L (reads already possible), VA:H (-delete)

Both rows are complete vectors — paste either straight into util/cvss4.py.

Outcome: valid weakness, No CVE (confirmation gate is the real boundary), fixed as hardening in PR #2740. The corrected vector — computed, not guessed — lands a full band below the AI's assertion.

Writing it up

The triage you hand back follows CLAUDE.md → How You Communicate: open with the verdict in plain words — is it real, is it exploitable, does it need a CVE — then the CVSS vector, CWE, and evidence underneath. A reviewer deciding whether to file should not have to parse the vector string to learn the answer. State the computed score, never a guessed one.

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

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

تقييم ثغرة أمنية مُبلّغ عنها في GAIA واستكمال فرز PSIRT / JIRA: تحديد ما إذا كانت صحيحة وقابلة للاستغلال، وما إذا كانت تستدعي CVE ونشرة أمنية، وإعداد درجة CVSS 4.0 وتصنيف CWE ووصف CVE. استخدمها عند فرز بلاغ باحث أو نشرة أمنية أو نتيجة من claude-security-audit، وكلما احتجت إلى الإجابة عن سؤال «هل تستحق هذه الحالة CVE؟» أو إعداد درجة/متجه/مستوى خطورة CVSS. احسب الدرجة دائمًا من متجه تمت مراجعته باستخدام util/cvss4.py (فهو يطابق أول حاسبة 4.0)، ولا تخمّن الرقم أبدًا؛ فتخمين نموذج لغوي لدرجة CVSS لا يُعتمد عليه.

لماذا تستخدم Security Assessment على TypingMind؟

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

كيف أثبّت Security Assessment في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/amd/gaia/tree/main/.claude/skills/security-assessment. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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