-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11118 from FortiNDR-Integration/FortiNDR-Cloud-Se…
…ntinel-add-new-fields-for-detections FortiNDR Cloud Sentinel add new fields for detections
- Loading branch information
Showing
13 changed files
with
197 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1.28 MB
(100%)
Solutions/Fortinet FortiNDR Cloud/Data Connectors/fortinetFortiNdrCloudDataConn.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...ns/Fortinet FortiNDR Cloud/Data Connectors/fortinetFortiNdrCloudDataConn/FncRestClient.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
from fnc.api import FncRestClient | ||
from fnc.errors import ErrorMessages, ErrorType, FncClientError | ||
import requests | ||
|
||
class FncSentinelRestClient(FncRestClient): | ||
def validate_request(self, req_args: dict): | ||
if not req_args or 'url' not in req_args: | ||
raise FncClientError( | ||
error_type=ErrorType.REQUEST_VALIDATION_ERROR, | ||
error_message=ErrorMessages.REQUEST_URL_NOT_PROVIDED | ||
) | ||
|
||
if 'method' not in req_args: | ||
raise FncClientError( | ||
error_type=ErrorType.REQUEST_VALIDATION_ERROR, | ||
error_message=ErrorMessages.REQUEST_METHOD_NOT_PROVIDED | ||
) | ||
|
||
def send_request(self, req_args: dict = None): | ||
url = req_args['url'] | ||
method = req_args['method'] | ||
headers = req_args.get('headers', {}) | ||
timeout = req_args.get('timeout', 70) | ||
verify = req_args.get('verify', True) | ||
parameters = req_args.get('params', {}) | ||
json = req_args.get('json', None) | ||
data = req_args.get('data', None) | ||
payload = json or data | ||
response = requests.request(method, url, headers=headers, timeout=timeout, params=parameters, json=payload, verify=verify) | ||
return response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
16 changes: 8 additions & 8 deletions
16
Solutions/Fortinet FortiNDR Cloud/Package/mainTemplate.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
| **Version** | **Date Modified (DD-MM-YYYY)** | **Change History** | | ||
|-------------|--------------------------------|---------------------------------------------| | ||
| 3.0.1 | 31-05-2024 | Replace Metastream with FortiNDR Cloud API | | ||
| 3.0.0 | 29-02-2024 | Initial Solution Release | | ||
| **Version** | **Date Modified (DD-MM-YYYY)** | **Change History** | | ||
|-------------|--------------------------------|-------------------------------------------------------| | ||
| 3.0.2 | 30-09-2024 | Show mitre attack ids and link to detection rule page | | ||
| 3.0.1 | 31-05-2024 | Replace Metastream with FortiNDR Cloud API | | ||
| 3.0.0 | 29-02-2024 | Initial Solution Release | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters