{"id":47594398,"url":"https://github.com/code-cargo/cargowall","last_synced_at":"2026-04-01T17:54:07.254Z","repository":{"id":344266801,"uuid":"1172694971","full_name":"code-cargo/cargowall","owner":"code-cargo","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-24T14:58:35.000Z","size":1141,"stargazers_count":14,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-24T17:45:36.343Z","etag":null,"topics":["ebpf","firewall","github-actions","security"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/code-cargo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-04T15:43:27.000Z","updated_at":"2026-03-24T13:48:14.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/code-cargo/cargowall","commit_stats":null,"previous_names":["code-cargo/cargowall"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/code-cargo/cargowall","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-cargo%2Fcargowall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-cargo%2Fcargowall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-cargo%2Fcargowall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-cargo%2Fcargowall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code-cargo","download_url":"https://codeload.github.com/code-cargo/cargowall/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-cargo%2Fcargowall/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31290686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ebpf","firewall","github-actions","security"],"created_at":"2026-04-01T17:54:06.489Z","updated_at":"2026-04-01T17:54:07.246Z","avatar_url":"https://github.com/code-cargo.png","language":"Go","funding_links":[],"categories":["Point-of-use validations"],"sub_categories":["Vulnerability information exchange"],"readme":"# CargoWall\n\n[![build](https://github.com/code-cargo/cargowall/actions/workflows/ci.yml/badge.svg)](https://github.com/code-cargo/cargowall/actions/workflows/ci.yml)\n[![release](https://github.com/code-cargo/cargowall/actions/workflows/release.yml/badge.svg)](https://github.com/code-cargo/cargowall/actions/workflows/release.yml)\n[![License: Apache-2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\n**The firewall for GitHub Actions.**\n\nCargoWall is an **eBPF-based network firewall for GitHub Actions runners** that monitors and controls outbound connections during CI/CD runs.\n\nIt protects your pipelines from **malicious actions, dependency supply chain attacks, and secret exfiltration** — with just a single step added to your workflow jobs.\n\nCargoWall is open source and built by the team behind CodeCargo.\n\n**Get started with the [CargoWall GitHub Action](https://github.com/code-cargo/cargowall-action).**\n\n---\n\n# Why This Exists\n\nModern CI/CD pipelines run **untrusted code** every day.\n\nYour workflows execute:\n\n* third-party GitHub Actions\n* package installers\n* build tools\n* test frameworks\n* deployment scripts\n\nAll with access to **sensitive credentials**:\n\n* cloud keys\n* registry tokens\n* deploy keys\n* signing secrets\n\nIf one dependency or action is compromised, attackers can silently:\n\n* exfiltrate secrets\n* tamper with build artifacts\n* push malicious releases\n\nThis has already happened across the ecosystem.\n\nCI/CD pipelines are now **one of the largest attack surfaces in software delivery**.\n\nCargoWall exists to **put a firewall in front of your pipeline.**\n\n---\n\n# What CargoWall Does\n\nCargoWall runs inside the GitHub runner and:\n\n* monitors all outbound network connections\n* blocks unauthorized destinations\n* detects unexpected network activity\n* prevents secret exfiltration\n* logs all external connections made by the workflow\n\nThis is enforced using **kernel-level eBPF hooks** for minimal overhead and strong enforcement.\n\n---\n\n# What Makes CargoWall Different\n\nMost CI/CD security tools are **static scanners**.\n\nCargoWall protects the pipeline **while it is running**.\n\n* **Runtime network firewall** — not a static scanner, enforces policy while your workflow runs\n* **Kernel-level eBPF enforcement** — TC egress filters in kernel space, not userspace proxies\n* **Process attribution** — every connection is traced back to the process and PID that initiated it\n* **Dynamic DNS resolution** — hostname rules are resolved at runtime via a local DNS proxy\n* **Audit and enforce modes** — start with visibility, then switch to blocking when ready\n* **NDJSON audit logs** — machine-readable logs for compliance evidence and SIEM integration\n\n---\n\n# Get Started\n\nAdd the [CargoWall GitHub Action](https://github.com/code-cargo/cargowall-action) to your workflow:\n\n```yaml\n- uses: code-cargo/cargowall-action@v1\n  with:\n    default-action: deny\n    allowed-hosts: |\n      github.com,\n      registry.npmjs.org\n```\n\nSee the [cargowall-action README](https://github.com/code-cargo/cargowall-action) for full usage, inputs, outputs, and examples.\n\n---\n\n# How It Works\n\n```mermaid\nflowchart LR\n    subgraph runner[\"GitHub Actions Runner\"]\n        subgraph steps[\"Workflow Steps\"]\n            S1[\"npm ci / docker build / etc.\"]\n        end\n\n        subgraph cw[\"CargoWall\"]\n            DNS[\"DNS Proxy\u003cbr/\u003e127.0.0.1:53\"]\n            BPF[\"TC eBPF\u003cbr/\u003eon eth0\"]\n            Rules[\"Rule Engine\"]\n        end\n\n        S1 -- \"DNS query\" --\u003e DNS\n        DNS -- \"resolve \u0026 update rules\" --\u003e Rules\n        Rules -- \"allow/deny IPs\" --\u003e BPF\n        S1 -- \"network traffic\" --\u003e BPF\n    end\n\n    BPF -- \"allowed\" --\u003e Internet((\"Internet\"))\n    BPF -. \"blocked\" .-x Denied((\"Denied\"))\n```\n\n1. The CargoWall GitHub Action installs the CargoWall runtime on the runner.\n2. CargoWall attaches **eBPF TC (Traffic Control) egress filters** to the runner's network interface using [cilium/ebpf](https://github.com/cilium/ebpf).\n3. A **local DNS proxy** intercepts DNS queries, resolving hostnames to IPs and dynamically populating the firewall rules.\n4. Outbound packets are matched against an **LPM trie** (longest-prefix match) in kernel space for CIDR and port-based rules.\n5. **Cgroup socket hooks** (`connect4`/`connect6`/`sendmsg4`/`sendmsg6`) track which process (PID) initiated each connection.\n6. Events are delivered to userspace via a **ring buffer** and written to an NDJSON audit log with full process attribution.\n\nCargoWall supports both **audit mode** (log only, no blocking) and **enforce mode** (actively block denied traffic).\n\nAll enforcement happens **inside the runner at the kernel level** — no iptables, no sidecar proxy.\n\n---\n\n# CodeCargo Platform\n\nSign up for the [CodeCargo platform](https://www.codecargo.com) for enterprise features like:\n\n* **Centralized policy management** — create, assign, and inherit CargoWall policies from a dashboard without touching workflow files\n* **Organization-wide policies** with hierarchical overrides at the repo, workflow, and job level\n* Role-based access control\n* CI/CD governance and workflow run retention\n* AI-powered capabilities including Multi-repo AI Editor, Self-service, AI Service Catalog, and Actions Insights\n\n---\n\n# Documentation\n\nFull documentation:\n\n[https://docs.codecargo.com/concepts/cargowall](https://docs.codecargo.com/concepts/cargowall)\n\n---\n\n# When Should You Use CargoWall?\n\nCargoWall is especially valuable if you:\n\n* rely on **third-party GitHub Actions**\n* run CI/CD in **regulated environments**\n* need **SOC2 / FedRAMP evidence for pipeline controls**\n* want to prevent **CI/CD supply chain attacks**\n* want visibility into **network activity during builds**\n\n---\n\n# Built With\n\n* [Go](https://go.dev/)\n* [cilium/ebpf](https://github.com/cilium/ebpf) — eBPF program loading and map management\n* [miekg/dns](https://github.com/miekg/dns) — DNS proxy for runtime hostname resolution\n\n---\n\n# Security\n\nIf you discover a vulnerability, please report it responsibly.\n\nSee [`SECURITY.md`](SECURITY.md) for details.\n\n---\n\n# License\n\nApache 2.0\n\n---\n\n# Links\n\nGitHub Action\n[https://github.com/code-cargo/cargowall-action](https://github.com/code-cargo/cargowall-action)\n\nDocumentation\n[https://docs.codecargo.com/concepts/cargowall](https://docs.codecargo.com/concepts/cargowall)\n\nCodeCargo\n[https://codecargo.com](https://codecargo.com)\n\n---\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-cargo%2Fcargowall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-cargo%2Fcargowall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-cargo%2Fcargowall/lists"}