شعار Auditing Kms Key Policy And Envelope Encryption

Auditing Kms Key Policy And Envelope Encryption

مؤسسة
UnboundCompute
auditing-kms-key-policy-and-envelope-encryption

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

نظرة عامة

الناشرUnboundCompute
المستودعsecurity-agent-skills
اسم المهارةauditing-kms-key-policy-and-envelope-encryption
النجوم
27
التفريعات
8
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-kms-key-policy-and-envelope-encryption
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnboundCompute/security-agent-skills.git /tmp/security-agent-skills
mkdir -p .claude/skills
cp -r /tmp/security-agent-skills/skills/auditing-kms-key-policy-and-envelope-encryption .claude/skills/auditing-kms-key-policy-and-envelope-encryption
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

يُحمّل النموذج مهارة Auditing Kms Key Policy And Envelope Encryption تلقائيًا بمجرد ورود طلب ذي صلة بها.

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

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

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

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

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

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

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

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

Auditing KMS key policy and envelope encryption: who can actually decrypt

Envelope encryption protects data with a data key and protects the data key with a managed master key, so the real access boundary is the master key's policy plus whatever encryption context constrains the data key. That indirection hides over-broad access. A key policy or grant can admit a principal who should never decrypt this data; a wildcard key resource in an identity policy can cover keys the author never considered; and an encryption context, meant to bind a data key to a specific scope, does nothing if the decrypt path does not enforce it. Cross-account grants widen the set further. The payload can be perfectly encrypted while the decrypt set quietly includes the wrong principals. You audit these by computing who can decrypt and comparing that to who should read the data.

When to use

  • Data is protected by a managed key through envelope encryption, with a data key under a master key.
  • Decrypt access is governed by a key policy, key grants, and identity policies that may use wildcards.
  • An encryption context is used to scope a data key, and you need to confirm it is enforced on decrypt.

Scope check

Audit key access only in accounts and key stores you own or are authorized to assess. Confirming a decrypt recovers real plaintext, so stay inside the authorized keys and treat recovered data as sensitive within scope, never exfiltrating it. If you can't name the authorization, stop.

The loop

  1. Establish the data's intended readers first. For the data a key protects, name the principals that legitimately need to decrypt it. This is the false-positive killer: a key policy admitting exactly those readers is correct however sensitive the key is. Name the intended readers, then compute the decrypt set against them.

  2. Read the key policy and grants for who they admit. The master key's policy and any grants name the principals allowed to decrypt. Determine the true admitted set, noting broad principals (an account-wide grant, a wildcard) and any condition intended to scope it. Grants are easy to miss because they live apart from the policy document.

  3. Add identity policies with key wildcards. A principal whose identity policy grants decrypt on a wildcard key resource can decrypt with keys the key policy never named, if the key policy also delegates to identity policies. Expand wildcard key resources against the real key inventory and add every principal they admit to the decrypt set.

  4. Check that the encryption context is enforced. An encryption context binds a data key to a scope (a tenant, a purpose) only if every decrypt call supplies and the policy requires the matching context. If the context is set on encrypt but not required on decrypt, any holder of decrypt permission recovers the data regardless of scope. Confirm the context is a required condition, not a convention.

  5. Resolve cross-account and service grants. A grant to another account or to a service principal widens the decrypt set beyond the key's home account. Confirm each cross-account decrypt grant corresponds to an intended reader and is scoped, not a broad delegation that admits an entire external account.

  6. Confirm and record. Confirm by decrypting the data as a principal that should not be a reader but is admitted by the combined policy, or by decrypting a data key without supplying the intended encryption context, within scope and without exfiltrating plaintext. Kill the lead if the union of key policy, grants, and identity policies admits only intended readers, the encryption context is required on decrypt, and no cross-account grant widens the set beyond intent. Record the admitting term, the decrypt sink, and the decryptor beyond intended readers.

