Skip to content
bright-cli / 12.5.0

bright-cli 12.5.0

Install from the command line:
Learn more about npm packages
$ npm install @neuralegion/bright-cli@12.5.0
Install via package.json:
"@neuralegion/bright-cli": "12.5.0"

About this version

Bright CLI

Bright is a powerful dynamic application & API security testing (DAST) platform. With its effective automation and integration capabilities, Bright allows developers to scan multiple targets, uncover security vulnerabilities without false positives, get detailed reports on every finding, and quickly fix security issues by following the remediation guidelines.

The NPM allows you to install the Bright Command Line Interface (CLI) on your machine. You can use the Bright CLI to run and manage security scans directly from your development environment. In addition, the container includes a preconfigured Repeater (scan proxy), which enables you to scan local targets securely, without exposing them to the Internet.

Features:
  • Easy control of the Bright REST API.
  • Repeater mode, which allows the Bright cloud engine to connect to local targets securely, pulling all scan requests as outbound traffic, without exposing the targets to the Internet.
  • Flexible proxy configuration, which allows you to control the CLI requests both internally and externally.
  • Connector to on-premises (local) ticketing services. For example, you can enable the Bright integration with on-premises Jira, for tickets to be automatically opened for each security vulnerability detected.
  • Integration of Bright with your CI pipelines. Please see our guide on integrating Bright with CI pipelines for more information.
  • Running commands from a configuration file. You can run the CLI commands from your console or save them as a JSON, XML, YML, or JavaScript file. Running the CLI from a pre-configured file will simplify further scanning.

πŸ”Ž Table of Contents

πŸš€ Quick Start

Before you can use Bright CLI make sure you have the following:

  • An active user in the Bright app
  • You have Docker installed on your machine.
  • You have a valid organization API key or a personal API key with the following scopes: bot, scans:run and scans:read. You can watch video about creating API keys.
  • You have registered (created) a Repeater in the Bright app and copied the generated Repeater ID. For the instructions on how to register a Repeater, see here.
  • You have copied the Bright Project ID under which you want to run a scan. A Project ID is required. If you do not have any custom projects, use the Default Project ID.

1. Install Bright CLI globally

npm install @brightsec/cli -g

You can make sure the installation worked by executing the following command:

bright-cli --version

It should return the latest Bright CLI version.

2. Activate the Repeater

bright-cli repeater \
  --token {TOKEN} \
  --id {ID}

3. Start a new scan with a Crawler

bright-cli scan:run \
  --token {TOKEN} \
  --repeater {ID} \
  --name "Bright scan" \
  --crawler {TARGET_URL} \
  --project {PROJECT_ID}  \ #If you do not have any custom projects, specify the Default Project ID.
  --smart

This command will initialize a new scan engine on the cloud, which will start scanning the target in the Repeater mode.

We recommend that you use the --smart option to optimize the scan coverage and time. This enables you to use automatic smart decisions, such as parameter skipping, detection phases and so on.

4. Check out the scan results

You can follow the scan status in the Bright app or by using the Bright CLI polling command.

πŸ“š Full Documentation

The Bright CLI can do so much more! You can find a full guide with the usage examples in the Bright docs.

πŸ“ License

Copyright Β© 2023 Bright Security Inc.

This project is licensed under the MIT License - see the LICENSE file for details.

Details


Assets

  • bright-cli-12.5.0.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0