{"id":38781106,"url":"https://github.com/alegrey91/vex8s","last_synced_at":"2026-02-27T13:15:30.821Z","repository":{"id":323659506,"uuid":"1070681377","full_name":"alegrey91/vex8s","owner":"alegrey91","description":"Generates VEX documents by parsing the Kubernetes SecurityContext configuration","archived":false,"fork":false,"pushed_at":"2026-01-14T21:37:43.000Z","size":9042,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-15T02:55:32.506Z","etag":null,"topics":["security","security-scanner","security-tools","trivy","vex","vulnerability"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alegrey91.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2025-10-06T09:45:35.000Z","updated_at":"2025-12-06T15:57:41.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/alegrey91/vex8s","commit_stats":null,"previous_names":["alegrey91/vex8s"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/alegrey91/vex8s","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alegrey91%2Fvex8s","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alegrey91%2Fvex8s/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alegrey91%2Fvex8s/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alegrey91%2Fvex8s/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alegrey91","download_url":"https://codeload.github.com/alegrey91/vex8s/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alegrey91%2Fvex8s/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28508464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T11:50:55.898Z","status":"ssl_error","status_checked_at":"2026-01-17T11:50:55.569Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["security","security-scanner","security-tools","trivy","vex","vulnerability"],"created_at":"2026-01-17T12:24:54.825Z","updated_at":"2026-02-27T13:15:30.808Z","avatar_url":"https://github.com/alegrey91.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vex8s\n\n![vex8s](./vex8s.png)\n(this logo is not AI generated)\n\nVex8s generates [VEX](https://www.ntia.gov/files/ntia/publications/vex_one-page_summary.pdf) documents by correlating container vulnerabilities with Kubernetes `securityContext` to determine which CVEs are actually exploitable in your cluster.\n\nPlease note, this is an experimental project. Things might change quickly.\n\n## How It Works\n\nThe project aims to assess the exploitability of known CVEs within Kubernetes workloads by combining vulnerability classification and [`securityContext`](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) analysis.\n\nIt is based on the following concept:\n\n* Each CVE is categorized into one or more vulnerability classes ([CWE](https://cwe.mitre.org/index.html))\n* CVE description is processed by an embedded ML [model](https://github.com/alegrey91/vex8s-model) to predict its [*exploitation category*](https://github.com/alegrey91/vex8s-model?tab=readme-ov-file#classification).\n* Both the CWEs and the predicted *exploitation categories* are combined to determine if the CVE is mitigable.\n* Each class, maps to a set of Kubernetes `securityContext` settings that can block or reduce the impact.\n* By parsing a Kubernetes manifest, we can inspect the container's `securityContext` to evaluate whether the relevant settings are in place.\n* Combining both analyses allows the system to determine if a CVE is exploitable in a given workload configuration.\n* If it results in a CVE mitigation, we add this to the final VEX document.\n\nFor a more in-depth reading you can consult this article: \n\n[Environment-Aware Vulnerability Suppression Using Kubernetes Security Contexts and VEX](./docs/environmet_aware_vulnerability_suppression_using_kubernetes_security_context_and_vex.pdf)\n\n## Installation\n\nYou can build it manually:\n\n```\nmake build\n```\n\n## Usage\n\n`vex8s` currently supports 2 ways to generate VEX documents:\n\n* **passive-mode**: passing an already generated vulnerability report created by `trivy` or `grype`.\n\n* **active-mode**: actively scanning the images using `trivy` or `grype` engines and then gereating the document based on the results.\n\n### Passive mode (recommended)\n\nUsing `trivy`:\n\n```\n# generate vulnerability report.\ntrivy image --format json --output nginx.trivy.json nginx:1.21.0\n\n# generate VEX document by processing vulnerability report.\nvex8s generate --manifest examples/nginx.yaml --report nginx.trivy.json --output nginx.vex.json\n\n# scan again with VEX document to suppress vulnerabilities.\ntrivy image --vex nginx.vex.json --show-suppressed nginx:1.21.0\n```\n\nThe same can be applied using `grype`:\n\n```\n# generate sbom report.\ngrype --output cyclonedx-json --file nginx.grype.json nginx:1.21.0\n\n# generate vulnerability report.\ngrype sbom:./nginx.grype.json --output json --file nginx.grype-vr.json\n\n# generate VEX document by processing vulnerability report.\nvex8s generate --manifest examples/nginx.yaml --report nginx.grype-vr.json --output nginx.vex.json\n\n# scan sbom with VEX document to suppress vulnerabilities.\ngrype sbom:./nginx.grype.json --output table --vex nginx.vex.json --show-suppressed\n```\n\n### Active mode\n\nUsing `trivy`:\n\n```\n# scan the image and automatically generate VEX document.\nvex8s generate --manifest examples/nginx.yaml --scan.engine trivy --output nginx.vex.json\n\n# scan again with VEX document to suppress vulnerabilities.\ntrivy image --vex nginx.vex.json --show-suppressed nginx:1.21.0\n```\n\nThe same can be applied using `grype`:\n\n```\n# generate sbom report.\ngrype --output cyclonedx-json --file nginx.grype.json nginx:1.21.0\n\n# scan the image and automatically generate VEX document.\nvex8s generate --manifest examples/nginx.yaml --scan.engine grype --output nginx.vex.json\n\n# scan sbom with VEX document to suppress vulnerabilities.\ngrype sbom:./nginx.grype.json --output table --vex nginx.vex.json --show-suppressed\n```\n\n## References\n\nThis project was inspired by Akihiro Suda's project [vexllm](https://github.com/AkihiroSuda/vexllm).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falegrey91%2Fvex8s","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falegrey91%2Fvex8s","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falegrey91%2Fvex8s/lists"}