Skip to content

Latest commit

 

History

History
84 lines (62 loc) · 2.26 KB

File metadata and controls

84 lines (62 loc) · 2.26 KB

veinmind-sensitive

veinmind-sensitive is an image sensitive information scanning tool developed by Chaitin Technology

Features

  • Quickly scan images for sensitive information
  • Support custom sensitive information scanning rules
  • Support container runtime containerd and dockerd

Compatibility

  • linux/amd64
  • linux/386
  • linux/arm64
  • linux/arm

Prepare

install by package manager

  1. install libveinmind firstlly ,you can click here offical document for more info

  2. install python dependencies which veinmind-sensitive need,execute the command in the project directory

    cp -r ./veinmind-common ./plugins/python/veinmind-sensitive && rm -rf ./plugins/python/veinmind-sensitive/veinmind-common/go
    cd ./plugins/python/veinmind-sensitive
    pip install -r requirements.txt
    

install by parallel container

  1. Install by Parallel Container,pull veinmind-sensitive iamge and start
    docker run --rm -it --mount 'type=bind,source=/,target=/host,readonly,bind-propagation=rslave' veinmind/veinmind-sensitive
    
  2. or start with the script which we provided
    chmod +x parallel-container-run.sh && ./parallel-container-run.sh
    

How to use

  1. Scan image with specified image name or ID(need to have a corresponding image locally)

    python scan.py scan-images [imagename/imageid]
    
  2. Scan all local images

    python scan.py scan-images
    
  3. Specify the container runtime type

    python scan.py scan-images --containerd
    

    container runtime type

    • dockerd
    • containerd
  4. Specify output type

    python scan.py --output [outputtype] scan-images
    

Rule Field Description

  • id: rule identifier
  • description: rule description
  • match: content matching rules, the default is regular
  • filepath: path matching rules, the default is regular
  • env: environment variable matching rules, the default is regular and ignores case

Demo

  1. Scan the image which name is sensitive

  2. Scan all local images