GithubHelp home page GithubHelp logo

mchmarny / vimp Goto Github PK

View Code? Open in Web Editor NEW
58.0 3.0 4.0 48.01 MB

Compare data from multiple vulnerability scanners to get a more complete picture of potential exposures.

License: Apache License 2.0

Makefile 3.00% Go 87.60% Shell 3.68% HCL 5.73%
artifact container cve gcp registry vulnerability grype snyk trivy

vimp's People

Contributors

dependabot[bot] avatar mchmarny avatar namloc2001 avatar taechae avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vimp's Issues

strip url schema from image uris

For consistency and to make it compatible with crane and the scanners we should remove schema from the image uri if provided.

Question about grype results

Hey cool idea.

i was giving it a go and am trying to run it before pushing to oci and i was able to get this going via

#!/bin/bash
IMAGE_TAG=$1
SNYK_TOKEN=$2

echo "Started scanning images"

echo "Running snyk image scan"
SNYK_TOKEN=${SNYK_TOKEN} snyk container test --app-vulns --json-file-output=${TMPDIR}/${IMAGE_TAG}-report_snyk.json  ${IMAGE_TAG}

echo "Running trivy image scan"
trivy image --scanners vuln --format json --output ${TMPDIR}/${IMAGE_TAG}-report_trivy.json ${IMAGE_TAG}

echo "Running grype image scan"
grype --add-cpes-if-none -s AllLayers -o json --file ${TMPDIR}/${IMAGE_TAG}-report_grype.json ${IMAGE_TAG} 

echo "importing"
IMAGE_SHA=$(docker images --no-trunc --quiet ${IMAGE_TAG})
vimp import --source ${IMAGE_TAG}@${IMAGE_SHA} --file ${TMPDIR}/${IMAGE_TAG}-report_snyk.json
vimp import --source ${IMAGE_TAG}@${IMAGE_SHA} --file ${TMPDIR}/${IMAGE_TAG}-report_grype.json 
vimp import --source ${IMAGE_TAG}@${IMAGE_SHA} --file ${TMPDIR}/${IMAGE_TAG}-report_trivy.json 

vimp query --image ${IMAGE_TAG}@${IMAGE_SHA} 

echo "Finished scanning images"
vulnerabilities=$(vimp query --image ${IMAGE_TAG}@${IMAGE_SHA} | jq '.exposures|length')
if [[ $vulnerabilities -gt 0 ]]; then
    echo "Found $vulnerabilities vulnerabilities"
    exit 1;
fi

my question is when i see the output of grype i see it detects issues but these dont see to end up in the combined dump?
image
image

Is it just that there is additional filtering occurring somewhere and most of these are things we probably dont care about? or is this a bug.

Looking at the source i see it should scream at me aslong as the items have the keys "vulnerabilities" and "artifacts". which the first couple i checked did.

I tried the example image (redis) and i do see results for grype in the combined result.

I also tried an image on my registry (a simple vimp import --image) and grype behaved the same as my force local attempt which makes me think there's just some sort of filtering going on i'm not understanding

Thanks!

Refactor Notes to remove package issue information

Notes should only carry information common to all Occurrences.

Since it would be annoying/impossible to have to carry all package issues in the Notes, we should remove any package issue information in the Notes.

add auto scan on import

If no file is provided, detect the install scanners and automatically scan the image. Provide --scanners flag to allow for more granular opt-in selection.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.