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

Added Darktrace UDI connector. #896

Merged
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
a13adc3
Added Darktrace UDI connector.
lakshmi51974368 Apr 12, 2022
d2eb07b
darktrace - mock responses added to test service unavailable functions
lakshmi51974368 Apr 13, 2022
21cde04
file renamed test_darktrace to test_darktrace_transmission
lakshmi51974368 Apr 13, 2022
0060353
transmission test file added.
lakshmi51974368 Apr 13, 2022
2c9d729
Updated test_darktrace.py
lakshmi51974368 Apr 13, 2022
e718c0a
Update test_darktrace.py
lakshmi51974368 Apr 13, 2022
63254d8
fixing the code coverage issue
lakshmi51974368 Apr 13, 2022
f899bbc
Fixing the code coverage issue
lakshmi51974368 Apr 13, 2022
cf558c9
Fixed the code coverage issue
lakshmi51974368 Apr 13, 2022
0c01b42
Merge branch 'opencybersecurityalliance:develop' into darktrace_v1
lakshmi51974368 Apr 21, 2022
39568d1
Updated the mappings as per Sentinelone review comments.
lakshmi51974368 Apr 21, 2022
fe9bf74
Revert "Updated the mappings as per Sentinelone review comments."
lakshmi51974368 Apr 25, 2022
4b145be
Review comments addressed from sentinelone.
lakshmi51974368 Apr 25, 2022
79b6551
fixing the code coverage issue.
lakshmi51974368 Apr 25, 2022
207e512
fixing the code coverage issue.
lakshmi51974368 Apr 26, 2022
3711706
Merge branch 'opencybersecurityalliance:develop' into darktrace_v1
lakshmi51974368 Apr 28, 2022
b3db3fe
from_stix mappings updated based on sentinelone review comments.
lakshmi51974368 Apr 28, 2022
04c9b50
Merge branch 'develop' into darktrace_v1
mdazam1942 Apr 29, 2022
d7fef75
PR comments fixed.
lakshmi51974368 May 3, 2022
de2fc14
Merge branch 'develop' into darktrace_v1
mdazam1942 May 3, 2022
e500401
Merge branch 'develop' into darktrace_v1
mdazam1942 May 5, 2022
e3f9d32
PR comments fixed. Unwanted parentheses removed and mapping updated.
lakshmi51974368 May 9, 2022
d210d9b
Merge branch 'develop' into darktrace_v1
mdazam1942 May 9, 2022
75a9628
Merge branch 'develop' into darktrace_v1
delliott90 May 12, 2022
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
867 changes: 867 additions & 0 deletions stix_shifter_modules/darktrace/README.md

Large diffs are not rendered by default.

Empty file.
32 changes: 32 additions & 0 deletions stix_shifter_modules/darktrace/configuration/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"connection": {
"type": {
"displayName": "Darktrace"
},
"host": {
"type": "text",
"regex": "^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\\-]*[A-Za-z0-9])$"
},
"help": {
"type": "link",
"default": "data-sources.html"
},
"options": {
"type": "fields",
"result_limit": {
"max": 10000
}
mdazam1942 marked this conversation as resolved.
Show resolved Hide resolved
}
},
"configuration": {
"auth": {
"type" : "fields",
"private_token": {
"type": "password"
},
"public_token": {
"type": "password"
}
}
}
}
24 changes: 24 additions & 0 deletions stix_shifter_modules/darktrace/configuration/lang_en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"connection": {
"host": {
"label": "Management IP address or Hostname",
"description": "Specify the IP address or hostname of the data source so that IBM Cloud Pak for Security can communicate with it"
},
"help": {
"label": "Need additional help?",
"description": "More details on the data source setting can be found in the specified link"
}
},
"configuration": {
"auth": {
"private_token": {
"label": "Private Token",
"description": "Private tokens are used in token-based authentication to access an API."
},
"public_token": {
"label": "Public Token",
"description": "Public tokens are used in token-based authentication to access an API."
}
}
}
}
13 changes: 13 additions & 0 deletions stix_shifter_modules/darktrace/entry_point.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from stix_shifter_utils.utils.base_entry_point import BaseEntryPoint


class EntryPoint(BaseEntryPoint):

# python main.py translate darktrace query '{}' "[ipv4-addr:value = '127.0.0.1']"

def __init__(self, connection={}, configuration={}, options={}):
super().__init__(connection, configuration, options)
self.set_async(False)
if connection:
self.setup_transmission_basic(connection, configuration)
self.setup_translation_simple(dialect_default='default')
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"DT_Protocols": ["conn", "ssl", "ssh", "http", "ftp", "dns", "smtp", "ldap", "dhcp", "rdp", "pop3", "x509", "files_identified", "software", "device_details"],
"DT_NetworkTraffic": ["epochdate", "uid", "id_hUUID", "source_ip", "dest_ip", "source_port", "dest_port", "proto"],
"int_supported_fields": [
"source_port","src_p","dest_port","dst_p","pkts_recv","orig_pkts",
"pkts_dropped","resp_pkts","orig_bytes","orig_ip_bytes","megabytes_recv","resp_bytes",
"resp_ip_bytes","total_bytes","file_msg", "read_size", "write_size","dcc_file_size","certificate_version",
"auth_attempts","status_code","data_channel_resp_p","epochdate","certificate_exponent","response_body_len",
"reply_code","data_channel_resp_p","TTLs","unprocessed_TTLs","encryption_level","certificate_not_valid_before","certificate_not_valid_after",
"certificate_key_length","certificate_exponent","total_client_ciphers","orig_ttl","resp_ttl","trans_depth",
"request_body_len","cert_count","seen_bytes","basic_constraints_path_len","start_ts","oss_start_ts", "trans_id","a_load",
"unprocessed_payload_size","file_ident_ports","duration","missed_bytes_orig", "missed_bytes_resp",
"orig_percent_invalid_checksum","resp_percent_invalid_checksum", "info_code","oss_ts","flash_version",
"version_major","version_minor","version_minor3","lease_time","orig_fuids", "resp_fuids"
],
"mac_supported_fields": [
"mac"
],
"boolean_supported_fields": ["rejected","tls","password_seen","local_orig","local_resp","resumed",
"established","client_hello_seen","basic_constraints_ca"]
}
Loading