Логотип 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 и локальными моделями.

  • Всё необходимое — в инструкциях

    Всё необходимое для модели содержится в инструкциях — никаких дополнительных файлов для синхронизации.

  • Открытый исходный код

    Издатель навыка на GitHub — UnboundCompute. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Auditing Host Mount And Device Exposure в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать 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?

С любым количеством. В TypingMind вы можете использовать Auditing Host Mount And Device Exposure с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Auditing Host Mount And Device Exposure?

Да. Навык опубликован на GitHub по лицензии MIT. Издатель — UnboundCompute. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