Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimum required RBAC for user to successfully sniff #37

Closed
RevREB opened this issue Apr 11, 2019 · 6 comments
Closed

Minimum required RBAC for user to successfully sniff #37

RevREB opened this issue Apr 11, 2019 · 6 comments

Comments

@RevREB
Copy link

RevREB commented Apr 11, 2019

I am wondering if you've done any tuning on figuring out what the minimum required RBAC permissions for a user would been to be to get a successful sniff.

@RevREB
Copy link
Author

RevREB commented Apr 11, 2019

Side note this tool is awesome.

@eldadru
Copy link
Owner

eldadru commented Apr 11, 2019

Hi @RevREB thanks for using ksniff, glad you liked it!

I didn't check the minimum required permissions, I guess that the privileged mode requires higher permissions as it's creating new pod with access to the hosting node.

The upload mode will probably require less permissions because it's only execute tcpdump on existing pod.

In case you will have more detailed answer, it will be super helpful if you will update the project README with this information.

Eldad.

@RevREB
Copy link
Author

RevREB commented Apr 11, 2019

I'm still gonna dig into it later... but does this basically just exec into the pod and and run tcpdump and pipe the stdout back across the wire?

@eldadru
Copy link
Owner

eldadru commented Apr 12, 2019

Yeah, what you described is the "exec mode"
Privileged mode is different:

  • Deploy new pod with access to docker daemon unix socket file

  • From the new privileged pod, create new docker container on the same node which attaches to the target pod network namespace.

  • exec tcpdump on our new container, pipe stdout over the wire

@RevREB
Copy link
Author

RevREB commented Apr 12, 2019

ok, ill play with RBAC this weekend and find the Lowest required perms.

@eldadru
Copy link
Owner

eldadru commented Apr 21, 2019

Closing for now, @RevREB if you did found the minimum required permissions, please open a pull request with your findings - thanks!

@eldadru eldadru closed this as completed Apr 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants