Monitor Kubernetes Clusters for authorisation tokens being passed in clear-text.
kubectl apply -f deploy.yaml
Check beargrabz logs to see what bearer tokens it has found so far:
kubectl logs eavesdropper
This will deploy 3 pods:
httpbin pod and service to serve HTTP on port 80.api-client pod to simulate requests.beargrabz pod to eavesdrop requests from api-client to httpbin.kubectl apply -f sample/playground.yaml
Follow beargrabz logs to see requests from api-client to httpbin:
kubectl logs eavesdropper -f
The result should be a new entry in the log every second:
10.244.0.23:34570 -> 10.0.114.142:8000
GET /
Host: httpbin:8000
Authorization: Bearer GoUwqbik432***********
beargrabs has a few security requirements:
NET_ADMIN capability.Running on Kubernetes An extract of the yaml configuration is as follows:
securityContext:
capabilities:
add: ["NET_ADMIN"]
hostNetwork: true
Check deploy.yml for a working example.
Running manually with docker
docker run --rm --security-opt=no-new-privileges --cap-drop=NET_ADMIN --network="host" paulinhu/beargrabz
Licensed under the MIT License. You may obtain a copy of the License here.
Content type
Image
Digest
Size
6.4 MB
Last updated
over 6 years ago
docker pull paulinhu/beargrabz