12.6.0 • Published 24 days ago

@brightsec/cli v12.6.0

Weekly downloads
-
License
MIT
Repository
github
Last release
24 days ago

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.

12.7.0-next.1

24 days ago

12.6.0

2 months ago

12.6.0-next.1

2 months ago

12.5.0-next.2

2 months ago

12.5.0-next.1

3 months ago

12.5.0

2 months ago

12.0.1-next.5

4 months ago

12.0.1-next.4

4 months ago

12.2.0-next.2

4 months ago

12.2.0-next.1

4 months ago

12.4.0

3 months ago

12.4.0-next.1

3 months ago

12.0.0

5 months ago

12.0.1

4 months ago

12.3.0

3 months ago

11.5.4

5 months ago

12.3.0-next.2

3 months ago

12.3.0-next.3

3 months ago

12.3.0-next.1

3 months ago

12.0.0-next.12

5 months ago

12.2.1

3 months ago

12.1.0-next.1

4 months ago

12.0.0-next.10

5 months ago

12.1.0-next.2

4 months ago

12.0.0-next.11

5 months ago

12.2.0

4 months ago

12.0.0-next.9

5 months ago

12.0.0-next.7

6 months ago

12.0.0-next.8

6 months ago

12.1.0

4 months ago

12.0.2-next.1

4 months ago

12.0.1-next.1

5 months ago

12.0.1-next.3

4 months ago

12.0.1-next.2

5 months ago

12.0.0-next.6

6 months ago

12.0.0-next.5

7 months ago

12.0.0-next.3

7 months ago

12.0.0-next.4

7 months ago

11.5.2

7 months ago

11.5.3

7 months ago

11.5.2-next.2

7 months ago

12.0.0-next.1

7 months ago

12.0.0-next.2

7 months ago

11.5.1

7 months ago

11.5.2-next.1

7 months ago

11.5.1-next.1

7 months ago

11.5.0

8 months ago

11.5.0-next.4

9 months ago

11.5.0-next.3

9 months ago

11.5.0-next.2

9 months ago

11.5.0-next.1

9 months ago

11.4.1-next.1

10 months ago

11.4.0

12 months ago

11.2.0-next.5

1 year ago

11.0.0-next.27

1 year ago

11.2.0-next.4

1 year ago

11.0.0-next.26

1 year ago

11.0.0-next.25

1 year ago

11.0.0-next.24

1 year ago

10.1.0-next.1

1 year ago

11.0.0-next.23

1 year ago

11.0.0-next.22

1 year ago

11.0.0-next.21

1 year ago

11.0.0-next.20

1 year ago

10.2.0

1 year ago

10.2.0-next.6

1 year ago

10.2.0-next.5

1 year ago

10.2.0-next.4

1 year ago

10.2.0-next.3

1 year ago

11.1.0-next.1

1 year ago

11.1.0-next.2

1 year ago

11.0.0-next.16

1 year ago

11.0.0-next.15

1 year ago

11.0.0-next.14

1 year ago

11.0.0-next.13

1 year ago

11.3.0-next.1

1 year ago

11.0.0-next.12

1 year ago

11.0.0-next.11

1 year ago

11.0.0-next.10

1 year ago

11.0.0-next.1

1 year ago

10.2.0-next.2

1 year ago

11.0.0-next.19

1 year ago

10.2.0-next.1

1 year ago

11.0.0-next.18

1 year ago

11.0.0-next.17

1 year ago

11.2.0

1 year ago

11.0.0

1 year ago

10.1.0

1 year ago

10.3.0

1 year ago

10.3.1

1 year ago

11.0.0-next.7

1 year ago

11.0.0-next.8

1 year ago

11.0.0-next.9

1 year ago

11.0.0-alpha.1

1 year ago

11.0.0-next.2

1 year ago

11.4.0-next.1

1 year ago

11.0.0-alpha.2

1 year ago

11.0.0-next.3

1 year ago

11.0.0-alpha.3

1 year ago

11.0.0-next.4

1 year ago

11.0.0-next.5

1 year ago

11.2.1-next.1

1 year ago

11.2.0-next.1

1 year ago

10.1.0-next.2

1 year ago

11.3.0

1 year ago

11.2.1-next.2

1 year ago

10.1.0-next.3

1 year ago

11.2.0-next.3

1 year ago

10.1.0-next.4

1 year ago

11.2.0-next.2

1 year ago

11.1.0

1 year ago

10.0.1-next.2

1 year ago

10.0.1-next.1

1 year ago

10.0.1

1 year ago

10.0.0

1 year ago

10.0.0-next.4

2 years ago

10.0.0-next.3

2 years ago

10.0.0-next.2

2 years ago

10.0.0-next.1

2 years ago