Create Finding
Create a user-authored custom finding.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.
Body
The CreateFindingRequest message.
This message contains a oneof named target. Only a single field of the following list may be set at a time:
- identityUserTarget
- appUserTarget
- decoyTarget
- appResourceTarget
- connectorTarget
- tenantTarget
Arbitrary metadata attached to the finding; filterable by routing rules.
AppResourceTarget points at the app resource the finding is about.
The AppUserTarget message.
ConnectorTarget points at the connector that produced this finding.
User-supplied sub-classification (e.g. "shadow_it"). Part of the dedup identity and filterable via FindingSearch.
DecoyTarget points at the planted decoy that produced this finding. Populated for findings whose subject is the decoy artifact itself (e.g. decoy_credential_used), giving the UI and routing rules a uniform handle to the decoy alongside the finding_type payload.
Caller-supplied dedup identity. The fingerprint is a domain-separated SHA-256 over ("custom", custom_sub_type, dedup_key_parts...) — see pkg/uhash; parts cannot collide regardless of their byte content. Two creates with the same parts collapse onto one finding. Must be non-empty and every part must be non-empty.
Optional finding body (markdown by convention).
The IdentityUserTarget message.
Optional remediation guidance, used as the body of any task created from this finding.
Severity of the finding. Must be a defined, non-unspecified value.
FINDING_SEVERITY_UNSPECIFIED, FINDING_SEVERITY_INFO, FINDING_SEVERITY_LOW, FINDING_SEVERITY_MEDIUM, FINDING_SEVERITY_HIGH, FINDING_SEVERITY_CRITICAL TenantTarget scopes a finding to the whole tenant. It carries no subject id; the finding's tenant is the scope.
Response
Successful response
The CreateFindingResponse message.
The Finding message.
This message contains a oneof named finding_type. Only a single field of the following list may be set at a time:
- similarUsernameMatch
- serviceAccountMisclassification
- nhiUnowned
- serviceAccountUnowned
- decoyCredentialUsed
- custom
- connectorAnomalyDetectionDisabled
This message contains a oneof named target. Only a single field of the following list may be set at a time:
- identityUserTarget
- appUserTarget
- decoyTarget
- appResourceTarget
- tenantTarget
- connectorTarget
This message contains a oneof named evidence. Only a single field of the following list may be set at a time:
- similarUsernameMatchEvidence
- serviceAccountMisclassificationEvidence