شعار Auditing Host Mount And Device Exposure

Auditing Host Mount And Device Exposure

مؤسسة
UnboundCompute
auditing-host-mount-and-device-exposure

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

نظرة عامة

الناشرUnboundCompute
المستودعsecurity-agent-skills
اسم المهارةauditing-host-mount-and-device-exposure
النجوم
27
التفريعات
8
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-host-mount-and-device-exposure
  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-host-mount-and-device-exposure .claude/skills/auditing-host-mount-and-device-exposure
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

يُحمّل النموذج مهارة Auditing Host Mount And Device Exposure تلقائيًا بمجرد ورود طلب ذي صلة بها.

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

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

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

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

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

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

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

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

Auditing host mount and device exposure: a path into the node filesystem

A hostPath volume or a device mount is a hole cut in the container boundary: it connects the workload directly to the node's filesystem or hardware. Sometimes that is genuinely needed, a node agent reading a specific system directory, but the exposure is defined by what the mount reaches, not by why it was added. A writable hostPath into a sensitive node directory lets the workload alter node state; a mount of the host root or a broad system path exposes other pods' data, node configuration, and credentials; a raw device or block volume grants low-level access that bypasses filesystem controls; and a hostPath with loose subpath or symlink handling can be walked out of its intended directory into the rest of the node. The audit treats each host mount as node reach and asks how far it goes. You audit this by inventorying every host-path and device mount and determining exactly what node state each exposes and whether it is writable.

When to use

  • Workloads mount hostPath volumes or devices that connect the container to the node filesystem or hardware.
  • A mount may reach a sensitive node directory, the host root, or a raw device broader than the workload needs.
  • A hostPath's subpath or symlink handling may let a workload escape the intended directory into the node.

Scope check

Audit host mounts only on clusters and nodes you own or are authorized to assess, on non-production nodes. Confirming a mount's reach reads or writes real node state and can affect other pods, so use a non-production node and do not alter node state or read other pods' real data. If you can't name the authorization, stop.

The loop

  1. Establish the workload's legitimate host need first. Name exactly which node path or device each workload genuinely needs and whether it needs to write. This is the false-positive killer: a workload with no host mount, or one with a narrow read-only mount of exactly the directory it needs, is correctly bounded. Name the legitimate need, then compare each mount to it.

  2. Inventory every host-path and device mount. List all hostPath volumes and device or block-volume mounts across workloads, with the exact host path or device, the mount point, and the read-write mode. Each is a connection to the node; the ones that are writable or reach broad paths are the candidates.

  3. Determine what each mount reaches. For each host-path mount, establish what node state the path exposes: a narrow application directory, a sensitive system directory, other pods' data directories, node configuration and credentials, or the host root. The breadth of the path sets the exposure, and a mount of the root or a system path exposes far more than the workload's own data.

  4. Check write access and device breadth. For each mount, confirm whether it is writable, since a writable mount of a sensitive path lets the workload alter node or other-pod state, and check whether any device mount grants raw or block-level access that bypasses filesystem permissions. Writable and raw-device mounts are the higher-severity cases.

  5. Check subpath and symlink escape. For hostPath mounts, determine whether subpath and symlink handling confine the workload to the intended directory or whether a symlink or a crafted path lets it traverse into the rest of the node filesystem. A mount meant to expose one directory that can be walked out of exposes the whole node.

  6. Confirm and record. Confirm by reading node state or another pod's data through a mount, or writing to a node path a workload should not, or escaping a hostPath's intended directory, on a non-production node and without altering real node state or reading real pod data. Kill the lead if every host mount is a narrow, read-only mount of exactly the path the workload needs, with no raw-device access and no subpath or symlink escape. Record the workload source, the node file or device sink, and the host-path or device exposure beyond the workload's need.

Where host mount exposure leaks

  • A broad host path exposes more than the workload's data. A mount of the host root or a system directory reaches other pods' data, node configuration, and credentials.
  • A writable mount alters node state. A writable hostPath into a sensitive directory lets the workload change node or other-pod state, not just read it.
  • A raw device bypasses filesystem controls. A device or block-volume mount grants low-level access beneath the file-permission layer.
  • Subpath and symlink handling can escape the directory. A hostPath meant to expose one directory can be walked out of into the rest of the node if traversal is not confined.
  • The need is narrow but the mount is broad. A workload that needs one file is often given a whole directory or the host root, exposing far beyond the requirement.

Worked example (a confirm and a kill)

Confirm. A monitoring workload mounts a broad host system directory read-write to read one metrics file. Through the writable mount, a process reads node configuration and another pod's data directory under the same path, and can write to a node file outside its own scope. Confirmed host-mount exposure of node and cross-pod state, high, remediation = replace the broad mount with a read-only mount of exactly the one metrics file or directory the workload needs, remove write access, and confine the mount so it cannot traverse outside the intended path.

Kill. The workload mounts only the single directory it needs, read-only, with no access to the host root, system directories, other pods' data, or node credentials, no raw-device mount, and subpath handling confines it so no symlink or crafted path escapes the directory. The mount exposes exactly the workload's own need and nothing more. Killed, kill_reason = "narrow read-only mount of exactly the needed path with no broad host access, no raw device, and no subpath or symlink escape; the mount reaches nothing beyond the workload's need."

Rationalizations to reject

  • "It only mounts one directory." → Check what that directory contains; a system directory or a parent of other pods' data exposes far more than the workload's own files.
  • "It needs to read a node file." → Mount that one file or directory read-only; a broad or writable mount for a narrow read is exposure, not a requirement.
  • "The mount is read-only." → Read-only still exposes node configuration, credentials, and other pods' data if the path is broad; scope the path, not just the mode.
  • "It is just a device for hardware access." → A raw device mount bypasses filesystem permissions and can grant low-level host access; confirm it is the specific device needed and nothing more.
  • "The mount is confined to its directory." → Confirm subpath and symlink handling actually prevent traversal; a mount that can be walked out of exposes the whole node.

Executing this in practice

You need every host-path and device mount across workloads with the exact path or device, mount point, and read-write mode, what node state each path exposes, whether any device grants raw access, and whether subpath and symlink handling confine each hostPath. For each mount, compare its reach to the workload's legitimate need. Reading the pod specs shows the granted mounts; reading node or cross-pod state through a mount on a non-production node shows the exposure it actually confers.

Related

  • hunting-container-escape-surface - the broader escape audit; host mounts and devices are the filesystem and hardware half of that surface, examined in depth here.
  • auditing-container-runtime-and-socket-exposure - the most severe single host mount, the runtime socket, whose blast radius is the whole node.
  • auditing-workload-secret-exposure-surface - a broad host mount can reach other pods' mounted secrets; the two exposures meet at the node filesystem.
  • auditing-kubernetes-workload-and-rbac-hardening - the workload-hardening context in which host-path and device mounts should be constrained or forbidden.
  • FINDING-SCHEMA.md - source = the workload holding the host mount, sink = the node file or device it reaches, evidence = the host-path or device exposure beyond the workload's need.

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

ماذا تفعل مهارة الذكاء الاصطناعي Auditing Host Mount And Device Exposure؟

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

لماذا تستخدم Auditing Host Mount And Device Exposure على TypingMind؟

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

كيف أثبّت Auditing Host Mount And Device Exposure في TypingMind؟

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

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Auditing Host Mount And Device Exposure؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Auditing Host Mount And Device Exposure؟

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

هل مهارة الذكاء الاصطناعي Auditing Host Mount And Device Exposure مجانية؟

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

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

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

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

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

عرض الكل

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

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