Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wiz (new) #169

Draft
wants to merge 22 commits into
base: dev
Choose a base branch
from
Draft

wiz (new) #169

wants to merge 22 commits into from

Conversation

vtalas
Copy link
Contributor

@vtalas vtalas commented Aug 28, 2024

Rationale

Implement "External Enrichment" flow (https://win.wiz.io/docs/third-party-security-graph-enrichment-tutorial#upload-the-file-to-the-presigned-aws-s3-bucket-url)

OAuth app admin:

Create/Edit OAuth App
https://app.wiz.io/settings/service-accounts
image

Base URL:

set the app url to backoffice under the appmixer:wiz:
image

Required Scopes:

  • Resources

    • Read graph resource read:resources
    • Update graph resource update:resources
  • Security Scans

    • Upload new security scan create:security_scans
  • System Activities

    • Read system activities read:system_activities

Examples:

FindCloudResources - https://win.wiz.io/reference/pull-cloud-resources

{
    "type": [
        "VIRTUAL_MACHINE"
    ],
    "updatedAt": {
        "after": "2023-06-14T14:07:06Z"
    }
}
{
      "search": "seach string"
}

UploadSecurityScan
steps:

  1. request upload (https://win.wiz.io/docs/third-party-security-graph-enrichment-tutorial#request-to-upload-a-file-to-wiz)
  2. upload vulnerability document matching the schema: https://win.wiz.io/docs/vuln-scan-schema
  3. get Security Finding enrichment status (https://win.wiz.io/reference/get-file-upload-id-status) Polling the endpoint until the status is not IN_PROGESS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant