Skip to content

Commit 3a7db1e

Browse files
authored
Additional Finding Info protos for what the data-enricher returns to be used as annotations (#711)
1 parent 7f782f7 commit 3a7db1e

File tree

5 files changed

+366
-42
lines changed

5 files changed

+366
-42
lines changed

proto/ocsf/ocsf_ext/finding_info/v1/finding_info.proto

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,29 @@ message DataSource {
4747
PurlFindingLocationData purl_finding_location_data = 4;
4848
}
4949
}
50+
51+
52+
// annotations created by the DataEnricher
53+
message Enrichment {
54+
enum EnrichmentType {
55+
ENRICHMENT_TYPE_UNSPECIFIED = 0;
56+
ENRICHMENT_TYPE_CORRELATION = 1;
57+
ENRICHMENT_TYPE_DUPLICATION = 2;
58+
}
59+
60+
// if it has this enrichment at all, the finding is a duplicate
61+
message DuplicateEnrichment {
62+
}
63+
64+
// a list of finding ids, of the other findings it has been correlated to
65+
message CorrelationEnrichment {
66+
repeated string findings = 1;
67+
}
68+
69+
EnrichmentType enrichment_type = 1;
70+
71+
oneof enrichment {
72+
DuplicateEnrichment duplicate = 2;
73+
CorrelationEnrichment correlations = 3;
74+
}
75+
}

sdk/gen/findings_service/v1/findings_service.pb.go

Lines changed: 3 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/gen/findings_service/v1/findings_service_grpc.pb.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)