Container Security : Snyk

 Hello DevSecOps experts, In this post we will discuss about how we can ensue container security scan. 

Snyk  is one of the container scan tool option, we can sign up with GitHub or google account. Snyk will operates in three different ways:

  1. Snyk Web UI
  2. Snyk CLI
  3. Snyk Broker

Heer we will experiment with Snyk CLI we can download from GitHub, as per your platform you can choose it. I'm going to work Preferrable option is to install the latest stable version of NodeJS, verify the version of Snyk/cli

 
curl -fsSL https://deb.nodesource.com/setup_24.x | sudo -E bash -
apt install -y nodejs # Install NodeJS as per current stable version available
node -v # Validate nodeJS installed
npm -v	# Validate npm installated 
npm install -g snyk # installing snyk
snyk --version # Validate snyk installed
When you run the above set of commands you will see the following output:
snyk installation using npm package manager

Ignore the npm warn lines which are expected as per the version incompatibilities.

Now, we need to have a snyk registered login, which can be used in the command-line by using `snyk auth`. 

 
Snyk authentication
The snyk auth command execution outcome

Prerequisites for snyk installation

Docker engine you be installed already as per your operating system

To have a docker image that can have vulnerabilities 

docker pull python:3.4-alpine

Snyk : How it works?

For container security scan 

 
snyk container test python:3.4-apline


What we can observer from the scan report?

Decide based on the report suggestion

How would you like your experience with the container security scan article so far? As me any questions related to container scanning.

Comments

Popular posts from this blog

Ansible Jinja2 Templates: A Complete Guide with Examples

Ansible 11 The uri module with examples

Jenkins Active choices parameter - Dynamic input