Thanks to visit codestin.com
Credit goes to hub.docker.com

devopsshield/devopsshield

By devopsshield

Updated 3 days ago

An innovative cybersecurity platform for DevOps. Reduce your exposure to DevOps cyberattacks.

Image
Security
Developer tools
3

10K+

devopsshield/devopsshield repository overview

Table of Contents

Quick Start

Who we are

DevOps Shield - Your Business. We Protect It. Our mission is to empower and protect every organization with innovative cybersecurity for DevOps.

  • Improve your DevOps security governance.
  • Reduce exposure to possible DevOps cyberattacks.
  • Solve rising security and DevOps misconfiguration concerns.
  • Generate DevOps security assessment reports.

DevOps Shield fills the gap between the DevSecOps and Cloud security governance solutions by hardening your DevOps platform configuration and remediating non-compliant resources.

logo

How to use this image

Here you'll find the Docker image for the Community Edition of DevOps Shield.

  1. To run it in detached mode on host port 8080

docker run -d -p 8080:8080 devopsshield/devopsshield

  1. Then browse to http://localhost:8080 in PowerShell:

start http://localhost:8080

or in Linux (e.g. WSL 2 - see Install Google Chrome for Linux and install xdg utilities (sudo apt install xdg-utils))


xdg-open http://localhost:8080

  1. Log in with username devopsshield and password devopsshield. You will then be prompted to change your password.

Video Walkthrough

Click here for video instructions.

DevOps Shield in the Azure Marketplace

Alternatively, you can try it for FREE in the Azure Marketplace.

DevOps Shield in the Azure DevOps Marketplace

You can also run the DevOps Shield CLI in a pipeline using the DevOps Shield Security Scanner build task.

License

DevOps Shield Community Edition is licensed under the DevOps Shield proprietary license. Copyright (c) CAD4DevOps Inc. (DevOps Shield). All rights reserved.


Detailed Instructions using Docker Desktop GUI

Installation Prerequisites

Install Steps

  1. Open Docker Desktop, click on Images, then Search Images to Run Docker Hub Click on Search Images to Run
  2. Search for image "devopsshield/devopsshield" and click pull Find image for devopsshield
  3. Click on run click on run
  4. Choose host port (e.g. 8080) in optional settings then click on run add host port
  5. Now browse to the app at http://localhost:8080 or simply click on the hyperlink below browse localhost on port 8080

First Login for DevOps Shield

  1. Login to the app by clicking login button on top right click on login button
  2. Log in with username devopsshield and password devopsshield. You will then be prompted to change your password. enter default password
  3. Change default password change password

Configuration Prerequisites

  1. Obtain a Full Scoped Personal Access Token (PAT) for the Azure DevOps Organization to assess (see Use personal access tokens) get full pat token
  2. Don't for get to copy the PAT to the clipboard! copy PAT token
  3. Obtain the Microsoft Entra ID (aka Azure Active Directory Tenant ID) associated to the Azure DevOps Organization you chose to assess (see Connect your organization to Microsoft Entra ID) get microsoft entra id

Config Steps

  1. In the app, click on setup configuration setup configuration
  2. Now click on Quick Setup - Get Started quick setup - get started
  3. Fill out the values obtained above with your Tenant ID, your Azure Devops organization to assess as well as your Full PAT. Then click on Start Setup Now! fill out with your values
  4. You should quickly see the setup configuration done as below: config done
  5. Go to Automation Tasks and wait for the scan to complete automation tasks
  6. Depending on how large your Azure DevOps organization is, it may take minutes to finish. In our case, it took about 5 minutes to complete. wait for tasks to finish

Detailed Instructions using Azure (Web App for Containers)

  1. Login to the Azure Portal and click on Create a Resource Create a resource in azure portal
  2. Search for Web App for Containers and click on the tile Choose Web App for Containers
  3. Click on Create click on create
  4. Enter instance details such as:
  • Subscription
  • Resource Group
  • Web App Name
  • Region

