Skip to content

Commit

Permalink
Reverted certainty_score field changes
Browse files Browse the repository at this point in the history
Reverted certainty_score field changes
  • Loading branch information
thangaraj-ramesh committed Oct 10, 2023
1 parent 3abd4a9 commit fed4279
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,16 @@
}
],
"certainty": [
{
"key": "x-ibm-finding.confidence",
"object": "detection"
},
{
"key": "x-ibm-ttp-tagging.confidence",
"object": "ttp_finding",
"transformer": "ConvertToReal"
}
],
"certainty_score": [
{
"key": "x-ibm-finding.confidence",
"object": "detection"
}
],
"first_timestamp": [
{
"key": "x-ibm-finding.start",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,16 @@
}
],
"certainty": [
{
"key": "x-ibm-finding.confidence",
"object": "detection"
},
{
"key": "x-ibm-ttp-tagging.confidence",
"object": "ttp_finding",
"transformer": "ConvertToReal"
}
],
"certainty_score": [
{
"key": "x-ibm-finding.confidence",
"object": "detection"
}
],
"first_timestamp": [
{
"key": "x-ibm-finding.start",
Expand Down
4 changes: 0 additions & 4 deletions stix_shifter_modules/vectra/stix_transmission/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,6 @@ def get_results_data(self, response_dict):

detection_type = record.get('detection_type', '')

# adding new field for confidence field mapping
if 'certainty' in record:
record['certainty_score'] = record['certainty']

# if x-ibm-finding object event_count is not available, setting the default value to 1.
# if default value is not set, CP4S inserts NaN value for event_count which causes rendering issue in UI.
if record.get('summary') and \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
'src_ip': '11.111.11.111',
'state': 'inactive',
'certainty': 0,
'certainty_score': 1,
'threat': 1,
'threat': 0,
'created_timestamp': '2022-12-22T07:43:52Z',
'first_timestamp': '2022-12-22T07:33:38Z',
'last_timestamp': '2022-12-27T06:44:32Z',
Expand Down

0 comments on commit fed4279

Please sign in to comment.