Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Latest commit

 

History

History
39 lines (28 loc) · 1.58 KB

README.md

File metadata and controls

39 lines (28 loc) · 1.58 KB

Scanning your application with StackHawk

For more information about StackHawk see https://www.stackhawk.com

TL;DR

  1. Create an application on the StackHawk Web platform.
  2. Clone this repo or copy the stackhawk-basic.yml or stackhawk-default.yml configuration file and place in the root of your project directory.

Configuration

HawkScan uses a YAML configuration file to supply operational settings to the scanner. To get started:

  • Place the appropriate stackhawk.yml file in the root of your project directory.
  • Udpate your applicationId and env with the values from the StackHawk Platform.
  • Update the host field with the url of your running web app (example: http://localhost:3000)

For more help configuring Hawkscan, see our Documentation.

Running the scanner

Bash

docker run --rm -v $(pwd):/hawk:rw -e API_KEY=hawk.xxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxx -t stackhawk/hawkscan:latest stackhawk-basic.yml

Windows CLI

docker run --rm -v %cd%:/hawk -e API_KEY=hawk.xxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxx -t stackhawk/hawkscan:latest stackhawk-basic.yml

PowerShell

docker run --rm -v ${PWD}:/hawk -e API_KEY=hawk.xxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxx -t stackhawk/hawkscan:latest stackhawk-basic.yml

Linux

docker run --rm -v $(pwd):/hawk:rw -network host -e API_KEY=hawk.xxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxx -t stackhawk/hawkscan:latest stackhawk-basic.yml