This extension/add-on allows you to view web accessible Threat Composer exports (.tc.json) with one click directly in your browser. The Threat Composer web-app is baked into the extension itself.
The extension supports the following integrations where a ‘View in Threat Composer’ button is added to the page:
- GitHub Code Browser
- Amazon Code Catalyst
- ‘View Raw’ anywhere online so long as the URL includes reference to
.tc.json(Note: on Firefox it does not work ongithubusercontent.comdue to thesandboxCSP directive)
- Clone this repo
- Run the main build script (
./scripts/build.sh) to build everything (including the browser extension)
For any other guidance see the Development section of the main README
- Open Chrome, then goto
chrome://extensions - Enable 'Developer mode'
- Click on 'Load unpacked'
- Point it at the
./.output/chrome-mv3directory and click Open
- Open Firefox, then goto
about:debugging - Click on 'This Firefox' then 'Load Temporary Add-on...'
- Point it at any file with the
./.output/firefox-mv2and click Open
- Go to the root of the extension package -
cd ./packages/threat-composer-app-browser-extension - Run
yarn run zip- look in./.output/for ZIP file - To load locally open Chrome, then goto
chrome://extensions, enable developer mode, then drag-and-drop the ZIP file onto the page to load.
- Go to the root of the extension package -
cd ./packages/threat-composer-app-browser-extension - Run
yarn run zip:firefox- look in./.output/for ZIP file
- Go to the root of the extension package -
cd ./packages/threat-composer-app-browser-extension - Run
yarn run dev - In your browser navigate to a hosted Threat Composer file on a supported integration - example1, example2 and example3
- Go to the root of the extension package -
cd ./packages/threat-composer-app-browser-extension - Run
yarn run dev:firefox - In your browser navigate to a hosted Threat Composer file on a supported integration - example1 and example2. Note: on Firefox it does not work on
githubusercontent.comdue to thesandboxCSP directive.