-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Docker-bench-security check 2.2 icc issue #480
Comments
Thanks @fbinliu for reporting this. |
Hi again, the |
Ah, I just noticed that you're using 1.3.4 which is an obsolete version. See #405 and please try using the shell script instead. |
Hi, i have downloaded the latest version (v1.3.6), and used the shell script (sh docker-bench-security.sh) and also verified that icc is set to false via "docker network ls --quiet |xargs docker network inspect --format '{{ .Name }}: {{ .Options }}'", but still get [WARN] at check_2_2, shown as "Ensure network traffic is restricted between containers on the default bridge (Scored)", appreciate your further check on this very much. |
I can't reproduce this.
|
Hi, sure, here is the output for conducting the same steps. I am now wondering if this error comes due to my running docker bench security on my WSL2 Ubuntu distro?
|
It shouldn't really matter if it's on WSL since the Can you run the actual code and share the output?
|
hi, i don't have daemon.json in /etc/docker because my machine is a Windows machine and I've installed Docker Desktop. The daemon.json is located in my case in .docker folder in my home directory. Here is the result of running the actual code:
|
That might be the issue, since https://github.com/docker/docker-bench-security/blob/master/functions/helper_lib.sh#L100 only checks the config file if defined using |
ok, i see, so is there so far any way to run docker-bench-security for a docker server running on a Windows machine? |
If the only issue is that the config file is in the "wrong" place, I can add the path(s) for those as well. |
Oh, that would be awesome indeed if it could be done, so that docker-bench-security can also be executed for docker runtime in WSL2 on a Windows machine. My path for config file (daemon.json) is as follows, not sure for other people:
|
I'll try too find some universal logic regarding WSL paths. If you find any other issues, please report them as well (separately). |
Ya, sure, appreciate your effort on this very much. Together we go further! No other issue so far. Feel free to close this issue if necessary for your administration and looking forward to the update on this (with a new version eventually :). |
Related: #446 |
Docker Desktop (windows) version: Docker 20.10.7, build f0df350
Docker Bench Security: Docker Bench for Security v1.3.4
Execution enviornment: WSL2 Ubuntu 20.0.4
Issue:
From the scan, I've got the following warning:
[WARN] 2.1 - Ensure network traffic is restricted between containers on the default bridge
I have then added the following into my daemon.json file:
"icc": false
And then restarted my Docker Desktop (Windows) and then verified it is in effect (following CIS steps):
docker network ls --quiet | xargs docker network inspect --format '{{ .Name }}: {{ .Options }}'
got this result: "com.docker.network.bridge.enable_icc:false"
But when i re-run Docker Bench Security container, I still got the same warning of 2.1 which is not expected considering i've set "icc" to false.
Also, according to CIS Docker Benchmark v1.3.1, this network traffic control should be control 2.2 instead of the current 2.1, so please correct.
Appreciate your check and feedback on this.
The text was updated successfully, but these errors were encountered: