hackerschoice / segfault

357 stars 41 forks source link

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

Open SkyperTHC opened 2 years ago

SkyperTHC commented 2 years ago

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

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).