-
Notifications
You must be signed in to change notification settings - Fork 232
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
Added Darktrace UDI connector. #896
Added Darktrace UDI connector. #896
Conversation
Added Darktrace UDI connector.
Codecov Report
@@ Coverage Diff @@
## develop #896 +/- ##
===========================================
+ Coverage 64.65% 64.70% +0.05%
===========================================
Files 506 517 +11
Lines 47017 48583 +1566
===========================================
+ Hits 30399 31437 +1038
- Misses 16618 17146 +528
Continue to review full report at Codecov.
|
darktrace - mock responses added to test service unavailable functions
file renamed test_darktrace to test_darktrace_transmission
transmission test file added.
Updated test_darktrace.py
Updated test_darktrace.py
fixing the code coverage issue
Fixing the code coverage issue
Fixed the code coverage issue
Updated the mappings as per Sentinelone review comments. Addressed minor operator(LIKE, MATCHES) related issues.
This reverts commit 39568d1.
Review comments addressed from sentinelone.
fixing the code coverage issue.
fixing the code coverage issue.
from_stix mappings updated based on sentinelone review comments. Added the custom fields in the extension.
PR comments fixed. 1. result_limit max value only present in config.json. 2. result_limit description removed form lang.json. 3. In connector.py removed the code, to remove the empty fields in response. 4. Removed delete_query_connection function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see some extra parentheses used in the translated queries. for example-
[file:name = 'some_file.exe' OR file:name = 'ttest']
Translates into -
((@fields.filename:\"ttest\") OR (@fields.filename:\"some_file.exe\")) AND (@fields.epochdate :>1651864110.097 AND @fields.epochdate :<1651864410.097))
Unless the api asks for those extra parentheses, I think you can optimize the use of parentheses ()
for example the above can be optimized into -
(@fields.filename:\"ttest\" OR @fields.filename:\"some_file.exe\") AND (@fields.epochdate :>1651864110.097 AND @fields.epochdate :<1651864410.097)
stix_shifter_modules/darktrace/stix_translation/json/to_stix_map.json
Outdated
Show resolved
Hide resolved
Unwanted parentheses removed. Mapping updated as per suggestion(SSL fields are mapped under x509-certificate).
Fixed the above the issue:
Current code change will give a below results. |
Added Darktrace UDI connector.