Logo Auditing Container Image Provenance

Auditing Container Image Provenance

Tổ chức
UnboundCompute
auditing-container-image-provenance

Kiểm tra cách một cụm quyết định tin cậy và chạy image container nào: image được tham chiếu bằng tag có thể thay đổi thay vì digest nội dung; workload tải image từ registry chấp nhận image chưa ký hoặc chưa xác minh; chính sách chữ ký hoặc chứng thực đã cấu hình nhưng không được thực thi khi tiếp nhận; và image nền hoặc layer có nguồn gốc chưa từng được pipeline xác minh. Bao gồm Kubernetes và các nền tảng container, nơi image mà workload chạy chính là mã được thực thi, còn khả năng thay đổi tag, việc ký và nguồn gốc quyết định đó có phải artifact dự định hay không. Dùng khi workload tải image nhưng chữ ký và nguồn gốc của image không được xác minh xuyên suốt quy trình. Tham chiếu đến image chưa xác minh là nguồn; container đang chạy là đích; còn mã được thực thi mà không có nguồn gốc đã được chứng minh là lỗ hổng.

Tổng quan

Nhà phát hànhUnboundCompute
Kho mãsecurity-agent-skills
Tên kỹ năngauditing-container-image-provenance
Sao
27
Bản fork
8
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được UnboundCompute công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Auditing Container Image Provenance trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-container-image-provenance
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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-container-image-provenance .claude/skills/auditing-container-image-provenance
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Auditing Container Image Provenance trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Auditing Container Image Provenance ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Auditing Container Image Provenance với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Auditing container image provenance: when the tag is not the artifact

The image a workload runs is the code it runs, and a container reference is only a promise about which bytes those are. A mutable tag can point at different content over time, so a workload pinned to a tag runs whatever that tag resolves to at pull time, not the artifact that was reviewed. Signing and provenance attestation exist to close that gap, but only if they are enforced at admission rather than merely produced in the pipeline: a signature nobody verifies is decoration, and an attestation the cluster does not require proves nothing to the cluster. The failure is quiet because the workload starts and runs; the question is whether what it runs is provably the artifact you intended. You audit this by tracing each workload's image reference back to a verified digest and confirming the cluster refuses anything unproven.

When to use

  • Workloads reference images by mutable tags rather than immutable content digests.
  • Image signing or provenance attestation is produced but may not be enforced at admission.
  • Images are pulled from registries or base images whose origin the pipeline does not verify.

Scope check

Audit image provenance only for clusters, registries, and pipelines you own or are authorized to assess. A confirming test may push a benign image or retag one in a registry you control, so stay inside the authorized registry and remove any test artifact. If you can't name the authorization, stop.

The loop

  1. Establish the intended artifact and its proof first. Name, for each workload, exactly which image it is supposed to run and how that is proven: a content digest, a signature by a trusted key, a provenance attestation. This is the false-positive killer: a workload pinned to a digest whose signature and provenance the cluster verifies at admission is running a proven artifact. Name the intended proof, then check whether the reference and enforcement provide it.

  2. Check tag versus digest references. For each workload, determine whether the image is referenced by a mutable tag or an immutable digest. A tag can be repointed, so a tag reference runs whatever content the tag resolves to at pull time. A digest reference fixes the content; a tag reference does not, and is the first provenance gap.

  3. Confirm signing enforcement at admission. Determine whether the cluster requires a valid signature from a trusted key before running an image, or merely that signatures are produced somewhere. Enforcement lives at admission: if unsigned or unknown-key images are admitted, signing is not a control. Confirm the trusted keys and that verification is mandatory, not advisory.

  4. Check provenance attestation and its enforcement. Where build provenance or an SBOM attestation is expected, confirm the cluster requires it and validates it against policy (the expected builder, source, and materials), not just that an attestation exists. An attestation nobody checks does not constrain what runs.

  5. Trace base images and registry trust. Follow where images and their base layers come from. A workload pulling from a registry that admits unsigned images, or built on a base image whose origin was never verified, inherits that registry's or base's trust. Confirm the registries in use enforce provenance and that base images are pinned and verified.

  6. Confirm and record. Confirm by running, or getting admitted, an image the policy should reject, an unsigned image, an image at a repointed tag, or one lacking required provenance, in a non-production namespace against a registry you control, and removing it after. Kill the lead if every workload pins a digest, the cluster enforces trusted-key signatures and required provenance at admission, and base images and registries are verified. Record the unverified reference, the running-container sink, and the missing proof of provenance.

