Логотип Auditing Init And Sidecar Injection Trust

Auditing Init And Sidecar Injection Trust

Організація
UnboundCompute
auditing-init-and-sidecar-injection-trust

Перевірте init- і sidecar-контейнери робочого навантаження, зокрема ті, які додає webhook модифікації admission, на наявність доступу, якого основний контейнер не надавав. Зокрема, перевірте доданий sidecar, що має ширші привілеї, доступ до хоста або облікові дані, ніж робоче навантаження; init-контейнер, який отримує та виконує віддалений вміст до запуску застосунку; спільний том або простір імен процесів, що дає sidecar змогу читати секрети основного контейнера; а також випадок, коли образ і конфігурація для додавання надходять із джерела, яке власник робочого навантаження не контролює. Навичка охоплює pod-и Kubernetes, у яких init- і sidecar-контейнери, оголошені в конфігурації або додані webhook-ом, працюють поруч із застосунком. Використовуйте її, коли в pod-ах є init- або sidecar-контейнери, особливо додані автоматично. Джерелом є доданий або допоміжний контейнер, ціллю — ресурс pod-а або облікові дані, до яких він дістається, а вразливістю — наданий йому рівень довіри, що перевищує рівень основного контейнера.

Огляд

ВидавецьUnboundCompute
Репозиторійsecurity-agent-skills
Назва навичкиauditing-init-and-sidecar-injection-trust
Зірки
27
Форки
8
Файли в пакеті
Лише інструкції
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

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

  • Відкритий вихідний код

    Видавець на GitHub: UnboundCompute. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Auditing Init And Sidecar Injection Trust у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-init-and-sidecar-injection-trust
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
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-init-and-sidecar-injection-trust .claude/skills/auditing-init-and-sidecar-injection-trust
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Auditing Init And Sidecar Injection Trust в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Auditing Init And Sidecar Injection Trust, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Auditing Init And Sidecar Injection Trust не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Auditing init and sidecar injection trust: the containers you did not write share your pod

A pod is not just its application container. Init containers run first, sidecars run alongside, and many are injected automatically by a mutating admission webhook that the workload owner never sees in their manifest. All of them share the pod: the same network namespace, often shared volumes, sometimes the process namespace, and they can be granted their own security context and credentials. That makes every init and sidecar container a trust question the main container did not ask. An injected sidecar may run privileged or with host access the app never needed; an init container may fetch and execute remote content before the app starts; a shared secret volume or process namespace lets a sidecar read the application's secrets; and the injected image and its configuration may come from a source outside the workload owner's control. The pod looks like one workload but is a collection of containers with different privileges and origins. You audit this by enumerating every init and sidecar container, declared and injected, and checking what trust each holds.

When to use

  • Pods run init or sidecar containers, especially ones injected by a mutating admission webhook.
  • An injected or auxiliary container may run with broader privilege, host access, or credentials than the app.
  • Init containers fetch or execute content, or sidecars share volumes or namespaces with the main container.

Scope check

Audit init and sidecar trust only on clusters and workloads you own or are authorized to assess, on non-production pods. Confirming a sidecar can read the app's secrets or that an init container executes remote content touches real workloads, so use non-production pods and do not exfiltrate anything you surface. If you can't name the authorization, stop.

The loop

  1. Establish the workload's intended trust first. Name what the application container is supposed to run with: its privilege level, its credentials, its host access. This is the false-positive killer: a pod whose init and sidecar containers run at or below the app's privilege, from controlled images, sharing nothing sensitive, is fine. Name the intended trust, then check each auxiliary container against it.

  2. Enumerate every init and sidecar container, including injected ones. List the containers actually in the pod at runtime, not just those in the authored manifest, since a mutating webhook may add sidecars. For each, note its image source, security context, credentials, and mounts. An injected container the owner did not declare is the one most likely to hold unexpected trust.

  3. Compare each auxiliary container's privilege to the app. For each init and sidecar container, check whether it runs privileged, adds capabilities, shares a host namespace, or mounts host paths that the main container does not. A sidecar with broader privilege than the app raises the pod's whole blast radius to that sidecar's level.

  4. Check init containers that fetch or execute content. For each init container, determine whether it downloads and runs remote content, applies configuration from an external source, or executes a script before the app starts. An init container that pulls and executes untrusted content runs attacker-influencable code in the pod before the application even begins.

  5. Check shared volumes and namespaces for secret reach. Determine which volumes and namespaces the auxiliary containers share with the main container. A sidecar that mounts the app's secret volume or shares its process namespace can read the application's secrets and memory. Confirm sensitive mounts and namespaces are not shared with a less-trusted sidecar.

  6. Confirm and record. Confirm by showing an init or sidecar container holds trust the app did not grant: a sidecar reading the app's secret, an injected container running privileged, or an init container executing remote content, on non-production pods and without exfiltrating. Kill the lead if every init and sidecar container, declared and injected, runs at or below the app's privilege from a controlled image, shares no sensitive volume or namespace, and executes no untrusted content. Record the auxiliary container source, the pod resource or credential sink, and the trust it held beyond the main container.

