Giter VIP home page Giter VIP logo

whalescan's Introduction

Whalescan

Released as open source by NCC Group Plc - https://www.nccgroup.com/

Developed by Saira Hassan (@saiber_saira)

https://github.com/nccgroup/whalescan

Released under Apache license 2.0, see LICENSE for more information

Introduction

Whalescan is a vulnerability scanner for Windows containers, which performs several benchmark checks, as well as checking for CVEs/vulnerable packages on the container. It also checks the config and Docker files for misconfigurations. This tool can be used as part of a Windows container review on local copies of the containers, and on the host itself to enhance security.

Getting Started

git clone https://github.com/saira-h/whalescan

pip install -r requirements.txt

./main.py

Overview

Whalescan performs the following checks on containers:

  • Container checks

    • Checks if containers are stored under C: drive - this could raise issues if there is a DoS attack, filling up the C: drive and making the host unresponsive
    • Checks if container is running as a process or hyper-v. Hyper-v isolation offers enhanced security of containers
    • Checks if there are any pending updates in the containers, and if so, how to update.

    Container checks

  • Image checks

    • Checks for unsafe commands being used in the dockerfile, for example docker ADD instead of docker COPY.
    • Checks if hash verification is being performed on any files downloaded.
    • Checks if any vulnerable packages are on the container, and pulls relevant CVE information
    • Checks if .NET version being used is End Of Life
    • Checks if Docker Engine is updated, and if not, gathers a list of CVEs for the version being used

    CVE check demo

  • Checks permissions of docker configuration files

  • Checks if additional devices have been mapped to containers

whalescan's People

Contributors

saira-h 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

whalescan's Issues

Project Status dead

As nobody ever replies and there are no changes in the project code, this seems to be another dead project.

Container scan crashes in hyper-v isolation mode

When scanning a running container an error is encountered at the checkPendingUpdates step.
The program eventually crashes with the following error:

FileNotFoundError: [Errno 2] No such file or directory: 'result.txt'

Issue originates if the container is running in hyper-v isolation mode.
Docker does not allow files to be copied into containers running in hyper-v isolation with the "docker cp" command.
As no check is made to check if the copy command succeeds the program will evenutally crash when the result file is not found

Tested on
OS: Windows 10 Enterprise
Docker Version: 19.03.12
Docker isolation mode: Hyper-V

contribute

@nccgroup

I have several ideas for improvements and corrections, I would be happy if someone could guide me. And then contribute a lot here. how?

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.