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

isolate docker.socket from sshd (sf-host) #27

Open
SkyperTHC opened this issue Oct 16, 2022 · 0 comments
Open

isolate docker.socket from sshd (sf-host) #27

SkyperTHC opened this issue Oct 16, 2022 · 0 comments

Comments

@SkyperTHC
Copy link
Member

SkyperTHC commented Oct 16, 2022

This is an enhancement to increase security in case somebody can exploit SSHD or segfaultsh:

  • Have a separate container where the sf-scheduler runs. Listen on a socket.
  • Let SSHD drop into a dummy programm that connects to the socket and forward the SECRET to the sf-scheduler
  • SSHD connects stdin/stdout etc.
  • scheduler starts user container
  • This way any vulnerability in sshd or segfaultsh would not allow attacker to gain root on host via docker.socket.

thanks for mochaaP for a great discussion.

The best solution would be to implement a docker-docker firewall that intercepts any commands on the docker socket(regex) and only allows certain commands.

It's easily done but needs man-power to write the code. (I guess i can be done in 120 lines of python).

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

1 participant