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

Docker update fact_extractor and cwe_checker #66

Closed
wants to merge 2 commits into from

Conversation

Anemosx
Copy link
Contributor

@Anemosx Anemosx commented Mar 9, 2021

Docker container now support more modules:

@Anemosx Anemosx changed the title Docker update fact_extractor, cwe_checker and cve database download Docker update fact_extractor and cwe_checker Mar 9, 2021
@m-1-k-3
Copy link
Member

m-1-k-3 commented Mar 9, 2021

Cool thing. I think the changes of the installer.sh should be removed from this pull request. They are already in separate pull request: #67

@m-1-k-3 m-1-k-3 added docker docker related things enhancement New feature or request help wanted Extra attention is needed labels Mar 11, 2021
@@ -6,5 +6,7 @@ services:
- ${FIRMWARE}/:/firmware
- ${LOG}/:/log
- /var/run/docker.sock:/var/run/docker.sock
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering if this is a security problem in our use case.

We are going to start all of our containers with --rm. So if something goes really bad we are going to destroy it afterwards.

Copy link
Member

@m-1-k-3 m-1-k-3 Mar 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably one of our Docker experts can help with this. @N0K0?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not call myself an expert :D This would not destroy the socket file if that is what you are wondering. The main security risk here is that the container will get access to do more of less whatever the dockerd user can (more often than not this imples root access).
Given this use case (emba as a whole) i'd think this would be okay?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it mean root access to the host or to other docker containers?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically by having access to the socket you have access to the docker daemon. Which allows you to mount up the host file system and to whatever you feel like.

It also allows complete access to all other containers.

Here is an article that goes a bit into why it might be an bad idea :)
https://secureideas.com/blog/2018/05/escaping-the-whale-things-you-probably-shouldnt-do-with-docker-part-1.html

The reason i feel that this might not be too bad is that running tools like EMBA is really not something you should do on your "regular" computer. Just like using Kali as your day to day OS is a bit wierd

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the link. Yes, currently we are running everything on our host as root. So, we are compromised by default if someone has a nice firmware for us. With docker in place everything would be a bit better :)

@m-1-k-3 m-1-k-3 mentioned this pull request Mar 12, 2021
@m-1-k-3 m-1-k-3 marked this pull request as ready for review March 12, 2021 07:50
@m-1-k-3 m-1-k-3 mentioned this pull request Mar 12, 2021
@m-1-k-3
Copy link
Member

m-1-k-3 commented Mar 12, 2021

already merged

@m-1-k-3 m-1-k-3 closed this Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker docker related things enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants