Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Launch web application security scans using TagCube's REST API <https://www.tagcube.io>
_,
commonly used in continuous delivery scripts.
.. image:: https://circleci.com/gh/tagcubeio/tagcube-cli.png?circle-token=5317e457dceef210130d20e0452eff7abf1d195b :alt: Build Status :align: right :target: https://circleci.com/gh/tagcubeio/tagcube-cli
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:
/
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.
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
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.
$
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.
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.
A more detailed documentation which includes tutorials and example usages can
be found at TagCube's site <https://www.tagcube.io/docs/cli/>
_
Report your issues and feature requests in tagcube-cli's issue tracker <https://github.com/tagcubeio/tagcube-cli/issues>
_ and we'll
be more than glad to fix them.
Pull requests are more than welcome!
FAQs
CLI to launch web application security scans usingTagCube's REST API
We found that tagcube-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.