Skip to main content

No project description provided

Project description

snyk-threadfix

This tool allows you to generate .threadfix file data from Snyk project data. It outputs JSON data in the ThreadFix file format - both printing to standard out and also allowing you to specify an output filename.

It does not upload directly to ThreadFix at this time. However:

  1. We will likely do that in the future given sufficient demand
  2. There is a ThreadFix API endpoint that you can use for this: ThreadFix Upload Scan API

Installation

pip install snyk-threadfix

Configuration

You must first obtain a Snyk API token from your Snyk account. Once you have a token you must either install the Snyk CLI and run snyk auth <your-token> or simply run:

export SNYK_TOKEN=<your-token> 

Usage

You must first identify your Snyk org ID. This is easy - simply log into your Snyk account, click on Settings, and find your Organization ID there. If you have multiple orgs in your Snyk account, make sure to first choose the one you want. Snyk Project ID

You must also identify the Snyk project ID's for which you would like to generate ThreadFix data. You can do this using the Snyk API, for example, using the List all projects endpoint. See also the pysnyk SDK. Another way of identifying the project IDs you want to use is simply by browsing to the desired project(s) with the Snyk UI and grabbing the UUID from the address bar of your browser.

Snyk Project ID

Once you have a project ID or list of project IDs that you would like to generate a threadfix file for, run the following:

For a single project ID:

snyk-threadfix --orgId=<your-snyk-org-id> --projectIds=<snyk-project-id>

For multiple IDs:

snyk-threadfix --orgId=<your-snyk-org-id> --projectIds=<snyk-project-id-0>,<snyk-project-id-1>,<snyk-project-id-2>,...

ThreadFix JSON data will be output to standard out. If you would like to save the JSON to a file you can either pipe it to a file or use the --output parameter, for example:

snyk-threadfix --output=<your-desired-output-filename>.threadfix --orgId=<your-snyk-org-id> --projectIds=<snyk-project-id>

Additional input parameters are available:

snyk-threadfix main.py --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snyk-threadfix-0.0.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snyk_threadfix-0.0.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file snyk-threadfix-0.0.1.tar.gz.

File metadata

  • Download URL: snyk-threadfix-0.0.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0b1 CPython/3.7.4 Darwin/18.2.0

File hashes

Hashes for snyk-threadfix-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3606409eea4fe5d772b87484c19265738f81f73009eec7d45e881c8941c13ba5
MD5 7fe766545570c592b514bfb92470a12b
BLAKE2b-256 a6c9e89f6fbd74403314edd6ac6ef2a31db49ffa76095cc8c0fb2e4a76e8229c

See more details on using hashes here.

File details

Details for the file snyk_threadfix-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: snyk_threadfix-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0b1 CPython/3.7.4 Darwin/18.2.0

File hashes

Hashes for snyk_threadfix-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c5050dbf333ac5f9072bb8c5683d8fb20394dc8c57690581d95436370022669b
MD5 7b05f1a1b8548e68ae4ffd5f64bcebb0
BLAKE2b-256 b11c27adc6013fe48a43e76e3b91569d44c6fe9c0c59259a05f30f34da1d94f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page