WIZ
Export Vulnerability to WIZ on Vuln Created

The purpose of this example is to export a vulnerability to WIZ when a vulnerability is created.
This example Flow can be downloaded from our Flows GitHub Repository and imported into your AttackForge.
Initial Set Up
Event: Vuln Created
Secrets:
af_hostname - for example "demo.attackforge.com"
af_key - your AttackForge user API key
logging_level - set to "debug" if additional logging is required
wiz_api_host - for example "api.us17.app.wiz.io"
wiz_client_id - your WIZ Client Id
wiz_client_secret - your WIZ Client Secret
wiz_integration_id - your WIZ Intgration Id
Action 1 - Validate Readiness for Export
Script:
Action 2 - Build WIZ Payload
Script:
Action 3 - Get WIZ Access Token
Method: POST
URL: https://auth.app.wiz.io/oauth/token
Headers:
Key = Content-Type; Type = Value; Value = application/x-www-form-urlencoded
Request Script:
Response Script:
Action 4 - Request WIZ Upload URL
Method: POST
URL: https://{{wiz_api_host}}/graphql
Headers:
Key = Content-Type; Type = Value; Value = application/json
Request Script:
Response Script:
Action 5 - Upload Scan to WIZ S3 Bucket
Method: PUT
URL: https://{{preSignedUrl}}
Headers:
Key = Content-Type; Type = Value; Value = application/json
Request Script:
Response Script:
Action 6 - Check WIZ Upload Status
Method: POST
URL: https://{{wiz_api_host}}/graphql
Headers:
Key = Content-Type; Type = Value; Value = application/json
Key = Accept; Type = Value; Value = application/json
Request Script:
Response Script:
Action 7 - Update Vuln - Mark Vuln as Exported to WIZ
Method: PUT
URL: https://{{af-tenant}}/api/ss/vulnerability/{id}
Headers:
Key = Content-Type; Type = Value; Value = application/json
Key = X-SSAPI-KEY; Type = Secret; Value = af_auth
Request Script:
Response Script:
Export Vulnerability to WIZ on Vuln Updated

The purpose of this example is to export a vulnerability to WIZ when a vulnerability is updated, if it has not yet been exported to WIZ.
This example Flow can be downloaded from our Flows GitHub Repository and imported into your AttackForge.
Initial Set Up
Event: Vuln Updated
Secrets:
af_hostname - for example "demo.attackforge.com"
af_key - your AttackForge user API key
logging_level - set to "debug" if additional logging is required
wiz_api_host - for example "api.us17.app.wiz.io"
wiz_client_id - your WIZ Client Id
wiz_client_secret - your WIZ Client Secret
wiz_integration_id - your WIZ Intgration Id
Action 1 - Validate Readiness for Export
Script:
Action 2 - Build WIZ Payload
Script:
Action 3 - Get WIZ Access Token
Method: POST
URL: https://auth.app.wiz.io/oauth/token
Headers:
Key = Content-Type; Type = Value; Value = application/x-www-form-urlencoded
Request Script:
Response Script:
Action 4 - Request WIZ Upload URL
Method: POST
URL: https://{{wiz_api_host}}/graphql
Headers:
Key = Content-Type; Type = Value; Value = application/json
Request Script:
Response Script:
Action 5 - Upload Scan to WIZ S3 Bucket
Method: PUT
URL: https://{{preSignedUrl}}
Headers:
Key = Content-Type; Type = Value; Value = application/json
Request Script:
Response Script:
Action 6 - Check WIZ Upload Status
Method: POST
URL: https://{{wiz_api_host}}/graphql
Headers:
Key = Content-Type; Type = Value; Value = application/json
Key = Accept; Type = Value; Value = application/json
Request Script:
Response Script:
Action 7 - Update Vuln - Mark Vuln as Exported to WIZ
Method: PUT
URL: https://{{af-tenant}}/api/ss/vulnerability/{id}
Headers:
Key = Content-Type; Type = Value; Value = application/json
Key = X-SSAPI-KEY; Type = Secret; Value = af_auth
Request Script:
Response Script:
Last updated