Where image provenance leaks

  • A mutable tag is not the artifact. A tag can be repointed after review, so a tag-referenced workload runs whatever the tag resolves to at pull time.
  • Signatures without enforcement prove nothing. A signature produced in the pipeline but not verified at admission does not stop an unsigned or wrong-key image from running.
  • Attestations nobody requires are decoration. Build provenance the cluster does not validate against policy places no constraint on what runs.
  • A permissive registry admits anything. Pulling from a registry that does not enforce provenance inherits its lack of trust.
  • Unverified base images poison the top layer. A trusted application layer on an unverified base still runs the base's code.

Worked example (a confirm and a kill)

Confirm. Workloads reference images by a moving tag, and admission control checks image names but does not verify signatures. Repointing the tag in a registry the tester controls to a benign but different image, then triggering a redeploy, runs the new content with no signature check. Confirmed unverified image provenance to running container, high, remediation = pin workloads to content digests, enforce trusted-key signature verification and required build provenance at admission, and pull only from registries that enforce provenance.

Kill. Every workload pins an image by content digest, admission requires a valid signature from a trusted key and a build-provenance attestation validated against the expected builder and source, base images are pinned and verified, and the registries in use reject unsigned images. An image at a repointed tag or without a required signature is refused at admission. Killed, kill_reason = "workloads pinned to verified digests with trusted-key signing and provenance enforced at admission and verified base images; no unproven image reaches a running container."

Rationalizations to reject

  • "We use a specific tag." → A tag is mutable; it can be repointed after review. Pin the content digest, or the reference proves nothing about the bytes.
  • "Our images are signed." → Signed is not verified; confirm the cluster rejects unsigned and wrong-key images at admission, or the signature is decoration.
  • "We generate SBOMs and provenance." → Producing an attestation is not requiring one; confirm the cluster validates it against policy before running.
  • "It is from our registry." → Confirm the registry enforces provenance and the base image origin is verified; a private registry can still hold an unverified image.
  • "The image ran fine." → Running proves it started, not that it is the intended artifact; provenance is about which bytes ran, not whether they ran.

Executing this in practice

You need each workload's image reference (tag or digest), the admission enforcement for signatures and provenance with the trusted keys and expected builder, the registries in use and their provenance posture, and the base-image origins. For each workload, trace the reference back to a verified digest and confirm the cluster refuses anything unproven. Reading the workload specs and admission policy shows the intended trust; getting an unproven image admitted against a controlled registry shows whether it holds.

Related

  • auditing-admission-control-policy-gaps - the enforcement mechanism this skill relies on; a provenance policy is only as strong as the admission gate that applies it.
  • hunting-supply-chain-risks - the broader artifact-provenance discipline; container images are one credential-bearing, directly-executed case of it.
  • auditing-container-image-build-hardening - the build side: how the image is produced and what it embeds, the upstream half of proving what a workload runs.
  • auditing-iac-module-and-provider-supply-chain - the same pin-and-verify discipline for infrastructure code that this skill applies to images.
  • FINDING-SCHEMA.md - source = the unverified image reference, sink = the running container, evidence = the missing proof of provenance.

Câu hỏi thường gặp

Kỹ năng AI Auditing Container Image Provenance làm được gì?

Kiểm tra cách một cụm quyết định tin cậy và chạy image container nào: image được tham chiếu bằng tag có thể thay đổi thay vì digest nội dung; workload tải image từ registry chấp nhận image chưa ký hoặc chưa xác minh; chính sách chữ ký hoặc chứng thực đã cấu hình nhưng không được thực thi khi tiếp nhận; và image nền hoặc layer có nguồn gốc chưa từng được pipeline xác minh. Bao gồm Kubernetes và các nền tảng container, nơi image mà workload chạy chính là mã được thực thi, còn khả năng thay đổi tag, việc ký và nguồn gốc quyết định đó có phải artifact dự định hay không. Dùng khi workload tải im...

Vì sao nên dùng Auditing Container Image Provenance trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Auditing Container Image Provenance là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Auditing Container Image Provenance trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-container-image-provenance. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Auditing Container Image Provenance?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Auditing Container Image Provenance với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Auditing Container Image Provenance với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Auditing Container Image Provenance có miễn phí không?

Có. Kỹ năng này được UnboundCompute phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