Where KMS and envelope encryption leak

  • The decrypt set is a union, and grants hide. Key policy, grants, and identity policies each add principals; a grant living apart from the policy is the common miss.
  • A wildcard key resource covers unrelated keys. An identity policy granting decrypt on all keys reaches keys the author never considered.
  • An unenforced encryption context scopes nothing. If decrypt does not require the matching context, the data key decrypts outside its intended scope.
  • Cross-account grants widen the set beyond the home account. A broad delegation admits an entire external account to the decrypt path.
  • Encrypted is not the same as access-controlled. Strong encryption with a loose key policy protects the bytes on disk but not against an admitted decryptor.

Worked example (a confirm and a kill)

Confirm. A per-tenant data key is encrypted with a tenant-scoped encryption context, but the decrypt path does not require the context, and an analytics role holds decrypt on the master key. The analytics role decrypts any tenant's data key without supplying that tenant's context, recovering cross-tenant plaintext. Confirmed cross-tenant decrypt through unenforced encryption context, high, remediation = require the tenant encryption context as a condition on every decrypt, scope the analytics role's decrypt to the keys it needs, and confirm the effective decrypt set matches intended readers per tenant.

Kill. The master key policy, grants, and identity policies together admit only the per-tenant service roles, decrypt requires the matching tenant encryption context as a policy condition, and no cross-account grant widens the set. A principal outside a tenant's readers, or a decrypt without the tenant context, is denied. Killed, kill_reason = "combined key policy, grants, and identity policies admit only intended readers, the encryption context is required on decrypt, and no cross-account grant widens access; no unintended principal recovers plaintext."

Rationalizations to reject

  • "The data is encrypted." → Encryption protects the bytes; the key policy decides who decrypts. Compute the decrypt set separately.
  • "The key policy is tight." → Add grants and wildcard identity policies; a grant apart from the policy or a broad identity policy widens the set.
  • "We set an encryption context." → Confirm decrypt requires it; a context set on encrypt but not enforced on decrypt scopes nothing.
  • "It is only shared with a partner account." → A cross-account grant to a whole account admits every principal in it; scope it to the intended reader.
  • "Analytics needs to read across the board." → Broad decrypt on a master key makes analytics a reader of everything it protects; scope to the specific keys and require the context.

Executing this in practice

You need the data's intended readers, the master key policy and grants, identity policies with key wildcards, the encryption context and whether decrypt enforces it, and any cross-account grants. Compute the effective decrypt set as the union and compare it to the readers. Reading the policies and the context requirement shows the intended boundary; decrypting as an unintended-but-admitted principal shows whether it holds.

Related

  • reviewing-secrets-manager-access-policy-trust - the secret side of the same union; a broad decrypt grant here is a back door there, so audit the two together.
  • hunting-non-human-identity-and-secret-reachability - the reachability companion; once the decrypt set is known, that skill traces which identity actually performs the decrypt.
  • finding-crypto-misuse - envelope-encryption design errors beyond access, such as reusing a data key across scopes, are that skill's territory.
  • adjudicating-taint-paths - use it to confirm an admitted principal's credentials reach the decrypt call with or without the required context.
  • FINDING-SCHEMA.md - source = the principal the key policy admits, sink = the decrypt operation, evidence = the decryptor beyond the data's intended readers.

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

ماذا تفعل مهارة الذكاء الاصطناعي Auditing Kms Key Policy And Envelope Encryption؟

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

لماذا تستخدم Auditing Kms Key Policy And Envelope Encryption على TypingMind؟

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

كيف أثبّت Auditing Kms Key Policy And Envelope Encryption في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-kms-key-policy-and-envelope-encryption. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Auditing Kms Key Policy And Envelope Encryption؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Auditing Kms Key Policy And Envelope Encryption؟

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

هل مهارة الذكاء الاصطناعي Auditing Kms Key Policy And Envelope Encryption مجانية؟

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

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

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

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

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

عرض الكل

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

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