Volver al ranking

project-copacetic/copacetic

Goproject-copacetic.github.io/copacetic/

🧵 CLI tool for directly patching container images!

compliancedevsecopsdockersecuritytrivyvulnerabilitycontainerscontainer-imagecontainer-securitypatchingcncfhacktoberfest
Crecimiento de estrellas
Estrellas
1.7k
Forks
122
Crecimiento semanal
Issues
4
5001k1.5k
ene 2023mar 2024may 2025jul 2026
ArtefactosGo Modulesgo get github.com/project-copacetic/copacetic
README

Project Copacetic: Directly patch container image vulnerabilities

GitHub codecov OpenSSF Best Practices OpenSSF Scorecard

Copa logo

copa is a CLI tool written in Go and based on buildkit that can be used to directly patch container images without full rebuilds. copa can also patch container images using the vulnerability scanning results from popular tools like Trivy.

For more details and how to get started, please refer to full documentation.

Demo

intro

Why?

We needed the ability to patch containers quickly without going upstream for a full rebuild. As the window between vulnerability disclosure and active exploitation continues to narrow, there is a growing operational need to patch critical security vulnerabilities in container images so they can be quickly redeployed into production. The need is especially acute when those vulnerabilities are:

  • inherited from base images several levels deep and waiting on updated releases to percolate through the supply chain is not an option
  • found in 3rd party app images you don't maintain with update cadences that don't meet your security SLAs.

direct image patching

In addition to filling the operational gap not met by left-shift security practices and tools, the ability of copa to patch a container without requiring a rebuild of the container image provides other benefits:

  • Allows users other than the image publishers to also patch container images, such as DevSecOps engineers.
  • Reduces the storage and transmission costs of redistributing patched images by only creating an additional patch layer, instead of rebuilding the entire image which usually results in different layer hashes that break layer caching.
  • Reduces the turnaround time for patching a container image by not having to wait for base image updates and being a faster operation than a full image rebuild.
  • Reduces the complexity of patching the image from running a rebuild pipeline to running a single tool on the image.

How?

The copa tool is an extensible engine that:

  1. Parses the needed update packages from the container image’s vulnerability report produced by a scanner like Trivy. New adapters can be written to accommodate more report formats.
  2. Obtains and processes the needed update packages using the appropriate package manager tools such as apt, apk, etc. New adapters can be written to support more package managers.
  3. Applies the resulting update binaries to the container image using buildkit.

report-driven vulnerability patching

This approach is motivated by the core principles of making direct container patching broadly applicable and accessible:

  • Copa supports patching existing container images.
    • Devs don't need to build their images using specific tools or modify them in some way just to support container patching.
  • Copa works with the existing vulnerability scanning and mitigation ecosystems.
    • Image publishers don't need to create new workflows for container patching since Copa supports patching container images using the security update packages already being published today.
    • Consumers do not need to migrate to a new and potentially more limited support ecosystem for custom distros or change their container vulnerability scanning pipelines to include remediation, since Copa can be integrated seamlessly as an extra step to patch containers based on those scanning reports.
  • Copa reduces the technical expertise needed and waiting on dependencies needed to patch an image.
    • For OS package vulnerabilities, no specialized knowledge about a specific image is needed to be patch it as Copa relies on the vulnerability remediation knowledge already embedded in the reports produced by popular container scanning tools today.

Contributing

There are several ways to get involved:

The project welcomes contributions and suggestions that abide by the CNCF Code of Conduct.

Repositorios relacionados
wazuh/wazuh

Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.

C++Othersecuritycompliance
wazuh.com
16.2k2.4k
CISOfy/lynis

Lynis - Security auditing tool for Linux, macOS, and UNIX-based systems. Assists with compliance testing (HIPAA/ISO27001/PCI DSS) and system hardening. Agentless, and installation optional.

ShellGNU General Public License v3.0shelllinux
cisofy.com/lynis/
16k1.6k
prowler-cloud/prowler

Prowler is the world’s most widely used open-source cloud security platform that automates security and compliance across any cloud environment.

PythonPyPIApache License 2.0securitysecurity-tools
prowler.com
14.4k2.3k
open-policy-agent/opa

Open Policy Agent (OPA) is an open source, general-purpose policy engine.

GoGo ModulesApache License 2.0opapolicy
openpolicyagent.org
12k1.6k
codenotary/immudb

immudb - immutable database based on zero trust, SQL/Key-Value/Document model, tamperproof, data change history

GoGo ModulesOtherkey-valueimmutable
immudb.io
9k374
bridgecrewio/checkov

Prevent cloud misconfigurations and find vulnerabilities during build-time in infrastructure as code, container images and open source packages with Checkov by Bridgecrew.

PythonPyPIApache License 2.0terraformstatic-analysis
checkov.io
8.9k1.4k
kyverno/kyverno

Unified Policy as Code

GoGo ModulesApache License 2.0kubernetescompliance
kyverno.io
8k1.5k
aquasecurity/tfsec

Tfsec is now part of Trivy

GoGo ModulesMIT Licenseterraformsecurity
aquasecurity.github.io/trivy/
7k555
cloud-custodian/cloud-custodian

Rules engine for cloud security, cost optimization, and governance, DSL in yaml for policies to query, filter, and take actions on resources

PythonPyPIApache License 2.0awscompliance
cloudcustodian.io
6k1.6k
deepfence/ThreatMapper

Open Source Cloud Native Application Protection Platform (CNAPP)

TypeScriptnpmApache License 2.0cloud-nativevulnerability-management
threatmapper.org
5.3k636
ossec/ossec-hids

OSSEC is an Open Source Host-based Intrusion Detection System that performs log analysis, file integrity checking, policy monitoring, rootkit detection, real-time alerting and active response.

CGNU General Public License v2.0hidssecurity
ossec.net
5k1.1k
microsoft/agent-governance-toolkit

AI Agent Governance Toolkit — Policy enforcement, zero-trust identity, execution sandboxing, and reliability engineering for autonomous AI agents. Covers 10/10 OWASP Agentic Top 10.

PythonPyPIMIT Licenseagent-frameworkai-agents
4.9k785