انتقل إلى المحتوى
أمين أبوزيد
MID-053

أمان الاعتماديات

  • 6 درس
  • 2 ساعة تدريب (تقدير)
في هذه الصفحة 8 موضوعات

نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.

نظرة عامة

الموضوعات

  • SCA
  • SBOM
  • فحص الثغرات
  • البناء الآمن

تعلّم أولًا

2 ساعة تدريب (تقدير)

مخرجات التعلم

  1. Run software composition analysis and triage findings by exploitability and reachability.
  2. Generate an SBOM (CycloneDX) for services and images.
  3. Scan container images and pin base images.
  4. Explain supply-chain risks (typosquatting, compromised builds) and controls (signing, provenance).

الدروس

  1. 01شيفرتك في معظمها شيفرة الآخرين
  2. 02SCA والفرز
  3. 03SBOMs
  4. 04فحص الصور (Image Scanning)
  5. 05أمان سلسلة التوريد
  6. 06عرض عملي: فرز ثغرة CVE حرجة

المختبر والتمارين

Lab

MID-053-LAB1 · Secure builds

Outcomes: 1–4 · Time: ~2 h Add SCA, a CycloneDX SBOM, and an image scan to every Shop pipeline. Add a severity gate (fail on critical/high unless an exception exists) and an exceptions file with reason, owner, and expiry. Pin base images. Plant one vulnerable dependency to prove the gate. Acceptance: a planted vulnerable dependency fails the build; SBOMs are stored as build artifacts.

Exercises (assessment: triage exercise)

IDOutcomeTask
MID-053-EX011Triage five given findings: decide fix, mitigate, or accept for each, with reasons.
MID-053-EX021Explain why a critical CVE in a test-scope library may rank below a medium one in a public endpoint's code path.
MID-053-EX032Generate a CycloneDX SBOM for orders and find which version of Jackson it contains.
MID-053-EX043Scan the orders image, list the top findings, and reduce them by changing the base image.
MID-053-EX054Describe typosquatting and name two controls against it.
MID-053-EX064Draw a pipeline that signs the image and a cluster policy that rejects unsigned images.
أظهر الحلول
  • EX01 Fix when reachable and exposed; mitigate (config, WAF, disable feature) when no fix exists; accept only when unreachable, with an expiry date and owner.
  • EX02 Test-scope code is not shipped, while the medium finding is reachable by an attacker; exploitability and exposure matter beyond severity.
  • EX03 Plugin goal makeAggregateBom; search the JSON components for jackson-databind and read its version.
  • EX04 Example: trivy image, then switch to a slim or distroless maintained base, rebuild, and re-scan; findings drop because fewer OS packages are present.
  • EX05 A package with a name close to a popular one that contains malware. Controls: lock files and checksum verification, an internal proxy with an allowlist, review new dependencies.
  • EX06 Build → push → cosign sign (keyless or key-based) → admission policy verifies the signature before a pod starts (verify tool names before use).

Outcome 2 is also covered by the lab criterion "SBOMs stored as build artifacts" and quiz Q04.

الاختبار

Outcomes: O1 SCA and triage · O2 SBOM · O3 image scanning · O4 supply-chain risks and controls.

اختبار ذاتي لك: لا توجد درجات، ولا يُحفظ أو يُرسل أي شيء. اختر إجابة ثم تحقق منها، ويمكنك المحاولة مرة أخرى كما تشاء.

  1. 1A CVE is:O1
  2. 2Reachability asks:O1
  3. 3A finding may be accepted when:O1
  4. 4The main use of an SBOM after a new CVE is:O2
  5. 5CycloneDX is:O2
  6. 6Pinning the base image gives:O3
  7. 7Image scans should cover:O3
  8. 8Typosquatting means:O4
  9. 9Signing an image lets the cluster:O4
  10. 10Which practice supports build provenance?O4

الجزء العملي

Triage exercise (MID-053-EX01) plus lab MID-053-LAB1. Pass: quiz at least 8/10, a correct triage with reasons, and a planted vulnerable dependency failing the build.

أخطاء شائعة

Ignoring all findings due to noise; never updating base images.

التقييم

Triage exercise.

الصلة بالمسار الوظيفي

Secure delivery at platform level (STF-008).

اكتب للبحث في المستويات والمراحل والوحدات والدروس.