Skip to content

tlestach/vulnerability-engine

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

583 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status codecov

vulnerability-engine

Vulnerability Engine

Requirements

  • VMaaS (Vulnerability Metadata as a Service)

  • Insights Platform

    • Upload service, Inventory, Kafka message queue
    • Mocked Platform service is part of this repository (for development purposes)

Local testing

Run VMaaS in docker-compose, populate with repositories and CVEs

Build images and start containers

docker-compose up --build

Upload Insights archives

  • Generate testing Insights archive

    echo '{"package_list": ["kernel-3.10.0-862.el7.x86_64"], "repository_list": ["rhel-7-server-rpms"]}' | ./scripts/generate_insights_archive.py -o /tmp/insights-archive.tar.gz -
    
  • Upload Insights archive to Platform mock

    ./scripts/3scale-mock -a 123456 curl -X POST -F "upload=@/tmp/insights-archive.tar.gz" http://localhost:8100/api/v1/upload
    
  • Upload Insights archive to Platform mock and send message to Listener 10 times

    ./scripts/3scale-mock -a 123456 curl -X POST -F "upload=@/tmp/insights-archive.tar.gz" -H "x-upload-multiplier: 10" http://localhost:8100/api/v1/upload
    

About

Vulnerability Engine

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 86.1%
  • PLpgSQL 9.8%
  • Shell 4.1%