Where init and sidecar trust leaks

  • Injected sidecars are invisible in the manifest. A mutating webhook adds containers the owner never declared, so the authored spec understates the pod's trust.
  • A sidecar can out-privilege the app. A sidecar running privileged or with host access raises the pod's blast radius above the application's own security context.
  • Init containers can fetch and execute. An init container that pulls and runs remote content executes attacker-influencable code before the app starts.
  • Shared volumes and namespaces expose secrets. A sidecar that mounts the app's secret volume or shares its process namespace reads the application's secrets and memory.
  • Injected images come from elsewhere. The injected image and its configuration may originate from a source the workload owner does not control or verify.

Worked example (a confirm and a kill)

Confirm. A mutating webhook injects a sidecar into every pod in a namespace. The injected sidecar runs privileged and mounts the application's secret volume, and its image comes from a registry the workload owner does not control. From the sidecar, a process reads the application's database credential the app never shared with it. Confirmed injected-sidecar trust beyond the workload, high, remediation = scope the injected sidecar to the minimum privilege it needs, stop it from mounting the app's secret volume, and pin and verify the injected image from a controlled source.

Kill. Every init and sidecar container in the pod, including the webhook-injected ones, runs unprivileged at or below the app's security context from pinned, verified images the owner controls, none mounts the application's secret volume or shares its process namespace, and no init container fetches or executes remote content. No auxiliary container holds trust the app did not grant. Killed, kill_reason = "all init and sidecar containers run at or below app privilege from controlled images with no shared secret volume or namespace and no remote execution; no injected container exceeds the workload's trust."

Rationalizations to reject

  • "The manifest only has one container." → A mutating webhook may inject more at runtime; enumerate the containers actually in the pod, not just the authored spec.
  • "The sidecar is from the platform team." → Confirm its privilege, image source, and mounts; a trusted team's sidecar can still out-privilege the app or read its secrets.
  • "Init containers just set things up." → If an init container fetches and runs remote content, it executes code in the pod before the app; check what it pulls and runs.
  • "They are in the same pod, sharing is fine." → Sharing a secret volume or process namespace lets a less-trusted sidecar read the app's secrets; scope what is shared.
  • "The injected image is standard." → Confirm it is pinned and from a source you verify; an injected image from elsewhere runs in your pod with whatever trust it is granted.

Executing this in practice

You need the full runtime list of init and sidecar containers including injected ones, each container's image source, security context, credentials, and mounts, whether any init container fetches or executes content, and the shared volumes and namespaces. For each auxiliary container, compare its trust to the application's. Reading the runtime pod spec and the mutating webhook configuration shows the granted trust; showing a sidecar reach the app's secret or an init container execute remote content shows whether the boundary holds.

Related

  • hunting-container-escape-surface - the privilege and host-access settings this skill checks on auxiliary containers are the same escape surface, viewed per injected container.
  • auditing-admission-control-policy-gaps - the mutating webhook that injects sidecars is admission machinery; a gap there is how an untrusted injection gets in.
  • auditing-workload-secret-exposure-surface - the shared-volume secret reach a sidecar exploits is that skill's subject, here caused by an injected neighbor.
  • auditing-container-image-provenance - the injected sidecar's image provenance question; an unverified injected image runs in your pod.
  • FINDING-SCHEMA.md - source = the injected or auxiliary container, sink = the pod resource or credential it reaches, evidence = the trust it held beyond the main container.

Поширені запитання

Що робить навичка ШІ Auditing Init And Sidecar Injection Trust?

Перевірте init- і sidecar-контейнери робочого навантаження, зокрема ті, які додає webhook модифікації admission, на наявність доступу, якого основний контейнер не надавав. Зокрема, перевірте доданий sidecar, що має ширші привілеї, доступ до хоста або облікові дані, ніж робоче навантаження; init-контейнер, який отримує та виконує віддалений вміст до запуску застосунку; спільний том або простір імен процесів, що дає sidecar змогу читати секрети основного контейнера; а також випадок, коли образ і конфігурація для додавання надходять із джерела, яке власник робочого навантаження не контролює. Н...

Навіщо використовувати Auditing Init And Sidecar Injection Trust у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Auditing Init And Sidecar Injection Trust — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Auditing Init And Sidecar Injection Trust у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-init-and-sidecar-injection-trust. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Auditing Init And Sidecar Injection Trust?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Auditing Init And Sidecar Injection Trust?

Зі скількома забажаєте. У TypingMind ви можете використовувати Auditing Init And Sidecar Injection Trust із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Auditing Init And Sidecar Injection Trust?

Так. На GitHub цю навичку публікує UnboundCompute за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