Veinmind：An open source container security detection tool
Tags: productivity, opensource, security, docker
Published: 2022-07-12 06:49:32

Project address：https://github.com/chaitin/veinmind-tools

Recently, I have been researching open source container security related tools and found many excellent projects include trivy, anchor, etc., which have done a good job in vulnerability detection; while there are not many projects focusing on other security detection. So I am more interested in Chaitin's open-source inquiring container security toolset, so I record the process of using it for the first time.

First, let's take a look at the specific functions of the official description:

1. Supports detection of abnormal historical commands, malicious files, weak passwords, sensitive information, backdoors, etc.
2. Support image asset inventory, inventory image and image software assets.
3. Support local images scanning and repository images scanning, and integrate with mainstream image repositories such as Docker Hub.
4. Support mainstream CI/CD integration such as GitHub action and jenkins.
5. Run in parallel container mode, no need to compile separately, out-of-the-box.
6. Adapt to a variety of container runtimes.

## 1、Use the runner program to detect five kinds of threats in the local image

- `./parallel-container-run.sh scan-host -h`  ，View scan local mirror command parameters

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9k5g7n50h70jcyqeph6m.png)
- `./parallel-container-run.sh scan-host`  ，Scan all local images with all identified plugins

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dncqb39cijmlvvu49jmg.png)
Find one of the high-risk sensitive information and output the detection details

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rus1lgvxatpv02pf16gw.png)
- View the current list of plugins `./parallel-container-run.sh list plugin`

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p8xi71qzkp52pzoh49ja.png)
- `./parallel-container-run.sh scan-host -g "**/veinmind-weakpass"`  ，Specifies to scan only with weak password plugins

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ahxc6txkvlt7hbfowdod.png)

## 2、Use the host program to detect the warehouse image
- `./parallel-container-run.sh scan-registry -h`  ，View scan remote warehouse command parameters

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ymidoeaqf97avjca6ic3.png)

## 3、Integrated use in Github Action / Gitlab / Jenkins
Go directly to the official documents, I just don't want to try it.
https://veinmind.chaitin.com/docs/ci/jenkins/

## 4、Summarize
After simple use, it is very easy to get started, and there is almost no understanding cost. Several sensitive information and weak passwords were detected when scanning the local image. See the introduction of the malicious sample detection integrated with VT, which is quite reliable. I hope the official will continue to increase the detection rules of the tool. The issue mentioned in the research will be integrated with Jenkins so quickly. Yes, it seems that it is maintained by special personnel, and the project activity is quite high.