Skip to main content

TagCube’s CLI tool

Launch web application security scans using TagCube’s REST API, commonly used in continuous delivery scripts.

Build Status

Usage

The easiest way to start a new scan is to call tagcube with the target URL as parameter:

$ export TAGCUBE_EMAIL=user@example.com
$ export TAGCUBE_API_KEY=`cat key.txt`
$ tagcube scan --root-url http://domain.com
Web application scan for "http://domain.com/" successfully started at TagCube cloud.

This will create the new domain resource in TagCube’s REST API and start a new scan using these defaults:

  • Bootstrap paths: /

  • Web application scan profile: full_audit

When the scan has finished an email will be sent to the user’s email address.

Important: depending on TagCube’s license quotas and privileges you might need to use the REST API or Web application to create and verify the ownership of the target domain before running the first scan against it.

Advanced usage

Run a scan to http://target.com/, notify the REST API username email address when it finishes

$ tagcube scan --root-urls http://target.com

Run a scan with a custom profile, enabling verbose mode and notifying a different email address when the scan finishes

$ tagcube scan --root-urls http://target.com --email-notify=other@example.com \
               --scan-profile=fast_scan -v

Provide TagCube’s REST API credentials as command line arguments. Read the documentation to find how to provide REST API credentials using environment variables or the .tagcube file

$ tagcube scan --root-urls http://target.com  --tagcube-email=user@example.com \
               --tagcube-api-key=...

Verify that the configured credentials are working

$ tagcube auth

Configuration file

It is always a good idea to avoid hardcoded credentials in source code and deploy scripts. This tool can get the credentials from a YAML file in the current directory or the user’s home. The filename should be named .tagcube and have the following format:

credentials:
    email: ...
    api_key: ...

Once the file is in place, the tool can be run:

$ tagcube auth
Successfully authenticated against TagCube's API.
$

Configuration through environment variables

Another way to provide tagcube-cli with the REST API credentials is to set the TAGCUBE_EMAIL and TAGCUBE_API_KEY environment variables. These are convenient to avoid hard-coding credentials in scripts or source code.

Integration with continuous delivery

Adding security to your continuous delivery process is trivial using TagCube, we recommend adding these two lines after the code is pushed to the servers:

pip install --upgrade tagcube-cli
tagcube scan --root-url http://target.com

While in most cases its recommend to be specific about the version of any external package installed using pip, we recommend a more relaxed installation process for tagcube-cli which allows us to frequently push upgrades to our customers.

More info

A more detailed documentation which includes tutorials and example usages can be found at TagCube’s site

Reporting bugs

Report your issues and feature requests in tagcube-cli’s issue tracker and we’ll be more than glad to fix them.

Pull requests are more than welcome!

Release files for tagcube-cli 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tagcube-cli 1.0.7
File Size Uploaded
tagcube-cli-1.0.7.tar.gz 17.7 kB Details

Release files / tagcube-cli-1.0.7.tar.gz

Download URL tagcube-cli-1.0.7.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b8bef73b7094caf4281886ba478c31121bccb1dc21365fd91352bda42626f34d
BLAKE2b-256 checksum
How to use checksums
4b16be7dc21f634d2d3c33a3f79ae97a75bff6017aec00a6d41abca586c907bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.7 This release

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page