本文へスキップ
Skillpedia
セキュリティ42k · #6436

competition-kernel-container-escape

できること

このツールは、「コンテナ」(分離された実行環境)の中で動くプログラムが、外側のメインのコンピューターシステムに「脱出」してアクセスできるかどうかを確認するのに役立ちます。プログラムがシステムの中核部分(カーネル)やセキュリティの壁とどのようにやり取りしているかを分析します。

使う場面

  • ✓分離されたプログラムがメインシステムにアクセスできるかどうかを知りたいとき。
  • ✓プログラムのセキュリティ上の弱点がどのように悪用されうるかを理解したいとき。
  • ✓コンテナを使っているシステムのセキュリティをテストするとき。

スキルのリンク

https://github.com/zhaoxuya520/reverse-skill/blob/main/CTF-Sandbox-Orchestrator/competition-kernel-container-escape/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/zhaoxuya520/reverse-skill/blob/main/CTF-Sandbox-Orchestrator/competition-kernel-container-escape/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“コンテナ内の「悪意のある」プログラムが、メインシステム上のファイルにアクセスできるかどうか確認してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このツールは、namespaces や cgroups といったコンテナの分離設定を調べ、プログラムがカーネルに対して行う呼び出しを追跡します。プログラムがコンテナの外に出て、システム上でより高い権限を得られる経路を探します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Competition Kernel Container Escape

Use this skill only as a downstream specialization after $ctf-sandbox-orchestrator is already active and has established sandbox assumptions, node ownership, and evidence priorities. If that has not happened yet, return to $ctf-sandbox-orchestrator first.

Use this skill when the decisive step is proving a boundary crossing between containerized context and host or higher-privilege kernel context.

Reply in Simplified Chinese unless the user explicitly requests English.

Quick Start

  1. Map runtime isolation first: namespaces, cgroups, seccomp, capabilities, LSM, and mount boundaries.
  2. Separate exploit prerequisite, primitive, and boundary-crossing proof.
  3. Record kernel version, config hints, runtime options, and reachable syscall surface.
  4. Keep instrumented observations separate from pristine challenge path.
  5. Reproduce one minimal primitive-to-boundary-crossing chain.

Workflow

1. Map Isolation And Kernel Surface

  • Record namespace map, cgroup mode, capabilities, seccomp profile, AppArmor or SELinux state, mounted filesystems, and runtime sockets.
  • Note kernel version, distro build hints, module exposure, and container runtime behavior.
  • Keep host and container observations linked to exact node and context.

2. Prove Exploit Primitive And Crossover

  • Show controllable input, trigger condition, affected object, and observable kernel or runtime state change.
  • Capture before and after identity, namespace, mount, or process visibility to prove boundary crossing.
  • Distinguish crash-only behavior from stable capability gain.

3. Reduce To Decisive Escape Chain

  • Compress to: prerequisite state -> primitive trigger -> boundary crossing evidence -> resulting host-level capability.
  • State whether root cause is kernel vulnerability, runtime misconfiguration, capability overgrant, or namespace leak.
  • If path relies mostly on credential replay after initial foothold, hand off to Linux credential pivot skill.

Read This Reference

  • Load references/kernel-container-escape.md for isolation checklist, primitive checklist, and parity guidance.

What To Preserve

  • Kernel and runtime context, capability set, seccomp or LSM state, and namespace map
  • Primitive trigger data, boundary crossing evidence, and resulting capability
  • One minimal reproducible chain from container context to host-relevant effect
よくある質問

コンテナとは何ですか?

コンテナは、プログラムを実行するための、システムの他の部分から切り離された箱のようなものです。これにより、物事を整理して安全に保つことができます。

「コンテナからの脱出」とはどういう意味ですか?

コンテナ内のプログラムが、分離の仕組みを突破して、本来アクセスできないはずのメインシステムの一部にアクセスしたり、それを操作したりしてしまうことを指します。

カーネルとは何ですか?

カーネルは、OSの中核となる最も重要な部分で、コンピューターのハードウェアとソフトウェアすべてを管理しています。

詳細

作者による元の説明

Internal downstream skill for ctf-sandbox-orchestrator. CTF-sandbox workflow for kernel attack surface, namespace and cgroup boundaries, container isolation assumptions, syscall paths, and escape primitive verification. Use when the user asks to analyze container-to-host escape paths, kernel exploit prerequisites, namespace crossover, capability misuse, or prove whether an exploit primitive crosse

repo: zhaoxuya520/reverse-skill

人気

GitHubのスター
42k
ランキング
#6436
ライセンス
MIT
更新日
2026/9/22

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル