Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@brightsec/cli

Package Overview
Dependencies
Maintainers
0
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brightsec/cli

Bright CLI is a CLI tool that can initialize, stop, polling and maintain scans in Bright solutions.

  • 12.6.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

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.

Keywords

FAQs

Package last updated on 04 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc