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

[Marketplace Contribution] ExtraHop Reveal(x) - Content Pack Update #27760

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Packs/ExtraHop/Integrations/ExtraHop_v2/ExtraHop_v2.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401

import json
import traceback
from collections import defaultdict
Expand All @@ -7,7 +10,6 @@

import urllib3

from CommonServerPython import *

# Disable insecure warnings
urllib3.disable_warnings()
Expand Down Expand Up @@ -69,6 +71,13 @@
"3": "acknowledged" # archived
}

TICKET_SEVERITY = {
"0-39": 1, # low
"40-69": 2, # medium
"70-89": 3, # high
"90-100": 4 # critical
}

VALID_ALERT_RULE_REFIRE_INTERVALS = ["300", "600", "900", "1800", "3600", "7200", "14400"]

VALID_ALERT_RULE_TYPE = ["threshold", "detection"]
Expand Down Expand Up @@ -1446,6 +1455,8 @@ def fetch_extrahop_detections(client: ExtraHopClient, advanced_filter: Dict, las
'name': str(detection.get("type", "")),
'occurred': datetime.utcfromtimestamp(detection['start_time'] / 1000).strftime(
DATE_FORMAT),
'severity': next((severity for range_str, severity in TICKET_SEVERITY.items() if
detection.get("risk_score") in range(*map(int, range_str.split("-")))), None),
'rawJSON': json.dumps(detection)
}
incidents.append(incident)
Expand Down
2 changes: 1 addition & 1 deletion Packs/ExtraHop/Integrations/ExtraHop_v2/ExtraHop_v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5473,7 +5473,7 @@ script:
description: Use extrahop-packets-search instead. Search for specific packets in Reveal(x).
execution: false
name: extrahop-search-packets
dockerimage: demisto/python3:3.10.11.61265
dockerimage: demisto/python3:3.10.12.63474
feed: false
isfetch: true
longRunning: false
Expand Down
6 changes: 6 additions & 0 deletions Packs/ExtraHop/ReleaseNotes/2_2_0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### ExtraHop Reveal(x)
- Updated the Docker image to: *demisto/python3:3.10.12.63474*.
- Updated ***fetch_incidents*** to incorporate severity from detection risk score.
2 changes: 1 addition & 1 deletion Packs/ExtraHop/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ExtraHop Reveal(x)",
"description": "Network detection and response. Complete visibility of network communications at enterprise scale, real-time threat detections backed by machine learning, and guided investigation workflows that simplify response.",
"support": "partner",
"currentVersion": "2.1.1",
"currentVersion": "2.2.0",
"author": "ExtraHop",
"url": "",
"email": "[email protected]",
Expand Down