enter instance details

Ensure you pick a Linux Plan as well as set Publish to Docker Container.

  1. Select the Docker Tab (or click Next 3 times) and enter the following information:

docker settings

Ensure you enter devopsshield/devopsshield for the Image and tag.

  1. Click on Review and Create then on Create.

click on create

  1. Once deployment is done, click on Go to resource

click on go to resource

  1. Now click on configuration to add an app setting mapping the website port to 8080 (see Default ASP.NET Core port changed from 80 to 8080)

click on configuration

  1. Add the setting WEBSITES_PORT with value 8080 then click OK

add the setting

  1. Click on Save to restart webapp

save to restart

  1. Browse to the app by clicking on default domain in Overview Page

click on default domain in overview

  1. Follow the post install steps

follow post install steps

Azure Install Script

  • Open a PowerShell terminal, then copy and run the following command:
Invoke-WebRequest "https://raw.githubusercontent.com/devopsshield/devops-shield/main/support/docker-hub/scripts/Azure/DevOpsShield-DockerHub-Azure-Install-Script.ps1" -OutFile "DevOpsShield-DockerHub-Azure-Install-Script.ps1"; Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass; .\DevOpsShield-DockerHub-Azure-Install-Script.ps1

Detailed Instructions using AWS (Amazon Lightsail)

  1. Sign in to the Lightsail console. On the Lightsail home page, choose the Containers tab and click on Create container service. click on containers in overview
  2. In the Create a container service page, choose Change AWS Region, then choose an AWS Region for your container service. Choose a capacity for your container service. choose region and capacity
  3. Click on Setup Deployment and Specify a custom deployment. Enter the following information:
  • Container name: Container names must contain only alphanumeric characters and hyphens. A hyphen (-) can separate words but cannot be at the start or end of the name.
  • Image: devopsshield/devopsshield
  • Open Ports: 8080 (HTTP)
  • Public Endpoint: select the container name above

enter deployment information

  1. Identify your service and create it! The name of your container service must be unique within each AWS Region in your Lightsail account. It must also be lower-case, and DNS-compliant.

identify service

  1. Wait for the deployment to complete (may take a few minutes...)

wait for deployment to complete

  1. Once your deployment is done, browse your new instance!

deployment is done

  1. Click on public domain link above and start your first DevOps assessment!

login-and-configure

Detailed Instructions using GCP (Cloud Run)

  1. Login to Google Cloud Platform Cloud Run

create service in GCP cloud run

  1. Click on Create Service and fill in the service details:
  • Container Image URL: devopsshield/devopsshield
  • Service Name: e.g. devopsshield-gcp-demo-1
  • Region

fill in service details

  1. Add Authorization info, port information as well as (optionally) some health checks

add auth and port info

  1. You may need to increase Memory Limit!

increase memory limit if container crashes

You can always check your resource usage in the metrics

check resource usage

  1. Now click on create

click on create

  1. Wait for deployment to finish, then click on URL

wait for deployment then navigate to URL

  1. Browse the DevOps Shield Site then do your first login!

do the first login

DevOps Assessments

Once an assessment has been done, you can view a full history of all assessments done by clicking on DevOps Assessments click on DevOps Assessments Clicking on any individual assessment, we see: sample assessment details Clicking on View & Export Reports: view and export reports Scroll Down to see the full report including: DevOps Security Overview, DevOps Governance and Compliance, DevOps Inventory devops governance and compliance devops inventory Please note that the Community Edition is limited to seeing up to 10 Azure DevOps Resources in these Assessment Reports limit of up to 10 resources in community edition

You can currently export to JSON or CSV the following reports:

  • Security Governance

  • Resource Inventory

  • Security Permissions

Tag summary

Content type

Image

Digest

sha256:c5b615b9d

Size

218.3 MB

Last updated

3 days ago

docker pull devopsshield/devopsshield:latest-nanoserver-ltsc2022