{"id":16906916,"url":"https://github.com/pjbgf/beargrabz","last_synced_at":"2026-04-24T23:34:40.061Z","repository":{"id":105027649,"uuid":"267738818","full_name":"pjbgf/beargrabz","owner":"pjbgf","description":"Monitor Kubernetes Clusters for authorisation tokens being passed in clear-text.","archived":false,"fork":false,"pushed_at":"2020-05-29T12:10:59.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-06T14:40:43.657Z","etag":null,"topics":["bearer-tokens","devsecops","kubernetes","network-security","security","security-audit","security-tools"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pjbgf.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}},"created_at":"2020-05-29T01:42:19.000Z","updated_at":"2025-05-08T21:48:01.000Z","dependencies_parsed_at":"2023-07-16T02:17:24.270Z","dependency_job_id":null,"html_url":"https://github.com/pjbgf/beargrabz","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pjbgf/beargrabz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjbgf%2Fbeargrabz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjbgf%2Fbeargrabz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjbgf%2Fbeargrabz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjbgf%2Fbeargrabz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pjbgf","download_url":"https://codeload.github.com/pjbgf/beargrabz/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjbgf%2Fbeargrabz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32245150,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"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":["bearer-tokens","devsecops","kubernetes","network-security","security","security-audit","security-tools"],"created_at":"2024-10-13T18:45:14.218Z","updated_at":"2026-04-24T23:34:40.047Z","avatar_url":"https://github.com/pjbgf.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# beargrabz\n\nMonitor Kubernetes Clusters for authorisation tokens being passed in clear-text.\n\n\n### Deploy beargrabz \n```sh\nkubectl apply -f deploy.yaml\n```\n\nCheck `beargrabz` logs to see what bearer tokens it has found so far:\n```sh\nkubectl logs eavesdropper\n```\n\n### Deploy full working example\nThis will deploy 3 pods:\n\n1. `httpbin` pod and service to serve HTTP on port 80.\n2. `api-client` pod to simulate requests.\n3. `beargrabz` pod to eavesdrop requests from `api-client` to `httpbin`.\n\n```sh\nkubectl apply -f sample/playground.yaml\n```\n\nFollow `beargrabz` logs to see requests from `api-client` to `httpbin`:\n```sh\nkubectl logs eavesdropper -f\n```\n\nThe result should be a new entry in the log every second:\n```\n10.244.0.23:34570 -\u003e 10.0.114.142:8000\nGET /\nHost: httpbin:8000\nAuthorization: Bearer GoUwqbik432***********\n```\n\n### Security Requirements\n\n`beargrabs` has a few security requirements:\n\n- run as root on the container.\n- have `NET_ADMIN` capability.\n- have access to the host network.\n\n**Running on Kubernetes**\nAn extract of the yaml configuration is as follows:\n\n```yaml\n    securityContext:\n      capabilities:\n        add: [\"NET_ADMIN\"]\n  hostNetwork: true\n```\n\nCheck [deploy.yml](deploy.yml) for a working example.\n\n**Running manually with docker**\n```sh\ndocker run --rm --security-opt=no-new-privileges --cap-drop=NET_ADMIN --network=\"host\" paulinhu/beargrabz \n```\n\n\n## License\n\nLicensed under the MIT License. You may obtain a copy of the License [here](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpjbgf%2Fbeargrabz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpjbgf%2Fbeargrabz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpjbgf%2Fbeargrabz/lists"}