Ruby GraphQL target with HawkScan integration
Build and test a Ruby-based GraphQL server with HawkScan. GraphQL listens on 3000
by default.
To build, run and scan the app with HawkScan:
# run_hawkscan.sh
Works with either docker-compose or docker cli.
To build stackhawk/vuln-graphql-ruby
:
# docker-compose build
...or
# docker build -t stackhawk/vuln-graphql-api .
To start gql-ruby
:
# docker-compose up
...or
# docker run --name gql-ruby --rm -ti -p 3000:3000 stackhawk/vuln-graphql-ruby
Once the gql-ruby
container is up:
# source ./AUTH_TOKEN && \
docker run -e APP_HOST=http://127.0.0.1:3000 \
--rm \
-v $(pwd):/hawk:rw \
-ti \
--name hawkscan \
stackhawk/hawkscan:latest example-stackhawk-config.yml