From 5c6b9a96efd349e1c98d30bcbc1d931470707dd8 Mon Sep 17 00:00:00 2001 From: Kylie Ebringer Date: Mon, 10 Jun 2024 14:22:42 -0600 Subject: [PATCH 01/13] Added Export Alert function and updated examples --- examples/platform/alerts_common_scenarios.py | 8 +- src/cbc_sdk/platform/alerts.py | 43 ++++++++++- .../unit/fixtures/platform/mock_alerts_v7.py | 58 ++++++++++++++ src/tests/unit/platform/test_alertsv7_api.py | 76 ++++++++++++++++++- 4 files changed, 181 insertions(+), 4 deletions(-) diff --git a/examples/platform/alerts_common_scenarios.py b/examples/platform/alerts_common_scenarios.py index 971cf599..6a9fd904 100644 --- a/examples/platform/alerts_common_scenarios.py +++ b/examples/platform/alerts_common_scenarios.py @@ -119,7 +119,7 @@ def main(): api = CBCloudAPI(profile="YOUR_PROFILE_HERE") # workflow is in a separate method. - alert_workflow(api) + # alert_workflow(api) # To start, get some alerts that have a few interesting criteria set for selection. # All the fields that can be used are on the Developer Network @@ -161,6 +161,12 @@ def main(): # Including, iterating through the results (for alert in alert_query: ...), first() and one() methods print("{} Alerts were returned".format(len(alert_query))) + # Up to 25,000 Alerts can also be exported to a CSV. This reuses the alert_query object set up for the search. + job = alert_query.export() + job.await_completion().result() + csv_report = job.get_output_as_string() + print(csv_report) + # Get a single alert to work with. This could be in an iterator alert = alert_query.first() # here's the ID of the alert. Use this to follow along in the console diff --git a/src/cbc_sdk/platform/alerts.py b/src/cbc_sdk/platform/alerts.py index 78c3dfe7..60b41597 100644 --- a/src/cbc_sdk/platform/alerts.py +++ b/src/cbc_sdk/platform/alerts.py @@ -1209,6 +1209,7 @@ def __init__(self, doc_class, cb): self._exclusions = {} self._time_exclusion_filters = {} self._sortcriteria = {} + self._export_fields = {} self._bulkupdate_url = "/api/alerts/v7/orgs/{0}/alerts/workflow" self._count_valid = False self._total_results = 0 @@ -1447,7 +1448,7 @@ def sort_by(self, key, direction="ASC"): self._sortcriteria = {"field": key, "order": direction} return self - def _build_request(self, from_row, max_rows, add_sort=True): + def _build_request(self, from_row, max_rows, add_sort=True, add_rows=True): """ Creates the request body for an API call. @@ -1470,7 +1471,8 @@ def _build_request(self, from_row, max_rows, add_sort=True): if query: request["query"] = query - request["rows"] = self._batch_size + if add_rows: + request["rows"] = self._batch_size if self._time_range != {}: request["time_range"] = self._time_range if from_row > 1: @@ -1794,6 +1796,43 @@ def set_group_by(self, field): return grouped_alert_search_query + def export(self): + """ + Starts the process of exporting Alerts from the organization in CSV format. + + Example: + >>> cb.select(Alert).add_criteria("type", ["CB_ANALYTIC", "WATCHLIST"]).export() + + Required Permissions: + org.alerts (READ) + + Returns: + Job: The asynchronous job that will provide the export output when the server has prepared it. + """ + request = self._build_request(0, -1, add_rows=False) + request["format"] = "CSV" + if self._export_fields != {}: + request["fields"] = self._export_fields + url = self._build_url("/_export") + resp = self._cb.post_object(url, body=request) + result = resp.json() + return Job(self._cb, result["job_id"], result) + + def set_export_fields(self, fields): + """ + Sets the fields to be returned in the response of an alert export. + + Args: + fields (str or list[str]): Field or list of fields to be returned. + """ + if not isinstance(fields, list): + if not isinstance(fields, str): + raise ApiError(f"Fields must be a string or list of strings. {fields} is a {type(fields)}.") + self._export_fields = [fields] + else: + self._export_fields = fields + return self + class GroupedAlertSearchQuery(AlertSearchQuery): """ diff --git a/src/tests/unit/fixtures/platform/mock_alerts_v7.py b/src/tests/unit/fixtures/platform/mock_alerts_v7.py index fb4c033b..8da99968 100644 --- a/src/tests/unit/fixtures/platform/mock_alerts_v7.py +++ b/src/tests/unit/fixtures/platform/mock_alerts_v7.py @@ -1752,3 +1752,61 @@ } ] } + +ALERT_EXPORT_ALL_DEFAULT_VALUES_REQUEST = { + "format": "CSV" +} + +ALERT_EXPORT_TIME_RANGE_CRITERIA_EXCLUSIONS_DEFAULT_FIELDS_REQUEST = { + "time_range": { + "range": "-1d" + }, + "criteria": { + "minimum_severity": 2, + "type": [ + "WATCHLIST" + ] + }, + "exclusions": { + "alert_origin": [ + "MDR_THREAT_HUNT" + ] + }, + "format": "CSV" +} + + +ALERT_EXPORT_TIME_RANGE_CRITERIA_EXCLUSIONS_SPECIFIED_FIELDS_REQUEST = { + "time_range": { + "range": "-1d" + }, + "criteria": { + "minimum_severity": 2, + "type": [ + "WATCHLIST" + ] + }, + "exclusions": { + "alert_origin": [ + "MDR_THREAT_HUNT" + ] + }, + "fields": [ + "id", + "type" + ], + "format": "CSV" +} + +ALERT_EXPORT_QUERY_SPECIFIED_FIELDS_REQUEST = { + "query": "type:CB_ANALYTIC", + "fields": [ + "id", + "type" + ], + "format": "CSV" +} + +ALERT_EXPORT_JOB_RESPONSE = { + "job_id": "12345678" +} diff --git a/src/tests/unit/platform/test_alertsv7_api.py b/src/tests/unit/platform/test_alertsv7_api.py index 42d32de5..09b44aeb 100755 --- a/src/tests/unit/platform/test_alertsv7_api.py +++ b/src/tests/unit/platform/test_alertsv7_api.py @@ -57,7 +57,12 @@ MOST_RECENT_ALERT, ALERT_SEARCH_RESPONSE, GROUPED_ALERT_FACET_REQUEST, - GROUPED_ALERT_FACET_RESPONSE + GROUPED_ALERT_FACET_RESPONSE, + ALERT_EXPORT_ALL_DEFAULT_VALUES_REQUEST, + ALERT_EXPORT_TIME_RANGE_CRITERIA_EXCLUSIONS_DEFAULT_FIELDS_REQUEST, + ALERT_EXPORT_TIME_RANGE_CRITERIA_EXCLUSIONS_SPECIFIED_FIELDS_REQUEST, + ALERT_EXPORT_QUERY_SPECIFIED_FIELDS_REQUEST, + ALERT_EXPORT_JOB_RESPONSE ) from tests.unit.fixtures.platform.mock_process import ( POST_PROCESS_VALIDATION_RESP, @@ -2238,3 +2243,72 @@ def on_post(url, body, **kwargs): facets = query.facets(["type", "THREAT_ID"], 0, True) assert facets == GROUPED_ALERT_FACET_RESPONSE["results"] assert len(facets) == 2 + + +def test_alert_export_no_body(cbcsdk_mock): + """Test a csv export with all defaults (no criteria, exclusions etc)""" + def on_post(url, body, **kwargs): + assert body == ALERT_EXPORT_ALL_DEFAULT_VALUES_REQUEST + return ALERT_EXPORT_JOB_RESPONSE + cbcsdk_mock.mock_request("POST", "/api/alerts/v7/orgs/test/alerts/_export", on_post) + api = cbcsdk_mock.api + + alert_query = api.select(Alert) + job = alert_query.export() + assert isinstance(job, Job) + assert job.id == 12345678 + + +def test_alert_export_time_range_criteria_exclusions_default_fields(cbcsdk_mock): + """Test a csv export with time range, criteria, exclusions, default fields""" + + def on_post(url, body, **kwargs): + assert body == ALERT_EXPORT_TIME_RANGE_CRITERIA_EXCLUSIONS_DEFAULT_FIELDS_REQUEST + return ALERT_EXPORT_JOB_RESPONSE + + cbcsdk_mock.mock_request("POST", "/api/alerts/v7/orgs/test/alerts/_export", on_post) + api = cbcsdk_mock.api + + alert_query = api.select(Alert).set_time_range(range="-1d")\ + .set_minimum_severity(2)\ + .add_criteria("type", ["WATCHLIST"])\ + .add_exclusions("alert_origin", ["MDR_THREAT_HUNT"]) + job = alert_query.export() + assert isinstance(job, Job) + assert job.id == 12345678 + + +def test_alert_export_time_range_criteria_exclusions_specified_fields(cbcsdk_mock): + """Test a csv export with time range, criteria, exclusions, default fields""" + + def on_post(url, body, **kwargs): + assert body == ALERT_EXPORT_TIME_RANGE_CRITERIA_EXCLUSIONS_SPECIFIED_FIELDS_REQUEST + return ALERT_EXPORT_JOB_RESPONSE + + cbcsdk_mock.mock_request("POST", "/api/alerts/v7/orgs/test/alerts/_export", on_post) + api = cbcsdk_mock.api + + alert_query = api.select(Alert).set_time_range(range="-1d") \ + .set_minimum_severity(2) \ + .add_criteria("type", ["WATCHLIST"]) \ + .add_exclusions("alert_origin", ["MDR_THREAT_HUNT"])\ + .set_export_fields(["id", "type"]) + job = alert_query.export() + assert isinstance(job, Job) + assert job.id == 12345678 + + +def test_alert_query_and_specified_fields(cbcsdk_mock): + """Test a csv export with time range, criteria, exclusions, default fields""" + + def on_post(url, body, **kwargs): + assert body == ALERT_EXPORT_QUERY_SPECIFIED_FIELDS_REQUEST + return ALERT_EXPORT_JOB_RESPONSE + + cbcsdk_mock.mock_request("POST", "/api/alerts/v7/orgs/test/alerts/_export", on_post) + api = cbcsdk_mock.api + + alert_query = api.select(Alert).where("type:CB_ANALYTIC").set_export_fields(["id", "type"]) + job = alert_query.export() + assert isinstance(job, Job) + assert job.id == 12345678 From 2d78244defc920d887800e5e1ad838caa2a9c545 Mon Sep 17 00:00:00 2001 From: Kylie Ebringer Date: Mon, 10 Jun 2024 20:58:31 -0600 Subject: [PATCH 02/13] Added Export Alert to the RTD guide --- docs/alerts.rst | 23 ++++++++++++++++++++ examples/platform/alerts_common_scenarios.py | 2 +- src/cbc_sdk/platform/alerts.py | 10 ++++++++- 3 files changed, 33 insertions(+), 2 deletions(-) diff --git a/docs/alerts.rst b/docs/alerts.rst index 704236ec..f62198c6 100644 --- a/docs/alerts.rst +++ b/docs/alerts.rst @@ -119,6 +119,29 @@ It is equivalent to: More information about the ``solrq`` can be found in their `documentation `_. +Export Alerts in CSV format +--------------------------- + +Up to 25,000 alerts can be exported in a csv file. + +This is an asynchronous process in Carbon Black Cloud and to use the APIs directly, three calls are required; +start the job, check status until it completes, then download the results. The SDK wraps these calls and simplifies +the code needed. + +Modify the following example with criteria to meet your needs. + +.. code-block:: python + + >>> from cbc_sdk import CBCloudAPI + >>> from cbc_sdk.platform import Alert + >>> api = CBCloudAPI(profile="YOUR_PROFILE_HERE") + >>> alert_query = api.select(Alert).add_criteria("device_os", "WINDOWS").set_minimum_severity(3)\ + ... .set_time_range(range="-10d") + >>> job = alert_query.export() + >>> job.await_completion().result() + >>> csv_report = job.get_output_as_string() + >>> print(csv_report) + Retrieving Alerts for Multiple Organizations -------------------------------------------- diff --git a/examples/platform/alerts_common_scenarios.py b/examples/platform/alerts_common_scenarios.py index 6a9fd904..0e1d41af 100644 --- a/examples/platform/alerts_common_scenarios.py +++ b/examples/platform/alerts_common_scenarios.py @@ -119,7 +119,7 @@ def main(): api = CBCloudAPI(profile="YOUR_PROFILE_HERE") # workflow is in a separate method. - # alert_workflow(api) + alert_workflow(api) # To start, get some alerts that have a few interesting criteria set for selection. # All the fields that can be used are on the Developer Network diff --git a/src/cbc_sdk/platform/alerts.py b/src/cbc_sdk/platform/alerts.py index 60b41597..3d651693 100644 --- a/src/cbc_sdk/platform/alerts.py +++ b/src/cbc_sdk/platform/alerts.py @@ -1800,11 +1800,19 @@ def export(self): """ Starts the process of exporting Alerts from the organization in CSV format. + This starts an asynchronous job. Wait for completion of the job and + then use one of the get results methods on the Job. + + Example: - >>> cb.select(Alert).add_criteria("type", ["CB_ANALYTIC", "WATCHLIST"]).export() + >>> job = cb.select(Alert).add_criteria("type", ["CB_ANALYTIC", "WATCHLIST"]).export() + >>> job.await_completion().result() + >>> csv_report = job.get_output_as_string() + Required Permissions: org.alerts (READ) + jobs.status (READ) to get the results Returns: Job: The asynchronous job that will provide the export output when the server has prepared it. From a8c6e70dd6ee082b2ec490acb68c115231c120bd Mon Sep 17 00:00:00 2001 From: Kylie Ebringer Date: Tue, 11 Jun 2024 09:48:17 -0600 Subject: [PATCH 03/13] Changed export method to accept optional export_format param --- src/cbc_sdk/platform/alerts.py | 7 ++++--- src/tests/unit/platform/test_alertsv7_api.py | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/src/cbc_sdk/platform/alerts.py b/src/cbc_sdk/platform/alerts.py index 3d651693..c21fd5a2 100644 --- a/src/cbc_sdk/platform/alerts.py +++ b/src/cbc_sdk/platform/alerts.py @@ -1796,20 +1796,21 @@ def set_group_by(self, field): return grouped_alert_search_query - def export(self): + def export(self, output_format="CSV"): """ Starts the process of exporting Alerts from the organization in CSV format. This starts an asynchronous job. Wait for completion of the job and then use one of the get results methods on the Job. + Args: + output_format (string): The format to export the results in. Only "CSV" is valid. Example: >>> job = cb.select(Alert).add_criteria("type", ["CB_ANALYTIC", "WATCHLIST"]).export() >>> job.await_completion().result() >>> csv_report = job.get_output_as_string() - Required Permissions: org.alerts (READ) jobs.status (READ) to get the results @@ -1818,7 +1819,7 @@ def export(self): Job: The asynchronous job that will provide the export output when the server has prepared it. """ request = self._build_request(0, -1, add_rows=False) - request["format"] = "CSV" + request["format"] = output_format if self._export_fields != {}: request["fields"] = self._export_fields url = self._build_url("/_export") diff --git a/src/tests/unit/platform/test_alertsv7_api.py b/src/tests/unit/platform/test_alertsv7_api.py index 09b44aeb..c16ffb6c 100755 --- a/src/tests/unit/platform/test_alertsv7_api.py +++ b/src/tests/unit/platform/test_alertsv7_api.py @@ -2312,3 +2312,19 @@ def on_post(url, body, **kwargs): job = alert_query.export() assert isinstance(job, Job) assert job.id == 12345678 + + +def test_specify_export_format(cbcsdk_mock): + """Test a csv export with time range, criteria, exclusions, default fields""" + + def on_post(url, body, **kwargs): + assert body == ALERT_EXPORT_QUERY_SPECIFIED_FIELDS_REQUEST + return ALERT_EXPORT_JOB_RESPONSE + + cbcsdk_mock.mock_request("POST", "/api/alerts/v7/orgs/test/alerts/_export", on_post) + api = cbcsdk_mock.api + + alert_query = api.select(Alert).where("type:CB_ANALYTIC").set_export_fields(["id", "type"]) + job = alert_query.export("CSV") + assert isinstance(job, Job) + assert job.id == 12345678 From 7f740a7538872db7ac1cef842082f2af3e837357 Mon Sep 17 00:00:00 2001 From: Kylie Ebringer Date: Thu, 13 Jun 2024 15:48:05 -0600 Subject: [PATCH 04/13] Removed Threat Intel Example --- .../threat_intelligence/README.md | 315 +--------- .../threat_intelligence/Taxii_README.md | 41 +- .../threat_intelligence/config.yml | 78 --- .../threat_intelligence/feed_helper.py | 48 -- .../threat_intelligence/get_feed_ids.py | 22 - .../threat_intelligence/requirements.txt | 10 - .../threat_intelligence/results.py | 86 --- .../threat_intelligence/schemas.py | 45 -- .../threat_intelligence/stix_parse.py | 541 ------------------ .../threat_intelligence/stix_taxii.py | 442 -------------- .../threat_intelligence/threatintel.py | 97 ---- 11 files changed, 8 insertions(+), 1717 deletions(-) delete mode 100644 examples/enterprise_edr/threat_intelligence/config.yml delete mode 100644 examples/enterprise_edr/threat_intelligence/feed_helper.py delete mode 100644 examples/enterprise_edr/threat_intelligence/get_feed_ids.py delete mode 100644 examples/enterprise_edr/threat_intelligence/requirements.txt delete mode 100644 examples/enterprise_edr/threat_intelligence/results.py delete mode 100644 examples/enterprise_edr/threat_intelligence/schemas.py delete mode 100644 examples/enterprise_edr/threat_intelligence/stix_parse.py delete mode 100644 examples/enterprise_edr/threat_intelligence/stix_taxii.py delete mode 100644 examples/enterprise_edr/threat_intelligence/threatintel.py diff --git a/examples/enterprise_edr/threat_intelligence/README.md b/examples/enterprise_edr/threat_intelligence/README.md index 80fe6c3f..ec6489d6 100644 --- a/examples/enterprise_edr/threat_intelligence/README.md +++ b/examples/enterprise_edr/threat_intelligence/README.md @@ -1,314 +1,7 @@ # ThreatIntel Module -Python3 module that can be used in the development of Threat Intelligence Connectors for the Carbon Black Cloud. -> **_NOTE:_** This connector is deprecated, it is recommended to use the [Carbon Black Cloud Threat Intelligence Connector](https://github.com/carbonblack/carbon-black-cloud-threat-intelligence-connector) instead! +This example module has been replaced by an independent Threat Intelligence Connector. -## Requirements - -The file `requirements.txt` contains a list of dependencies for this project. After cloning this repository, run the following command from the `examples/enterprise_edr/threat_intelligence` directory: - -```python -pip3 install -r ./requirements.txt -``` - - -## Introduction -This document describes how to use the ThreatIntel Python3 module for development of connectors that retrieve Threat Intelligence and import it into a Carbon Black Cloud instance. - -Throughout this document, there are references to Carbon Black Enterprise EDR Feed and Report formats. Documentation on Feed and Report definitions is [available here.](https://developer.carbonblack.com/reference/carbon-black-cloud/cb-threathunter/latest/feed-api/#definitions) - -## Example - -An example of implementing this ThreatIntel module is [available here](Taxii_README.md). The example uses cabby to connect to a TAXII server, collect threat intelligence, and send it to an Enterprise EDR Feed. - - -## Usage - -`threatintel.py` has two main uses: - -1. Report Validation with `schemas.ReportSchema` -2. Pushing Reports to a Carbon Black Enterprise EDR Feed with `threatintel.push_to_cb()` - -### Report validation - -Each Report to be sent to the Carbon Black Cloud should be validated -before sending. The [Enterprise EDR Report format](https://developer.carbonblack.com/reference/carbon-black-cloud/cb-threathunter/latest/feed-api/#definitions) is a JSON object with -five required and five optional values. - -|Required|Type|Optional|Type| -|---|---|---|---| -|`id`|string|`link`|string| -|`timestamp`|integer|`[tags]`|[str]| -|`title`|string|`iocs`|[IOC Format](https://developer.carbonblack.com/reference/carbon-black-cloud/cb-threathunter/latest/feed-api/#definitions)| -|`description`|string|`[iocs_v2]`|[[IOCv2 Format](https://developer.carbonblack.com/reference/carbon-black-cloud/cb-threathunter/latest/feed-api/#definitions)]| -|`severity`|integer|`visibility`|string| - -The `push_to_cb` function checks for the existence and type of the five -required values, and (if applicable) checks the optional values, through a Schema. -See `schemas.py` for the definitions. - -### Pushing Reports to a Carbon Black Enterprise EDR Feed - -The `push_to_cb` function takes a list of `AnalysisResult` objects (or objects of your own custom class) and a Carbon -Black Enterprise EDR Feed ID as input, and writes output to the console. -The `AnalysisResult` class is defined in `results.py`, and requirements for a custom class are outlined in the Customization section below. - -`AnalysisResult` objects are expected to have the same properties as -Enterprise EDR Reports (listed in the table above in Report Validation), with the addition of `iocs_v2`. The -`push_to_cb` function will convert `AnalysisResult` objects into -Report dictionaries, and then those dictionaries into Enterprise EDR -Report objects. - -Any improperly formatted report dictionaries are saved to a file called `malformed_reports.json`. - -Upon successful sending of reports to an Enterprise EDR Feed, you should -see something similar to the following INFO message in the console: - -`INFO:threatintel:Appended 1000 reports to Enterprise EDR Feed AbCdEfGhIjKlMnOp` - - -### Using Validation and Pushing to Enterprise EDR in your own code - -Import the module and supporting classes like any other python package, and instantiate a ThreatIntel object: - - ```python - from threatintel import ThreatIntel - from results import IOC_v2, AnalysisResult - ti = ThreatIntel() -``` - -Take the threat intelligence data from your source, and convert it into ``AnalysisResult`` objects. Then, attach the indicators of compromise, and store your data in a list. - -```python - myResults = [] - for intel in myThreatIntelligenceData: - result = AnalysisResult(analysis_name=intel.name, scan_time=intel.scan_time, score=intel.score, title=intel.title, description=intel.description) - #ioc_dict could be a collection of md5 hashes, dns values, file hashes, etc. - for ioc_key, ioc_val in intel.ioc_dict.items(): - result.attach_ioc_v2(values=ioc_val, field=ioc_key, link=link) - myResults.append(result) -``` - -Finally, push your threat intelligence data to an Enterprise EDR Feed. -```python - ti.push_to_cb(feed_id='AbCdEfGhIjKlMnOp', results=myResults) -``` - -`ti.push_to_cb` automatically validates your input to ensure it has the values required for Enterprise EDR. Validated reports will be sent to your specified Enterprise EDR Feed, and any malformed reports will be available for review locally at `malformed_reports.json`. - - - -## Customization - -Although the `AnalysisResult` class is provided in `results.py` as an example, you may create your own custom class to use with `push_to_cb`. The class must have the following attributes to work with the provided `push_to_cb` function, as well as the Enterprise EDR backend: - - -|Attribute|Type| -|---|---| -|`id`|string| -|`timestamp`|integer| -|`title`|string| -|`description`|string| -|`severity`|integer| -|`iocs_v2`|[[IOCv2 Format](https://developer.carbonblack.com/reference/carbon-black-cloud/cb-threathunter/latest/feed-api/#definitions)]| - -It is strongly recommended to use the provided `IOC_v2()` class from `results.py`. If you decide to use a custom `iocs_v2` class, that class must have a method called `as_dict` that returns `id`, `match_type`, `values`, `field`, and `link` as a dictionary. - - -## Writing a Custom Threat Intelligence Polling Connector - -An example of a custom Threat Intel connector that uses the `ThreatIntel` Python3 module is included in this repository as `stix_taxii.py`. Most use cases will warrant the use of the Enterprise EDR `Report` attribute `iocs_v2`, so it is included in `ThreatIntel.push_to_cb()`. - -`ThreatIntel.push_to_cb()` and `AnalysisResult` can be adapted to include other Enterprise EDR `Report` attributes like `link, tags, iocs, and visibility`. - -## FAQ - -### How do I use this to upload lots of IOCs to a Feed? - -Enterprise EDR Feeds contain Reports. A Report contains IOCs. To upload a batch of IOCs to a Feed, you will need to: - -1. [Extract info from IOCs](#1-extract-info-from-iocs), -2. [Create Reports](#2-create-reports), -3. [Attach IOCs to Reports](#3-attach-iocs-to-reports), -4. [Send Reports to a Feed using the Feed ID](#4-send-reports-to-a-feed-using-the-feed-id). - -There are a couple approaches you can take to creating Reports and attaching IOCs: either create a Report for each IOC, or attach multiple IOCs to a Report. To retain the most threat intelligence possible, we will create a Report for each IOC. - -#### 1. Extract info from IOCs - -Extract or infer the following information from each of your IOCs: - -* Title -* ID -* Description -* Timestamp -* Severity (integer between 1 and 10, inclusive) -* Field -* Value(s) -* Link - -For example, I have this STIX threat intelligence: - -```xml - - phish_domain: mncovidmasksewists.net - Domain Watchlist - TS ID: 55474479396; iType: phish_domain; Date First: 2020-04-06T12:55:17.492Z; State: active; Source: DT COVID-19; Detail: COVID-19,Coronavirus,Domain-Risk-Score:99,Domainsquatting,Reference:https://www.domaintools.com/resources/blog/free-covid-19-threat-list-domain-risk-assessments-for-coronavirus-threatsSource:-DomainToolsTyposquatting,Source:DomainTools,Typosquatting; MoreDetail: imported by user 668 - - phish_domain: mncovidmasksewists.net - - - mncovidmasksewists.net - - - - - - 2020-04-06T22:15:05.389000+00:00 - - - -``` - -This would be the extracted information: - -```python -title = "phish_domain: mncovidmasksewists.net" -id = "threatstream:Observable-7e740bc2-eeb2-443e-9c61-57baba2627f8" -description = "TS ID: 55474479396; iType: phish_domain; [...]" -timestamp = 1586211305 -severity = 10 -field = "netconn_domain" -value = "mncovidmasksewists.net" -link = "https://www.domaintools.com/resources/blog/free-covid-19-threat-list-domain-risk-assessments-for-coronavirus-threats" -``` - -#### 2. Create Reports - -Use the extracted Title, ID, Description, Timestamp, and Severity to create a Report. - -```python -from examples.enterprise_edr.threat_intelligence.results import AnalysisResult -my_report = AnalysisResult(title=title, analysis_name=id, description=description, - timestamp=timestamp, score=severity) -``` - -Keep track of your Reports in a list. This is what will be sent to the Feed. - -```python -report_list = [] -report_list.append(my_report) -``` - -#### 3. Attach IOCs to Reports - -For each IOC, attach it to the corresponding Report. - -```python -my_report.attach_ioc_v2(values=value, field=field, link=link) -``` - -Repeat Steps 1, 2, and 3 for each IOC. - -Alternatively, you can attach multiple IOCs to a single Report. IOCs do not support titles, descriptions, severities, or timestamps, so that approach is less informative than creating a Report for each IOC. - -IOCs can be IP addresses, domains, file hashes, and many other types. See [Platform Search Fields for Processes and Enriched Events](https://developer.carbonblack.com/reference/carbon-black-cloud/platform/latest/platform-search-fields) for an idea of what field to assign to each IOC. - -#### 4. Send Reports to a Feed using the Feed ID - -Send your list of Reports to a Feed using the Feed ID. - -```python -from examples.enterprise_edr.threat_intelligence.threatintel import ThreatIntel -threat_intel = ThreatIntel() -threat_intel.push_to_cb(feed_id='WLFoE6chQwy8z7CQGCTG8A', - results=report_list) -``` - -Now, an attempt will be made to send your Reports. The Reports will be saved to a file called reports.json, which can be helpful if sending Reports fails. - -This is the full workflow in one code block: - -```python -# import the relevant modules -from examples.enterprise_edr.threat_intelligence.threatintel import ThreatIntel -from examples.enterprise_edr.threat_intelligence.results import AnalysisResult - -# info extracted from the IOC, with description shortened for clarity -title = "phish_domain: mncovidmasksewists.net" -id = "threatstream:Observable-7e740bc2-eeb2-443e-9c61-57baba2627f8" -description = "TS ID: 55474479396; iType: phish_domain; [...]" -timestamp = 1586211305 -severity = 10 -field = "netconn_domain" -value = "mncovidmasksewists.net" -link = "https://www.domaintools.com/resources/blog/free-covid-19-threat-list-domain-risk-assessments-for-coronavirus-threats" - -# create a Report for the IOC -my_report = AnalysisResult(title=title, analysis_name=id, description=description, - timestamp=timestamp, score=severity) - -# attach the IOC info to the Report -my_report.attach_ioc_v2(values=value, field=field, link=link) - -# keep track of the Report in report_list -report_list = [] -report_list.append(my_report) - -# send the list of Reports to the Feed -threat_intel = ThreatIntel() -threat_intel.push_to_cb(feed_id='WLFoE6chQwy8z7CQGCTG8A', - results=report_list) -``` - -### How do I import MISP data into a Feed? - -MISP is not directly supported with the ThreatIntel module, but an easy workaround is available. Use a MISP to STIX conversion tool, and follow the steps below. - -1. [Convert MISP to STIX](#1-convert-misp-to-stix) -2. [Call stix_taxii.py with the --file parameter](#2-call-stix-taxii-py-with-the-file-parameter) - -#### 1. Convert MISP to STIX - -Use open-source tools like [PyMISP](https://github.com/MISP/PyMISP) and [MISP-STIX-Converter](https://github.com/MISP/MISP-STIX-Converter) to generate STIX data from your MISP data. - -```python -# Import the PyMISP function make_stix_package -from pymisp.tools.stix import make_stix_package - -# List out your MISP events -misp_events = { - "Event": { - "info": "Flash 0 Day In The Wild: Group 123 At The Controls", - [...] - }, - "Event": { - "info": "M2M - GlobeImposter \"..doc\" 2017-12-15 : \"Scan\" -\n \"Scan_00123.7z\"", - [...] - } -} - -# Keep an index of the number of files created -file_number = 0 -for event in misp_events: - # Create a STIX Package for each MISP event - stix_xml = make_stix_package(event, to_xml=True) - # Save each newly-created STIX Package to XML files - with open(f"misp_to_stix_data_{file_number}.xml", 'w') as f: - f.write(stix_xml.decode("utf-8")) - file_number += 1 -``` - -#### 2. Call stix_taxii.py with the --files parameter - -```bash ->>> python3 stix_taxii.py --files misp_to_stix_data_0.xml misp_to_stix_data_1.xml -``` - -## Troubleshooting - -### Credential Error -In order to use this code, you must have CBC SDK installed and configured. If you receive an authentication error, visit the Developer Network Authentication Page for [instructions on setting up authentication](https://developer.carbonblack.com/reference/carbon-black-cloud/authentication/). See [ReadTheDocs](https://carbon-black-cloud-python-sdk.readthedocs.io/en/latest/authentication.html) for instructions on configuring your credentials file. - -### 504 Gateway Timeout Error -The [Carbon Black Enterprise EDR Feed Manager API](https://developer.carbonblack.com/reference/carbon-black-cloud/cb-threathunter/latest/feed-api/) is used in this code. When posting to a Feed, there is a 60 second limit before the gateway terminates your connection. The amount of reports you can POST to a Feed is limited by your connection speed. In this case, you will have to split your threat intelligence into smaller collections until the request takes less than 60 seconds, and send each smaller collection to an individual Enterprise EDR Feed. +Find more information on: +* [Developer Network](https://developer.carbonblack.com/reference/carbon-black-cloud/integrations/threat-intelligence-connector/) +* [GitHub](https://github.com/carbonblack/carbon-black-cloud-threat-intelligence-connector) diff --git a/examples/enterprise_edr/threat_intelligence/Taxii_README.md b/examples/enterprise_edr/threat_intelligence/Taxii_README.md index 97004618..550d1eab 100644 --- a/examples/enterprise_edr/threat_intelligence/Taxii_README.md +++ b/examples/enterprise_edr/threat_intelligence/Taxii_README.md @@ -1,40 +1,7 @@ # TAXII Connector -Connector for pulling and converting STIX information from TAXII Service Providers into Enterprise EDR Feeds. -## Requirements/Installation +This example module has been replaced by an independent Threat Intelligence Connector. -The file `requirements.txt` contains a list of dependencies for this project. After cloning this repository, run the following command from the `examples/enterprise_edr/threat_intelligence` directory: - -```python -pip3 install -r ./requirements.txt -``` - -## Introduction -This document describes how to configure the CB Enterprise EDR TAXII connector. -This connector allows for the importing of STIX data by querying one or more TAXII services, retrieving that data and then converting it into CB feeds using the CB JSON format for IOCs. - -## Setup - TAXII Configuration File -The TAXII connector uses the configuration file `config.yml`. An example configuration file is available [here.](config.yml) An explanation of each entry in the configuration file is provided in the example. - -## Running the Connector -The connector can be activated by running the Python3 file `stix_taxii.py`. The connector will attempt to connect to your TAXII service(s), poll the collection(s), retrieve the STIX data, and send it to the Enterprise EDR Feed specified in your `config.yml` file. - -```python -python3 stix_taxii.py -``` - -This script supports updating each TAXII configuration's `start_date`, the date for which to start requesting data, via the command line with the argument `site_start_date`. To change the `stat_date` value for each site in your config file, you must supply the site name and desired `start_date` in `%Y-%m-%d %H:%M:%S` format. - -```python -python3 stix_taxii.py --site_start_date my_site_name_1 '2019-11-05 00:00:00' my_site_name_2 '2019-11-05 00:00:00' -``` - -This may be useful if the intention is to keep an up-to-date collection of STIX data in an Enterprise EDR Feed. - -## Troubleshooting - -### Credential Error -In order to use this code, you must have CBC SDK installed and configured. If you receive an authentication error, visit the Developer Network Authentication Page for [instructions on setting up authentication](https://developer.carbonblack.com/reference/carbon-black-cloud/authentication/). See [ReadTheDocs](https://carbon-black-cloud-python-sdk.readthedocs.io/en/latest/authentication) for instructions on configuring your credentials file. - -### 504 Gateway Timeout Error -The [Carbon Black Enterprise EDR Feed Manager API](https://developer.carbonblack.com/reference/carbon-black-cloud/cb-threathunter/latest/feed-api/) is used in this code. When posting to a Feed, there is a 60 second limit before the gateway terminates your connection. The amount of reports you can POST to a Feed is limited by your connection speed. In this case, you will have to split your threat intelligence into smaller collections until the request takes less than 60 seconds, and send each smaller collection to an individual Enterprise EDR Feed. +Find more information on: +* [Developer Network](https://developer.carbonblack.com/reference/carbon-black-cloud/integrations/threat-intelligence-connector/) +* [GitHub](https://github.com/carbonblack/carbon-black-cloud-threat-intelligence-connector) diff --git a/examples/enterprise_edr/threat_intelligence/config.yml b/examples/enterprise_edr/threat_intelligence/config.yml deleted file mode 100644 index abfdda83..00000000 --- a/examples/enterprise_edr/threat_intelligence/config.yml +++ /dev/null @@ -1,78 +0,0 @@ -sites: - my_site_name_1: - # the feed_id of the Enterprise EDR Feed you want to send ThreatIntel to - # example: 7wP8BEc2QsS8ciEqaRv7Ad - feed_id: - - # the address of the site (only server ip or dns; don't put https:// or a trailing slash) - # example: limo.anomali.com - site: - - # the path of the site for discovering what services are available - # this is supplied by your taxii provider - # example: /api/v1/taxii/taxii-discovery-service/ - discovery_path: - - # the path of the site for listing what collections are available to you - # this is supplied by your taxii provider - # example: /api/v1/taxii/collection_management/ - collection_management_path: - - # the path of the site for polling a collection - # this is supplied by your taxii provider - # example: /api/v1/taxii/poll/ - poll_path: - - # if you require https for your TAXII service connection, set to true - # defaults to true - use_https: - - # by default, we validate SSL certificates. Change to false to turn off SSL verification - ssl_verify: - - # (optional) if you need SSL certificates for authentication, set the path of the - # certificate and key here. - cert_file: - key_file: - - # (optional) how to score each result. Accepts values [1,10], and defaults to 5 - default_score: - - # (optional) username for authorization with your taxii provider - username: - - # (optional) password for authorization with your taxii provider - password: - - # (optional) specify which collections to convert to feeds (comma-delimited) - # example: Abuse_ch_Ransomware_IPs_F135, DShield_Scanning_IPs_F150 - collections: - - # the start date for which to start requesting data. - # Use %y-%m-%d %H:%M:%S format - # example: 2019-01-01 00:00:00 - start_date: - - # (optional) the minutes to advance for each request. - # If you don't have a lot of data, you could advance your requests - # to every 60 minutes, or 1440 minutes for daily chunks - # defaults to 1440 - size_of_request_in_minutes: - - # (optional) path to a CA SSL certificate - ca_cert: - - # (optional) if you need requests to go through a proxy, specify an http URL here - http_proxy_url: - - # (optional) if you need requests to go through a proxy, specify an https URL here - https_proxy_url: - - # (optional) number of reports to collect from each site. - # Leave blank for no limit - reports_limit: - - # (optional) control the number of failed attempts per-collection before giving up - # trying to get (empty/malformed) STIX data out of a TAXII server. - # defaults to 10 - fail_limit: diff --git a/examples/enterprise_edr/threat_intelligence/feed_helper.py b/examples/enterprise_edr/threat_intelligence/feed_helper.py deleted file mode 100644 index a4d20203..00000000 --- a/examples/enterprise_edr/threat_intelligence/feed_helper.py +++ /dev/null @@ -1,48 +0,0 @@ -"""Advances the `begin_date` and `end_date` fields while polling the TAXII server... - -...to iteratively get per-collection STIX content. -This is tied to the `start_date` and `size_of_request_in_minutes` configuration options in your `config.yml`. -""" - -from datetime import datetime, timedelta, timezone -import logging -log = logging.getLogger(__name__) - - -class FeedHelper(): - """Advances the `begin_date` and `end_date` fields while polling the TAXII server.""" - def __init__(self, start_date, size_of_request_in_minutes): - """Initialize the FeedHelper object.""" - self.size_of_request_in_minutes = size_of_request_in_minutes - if isinstance(start_date, datetime): - self.start_date = start_date.replace(tzinfo=timezone.utc) - elif isinstance(start_date, str): - self.start_date = datetime.strptime(start_date, "%Y-%m-%d %H:%M:%S").replace(tzinfo=timezone.utc) - else: - log.error("Start_date must be a string or datetime object. Received a start_time config value " - f"with unsupported type: {type(start_date)}") - raise ValueError - self.end_date = self.start_date + timedelta(minutes=self.size_of_request_in_minutes) - self.now = datetime.utcnow().replace(tzinfo=timezone.utc) - if self.end_date > self.now: - self.end_date = self.now - self.start = False - self.done = False - - def advance(self): - """Returns True if keep going, False if we already hit the end time and cannot advance.""" - if not self.start: - self.start = True - return True - - if self.done: - return False - - # continues shifting the time window by size_of_request_in_minutes until we hit current time, then stops - self.start_date = self.end_date - self.end_date += timedelta(minutes=self.size_of_request_in_minutes) - if self.end_date > self.now: - self.end_date = self.now - self.done = True - - return True diff --git a/examples/enterprise_edr/threat_intelligence/get_feed_ids.py b/examples/enterprise_edr/threat_intelligence/get_feed_ids.py deleted file mode 100644 index 0582abfb..00000000 --- a/examples/enterprise_edr/threat_intelligence/get_feed_ids.py +++ /dev/null @@ -1,22 +0,0 @@ -"""Lists Enterprise EDR Feed IDs available for results dispatch.""" - -from cbc_sdk import CBCloudAPI -from cbc_sdk.enterprise_edr import Feed -import logging - -log = logging.getLogger(__name__) - - -def get_feed_ids(): - """Read and log all the feed IDs from the default server.""" - cb = CBCloudAPI() - feeds = cb.select(Feed) - if not feeds: - log.info("No feeds are available for the org key {}".format(cb.credentials.org_key)) - else: - for feed in feeds: - log.info("Feed name: {:<20} \t Feed ID: {:>20}".format(feed.name, feed.id)) - - -if __name__ == '__main__': - get_feed_ids() diff --git a/examples/enterprise_edr/threat_intelligence/requirements.txt b/examples/enterprise_edr/threat_intelligence/requirements.txt deleted file mode 100644 index 279ef6db..00000000 --- a/examples/enterprise_edr/threat_intelligence/requirements.txt +++ /dev/null @@ -1,10 +0,0 @@ -cybox==2.1.0.18 -dataclasses>=0.6 -cabby==0.1.20 -stix==1.2.0.7 -lxml==4.9.1 -urllib3>=1.24.2 -python_dateutil==2.8.1 -PyYAML==5.4 -schema -carbon-black-cloud-sdk diff --git a/examples/enterprise_edr/threat_intelligence/results.py b/examples/enterprise_edr/threat_intelligence/results.py deleted file mode 100644 index fb578345..00000000 --- a/examples/enterprise_edr/threat_intelligence/results.py +++ /dev/null @@ -1,86 +0,0 @@ -"""Defines models for Enterprise EDR IOC's and for Threat Intelligence AnalysisResults.""" - -import enum -import logging - - -class IOC_v2(): - """Models an indicator of compromise detected during an analysis. - - Every IOC belongs to an AnalysisResult. - """ - - def __init__(self, analysis, match_type, values, field, link): - """Initialize the IOC_v2 object.""" - self.id = analysis - self.match_type = match_type - self.values = values - self.field = field - self.link = link - - class MatchType(str, enum.Enum): - """Represents the valid matching strategies for an IOC.""" - - Equality: str = "equality" - Regex: str = "regex" - Query: str = "query" - - def as_dict(self): - """Return all attributes of this match type as a dict.""" - return { - "id": str(self.id), - "match_type": self.match_type, - "values": list(self.values), - "field": self.field, - "link": self.link, - } - - -class AnalysisResult(): - """Models the result of an analysis performed by a connector.""" - - def __init__(self, analysis_name, scan_time, score, title, description): - """Initialize the AnalysisResult.""" - self.id = str(analysis_name) - self.timestamp = scan_time - self.title = title - self.description = description - self.severity = score - self.iocs = [] - self.iocs_v2 = [] - self.link = None - self.tags = None - self.visibility = None - self.connector_name = "STIX_TAXII" - - def attach_ioc_v2(self, *, match_type=IOC_v2.MatchType.Equality, values, field, link): - """Attach additional IOCs to the result.""" - self.iocs_v2.append(IOC_v2(analysis=self.id, match_type=match_type, values=values, field=field, link=link)) - - def normalize(self): - """Normalizes this result to make it palatable for the Enterprise EDR backend.""" - if self.severity <= 0 or self.severity > 10: - logging.warning("normalizing OOB score: {}".format(self.severity)) - if self.severity > 10 and self.severity < 100: - # assume it's a percentage - self.severity = round(self.severity / 10) - else: - # any severity above 10 becomes 10, or below 1 becomes 1 - # Report severity must be between 1 & 10, else CBC backend throws 400 error - self.severity = max(1, min(self.severity, 10)) - return self - - def as_dict(self): - """Return the IOCs of this result as a dict.""" - return {"IOCs_v2": [ioc_v2.as_dict() for ioc_v2 in self.iocs_v2], **super().as_dict()} - - def as_dict_full(self): - """Return all attributes of this result as a dict.""" - return { - "id": self.id, - "timestamp": self.timestamp, - "title": self.title, - "description": self.description, - "severity": self.severity, - "iocs_v2": [iocv2.as_dict() for iocv2 in self.iocs_v2] - } diff --git a/examples/enterprise_edr/threat_intelligence/schemas.py b/examples/enterprise_edr/threat_intelligence/schemas.py deleted file mode 100644 index 38b109f8..00000000 --- a/examples/enterprise_edr/threat_intelligence/schemas.py +++ /dev/null @@ -1,45 +0,0 @@ -"""Defines the schemas used for the Threat Intelligence module.""" - -from schema import And, Optional, Schema - -IOCv2Schema = Schema( - { - "id": And(str, len), - "match_type": And(str, lambda type: type in ["query", "equality", "regex"]), - "values": And([str], len), - Optional("field"): str, - Optional("link"): str - } -) - -QueryIOCSchema = Schema( - { - "search_query": And(str, len), - Optional("index_type"): And(str, len) - } -) - -IOCSchema = Schema( - { - Optional("md5"): And([str], len), - Optional("ipv4"): And([str], len), - Optional("ipv6"): And([str], len), - Optional("dns"): And([str], len), - Optional("query"): [QueryIOCSchema] - } -) - -ReportSchema = Schema( - { - "id": And(str, len), - "timestamp": And(int, lambda n: n > 0), - "title": And(str, len), - "description": And(str, len), - "severity": And(int, lambda n: n > 0 and n < 11), - Optional("link"): str, - Optional("tags"): [str], - Optional("iocs_v2"): [IOCv2Schema], - Optional("iocs"): IOCSchema, - Optional("visibility"): str - } -) diff --git a/examples/enterprise_edr/threat_intelligence/stix_parse.py b/examples/enterprise_edr/threat_intelligence/stix_parse.py deleted file mode 100644 index 8b6e9692..00000000 --- a/examples/enterprise_edr/threat_intelligence/stix_parse.py +++ /dev/null @@ -1,541 +0,0 @@ -"""Parses STIX observables from the XML data returned by the TAXII server. - -The following IOC types are extracted from STIX data: - -* MD5 Hashes -* Domain Names -* IP-Addresses -* IP-Address Ranges -""" - -from cybox.objects.domain_name_object import DomainName -from cybox.objects.address_object import Address -from cybox.objects.file_object import File -from cybox.objects.uri_object import URI -from lxml import etree -from io import BytesIO -from stix.core import STIXPackage - -import logging -import string -import socket -import uuid -import time -import datetime -import dateutil -import dateutil.tz -import re - -from cabby.constants import ( - CB_STIX_XML_111, CB_CAP_11, CB_SMIME, - CB_STIX_XML_10, CB_STIX_XML_101, CB_STIX_XML_11, CB_XENC_122002) - -CB_STIX_XML_12 = 'urn:stix.mitre.org:xml:1.2' - -BINDING_CHOICES = [CB_STIX_XML_111, CB_CAP_11, CB_SMIME, CB_STIX_XML_12, - CB_STIX_XML_10, CB_STIX_XML_101, CB_STIX_XML_11, - CB_XENC_122002] - - -logger = logging.getLogger(__name__) - - -domain_allowed_chars = string.printable[:-6] # Used by validate_domain_name function - - -def validate_domain_name(domain_name): - """Validates a domain name to ensure validity and saneness. - - Args: - domain_name: Domain name string to check. - - Returns: - True if checks pass, False otherwise. - """ - if len(domain_name) > 255: - logger.warn( - "Excessively long domain name {} in IOC list".format(domain_name)) - return False - - if not all([c in domain_allowed_chars for c in domain_name]): - logger.warn("Malformed domain name {} in IOC list".format(domain_name)) - return False - - parts = domain_name.split('.') - if not parts: - logger.warn("Empty domain name found in IOC list") - return False - - for part in parts: - if len(part) < 1 or len(part) > 63: - logger.warn("Invalid label length {} in domain name {} for report %s".format( - part, domain_name)) - return False - - return True - - -def validate_md5sum(md5): - """Validates md5sum. - - Args: - md5sum: md5sum to check. - - Returns: - True if checks pass, False otherwise. - """ - if 32 != len(md5): - logger.warn("Invalid md5 length for md5 {}".format(md5)) - return False - if not md5.isalnum(): - logger.warn("Malformed md5 {} in IOC list".format(md5)) - return False - for c in "ghijklmnopqrstuvwxyz": - if c in md5 or c.upper() in md5: - logger.warn("Malformed md5 {} in IOC list".format(md5)) - return False - - return True - - -def sanitize_id(id): - """Removes unallowed chars from an ID. - - Ids may only contain a-z, A-Z, 0-9, - and must have one character. - - Args: - id: The ID to be sanitized. - - Returns: - A sanitized ID. - """ - return id.replace(':', '-') - - -def validate_ip_address(ip_address): - """Validates an IPv4 address.""" - try: - socket.inet_aton(ip_address) - return True - except socket.error: - return False - - -def cybox_parse_observable(observable, indicator, timestamp, score): - """Parses a cybox observable and indicator, and returns a list containing a report dictionary. - - cybox is a open standard language encoding info about cyber observables. - - Args: - observable: The cybox observable to parse. - indicator: The cybox indicator to parse. - timestamp: Time the observable was identified. - score: Severity score for the report. - - Returns: - A report dictionary if the cybox observable has props of type: - - cybox.objects.address_object.Address, - cybox.objects.file_object.File, - cybox.objects.domain_name_object.DomainName, or - cybox.objects.uri_object.URI - - Otherwise it will return an empty list. - - """ - reports = [] - - if observable.object_ and observable.object_.properties: - props = observable.object_.properties - logger.debug("{0} has props type: {1}".format(indicator, type(props))) - else: - logger.debug("{} has no props; skipping".format(indicator)) - return reports - - # - # sometimes the description is None - # - description = '' - if observable.description and observable.description.value: - description = str(observable.description.value) - - # - # if description is an empty string, then use the indicator's description - # NOTE: This was added for RecordedFuture - # - - if not description and indicator and indicator.description and indicator.description.value: - description = str(indicator.description.value) - - # - # if description is still empty, use the indicator's title - # - if not description and indicator and indicator.title: - description = str(indicator.title) - - if not description: - logger.debug("No description found. Using default message.") - description = "No description available." - # - # use the first reference as a link - # This was added for RecordedFuture - # - link = '' - if indicator and indicator.producer and indicator.producer.references: - for reference in indicator.producer.references: - link = reference - break - else: - if indicator and indicator.title: - split_title = indicator.title.split() - title_found = True - elif observable and observable.title: - split_title = observable.title.split() - title_found = True - else: - title_found = False - - if title_found: - url_pattern = re.compile(r"^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?" - r"[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$") - for token in split_title: - if url_pattern.match(token): - link = token - break - - # - # Sometimes the title is None, so generate a random UUID - # - - if observable and observable.title: - title = observable.title - else: - title = str(uuid.uuid4()) - - # ID must be unique. Collisions cause 500 error on Carbon Black backend - id = str(uuid.uuid4()) - - if isinstance(props, DomainName): - reports = parse_domain_name(props, id, description, title, timestamp, link, score) - - elif isinstance(props, Address): - reports = parse_address(props, id, description, title, timestamp, link, score) - - elif isinstance(props, File): - reports = parse_file(props, id, description, title, timestamp, link, score) - - elif isinstance(props, URI): - reports = parse_uri(props, id, description, title, timestamp, link, score) - - else: - return reports - - return reports - - -def parse_uri(props, id, description, title, timestamp, link, score): - """Parses URI properties and returns a list containing a report dictionary. - - Args: - props: The cybox URI observable properties to parse. - id: The ID for the Report. - description: The description for the Report. - title: The title for the Report. - timestamp: The timestamp for the Report. - link: The link for the Report. - score: The severity score for the Report. - - Returns: - A list containing a report dictionary. - """ - reports = [] - - if props.value and props.value.value: - - iocs = {'netconn_domain': []} - # - # Sometimes props.value.value is a list - # - - if type(props.value.value) is list: - for domain_name in props.value.value: - if validate_domain_name(domain_name.strip()): - iocs['netconn_domain'].append(domain_name.strip()) - else: - domain_name = props.value.value.strip() - if validate_domain_name(domain_name): - iocs['netconn_domain'].append(domain_name) - - if len(iocs['netconn_domain']) > 0: - reports.append({'iocs_v2': iocs, - 'id': sanitize_id(id), - 'description': description, - 'title': title, - 'timestamp': timestamp, - 'link': link, - 'score': score}) - return reports - - -def parse_domain_name(props, id, description, title, timestamp, link, score): - """Parses DomainName properties and returns a list containing a report dictionary. - - Args: - props: The cybox DomainName observable properties to parse. - id: The ID for the Report. - description: The description for the Report. - title: The title for the Report. - timestamp: The timestamp for the Report. - link: The link for the Report. - score: The severity score for the Report. - - Returns: - A list containing a report dictionary. - """ - reports = [] - if props.value and props.value.value: - iocs = {'netconn_domain': []} - # - # Sometimes props.value.value is a list - # - - if type(props.value.value) is list: - for domain_name in props.value.value: - if validate_domain_name(domain_name.strip()): - iocs['netconn_domain'].append(domain_name.strip()) - else: - domain_name = props.value.value.strip() - if validate_domain_name(domain_name): - iocs['netconn_domain'].append(domain_name) - - if len(iocs['netconn_domain']) > 0: - reports.append({'iocs_v2': iocs, - 'id': sanitize_id(id), - 'description': description, - 'title': title, - 'timestamp': timestamp, - 'link': link, - 'score': score}) - return reports - - -def parse_address(props, id, description, title, timestamp, link, score): - """Parses Address properties and returns a list containing a report dictionary. - - Args: - props: The cybox Address observable properties to parse. - id: The ID for the Report. - description: The description for the Report. - title: The title for the Report. - timestamp: The timestamp for the Report. - link: The link for the Report. - score: The severity score for the Report. - - Returns: - A list containing a report dictionary. - """ - reports = [] - if props.category == 'ipv4-addr' and props.address_value: - iocs = {'netconn_ipv4': []} - - # - # Sometimes props.address_value.value is a list vs a string - # - if type(props.address_value.value) is list: - for ip in props.address_value.value: - if validate_ip_address(ip.strip()): - iocs['netconn_ipv4'].append(ip.strip()) - else: - ipv4 = props.address_value.value.strip() - if validate_ip_address(ipv4): - iocs['netconn_ipv4'].append(ipv4) - - if len(iocs['netconn_ipv4']) > 0: - reports.append({'iocs_v2': iocs, - 'id': sanitize_id(id), - 'description': description, - 'title': title, - 'timestamp': timestamp, - 'link': link, - 'score': score}) - - return reports - - -def parse_file(props, id, description, title, timestamp, link, score): - """Parses File properties and returns a list containing a report dictionary. - - Args: - props: The cybox File observable properties to parse. - id: The ID for the Report. - description: The description for the Report. - title: The title for the Report. - timestamp: The timestamp for the Report. - link: The link for the Report. - score: The severity score for the Report. - - Returns: - A list containing a report dictionary. - """ - reports = [] - iocs = {'hash': []} - if props.md5: - if type(props.md5) is list: - for hash in props.md5: - if validate_md5sum(hash.strip()): - iocs['hash'].append(hash.strip()) - else: - if hasattr(props.md5, 'value'): - hash = props.md5.value.strip() - else: - hash = props.md5.strip() - if validate_md5sum(hash): - iocs['hash'].append(hash) - - if len(iocs['hash']) > 0: - reports.append({'iocs_v2': iocs, - 'id': sanitize_id(id), - 'description': description, - 'title': title, - 'timestamp': timestamp, - 'link': link, - 'score': score}) - - return reports - - -def get_stix_indicator_score(indicator, default_score): - """Returns a digit representing the indicator score. - - Converts from "high", "medium", or "low" into a digit, if necessary. - """ - if not indicator.confidence: - return default_score - - confidence_val_str = indicator.confidence.value.__str__() - if confidence_val_str.isdigit(): - score = int(confidence_val_str) - return score - elif confidence_val_str.lower() == "high": - return 7 # 75 - elif confidence_val_str.lower() == "medium": - return 5 # 50 - elif confidence_val_str.lower() == "low": - return 2 # 25 - else: - return default_score - - -def get_stix_indicator_timestamp(indicator): - """Extracts the timestamp from an indicator.""" - timestamp = 0 - if indicator.timestamp: - if indicator.timestamp.tzinfo: - timestamp = int((indicator.timestamp - datetime.datetime(1970, 1, 1).replace( - tzinfo=dateutil.tz.tzutc())).total_seconds()) - else: - timestamp = int((indicator.timestamp - datetime.datetime(1970, 1, 1)).total_seconds()) - return timestamp - - -def get_stix_package_timestamp(stix_package): - """Extracts the timestamp from a Stix Package.""" - timestamp = 0 - if not stix_package or not stix_package.timestamp: - return timestamp - try: - timestamp = stix_package.timestamp - timestamp = int(time.mktime(timestamp.timetuple())) - except (TypeError, OverflowError, ValueError) as e: - logger.warning("Problem parsing stix timestamp: {}".format(e)) - return timestamp - - -def parse_stix_indicators(stix_package, default_score): - """Extracts info from all indicators in a STIX Package.""" - reports = [] - if not stix_package.indicators: - return reports - - for indicator in stix_package.indicators: - if not indicator or not indicator.observable: - continue - score = get_stix_indicator_score(indicator, default_score) - timestamp = get_stix_indicator_timestamp(indicator) - yield from cybox_parse_observable( - indicator.observable, indicator, timestamp, score) - - -def parse_stix_observables(stix_package, default_score): - """Extracts info from all observables in a STIX Package.""" - reports = [] - if not stix_package.observables: - return reports - - timestamp = get_stix_package_timestamp(stix_package) - for observable in stix_package.observables: - if not observable: - continue - yield from cybox_parse_observable( # single element list - observable, None, timestamp, default_score) - - -def sanitize_stix(stix_xml): - """Checks the STIX XML input for content, returning an empty bytes object if there is none.""" - ret_xml = b'' - try: - xml_root = etree.fromstring(stix_xml) - content = xml_root.find( - './/{http://taxii.mitre.org/messages/taxii_xml_binding-1.1}Content') - if content is not None and len(content) == 0 and len(list(content)) == 0: - # Content has no children. - # So lets make sure we parse the xml text for content and - # re-add it as valid XML so we can parse - _content = xml_root.find( - "{http://taxii.mitre.org/messages/taxii_xml_binding-1.1}Content_Block/" - "{http://taxii.mitre.org/messages/taxii_xml_binding-1.1}Content") - if _content: - new_stix_package = etree.fromstring(_content.text) - content.append(new_stix_package) - ret_xml = etree.tostring(xml_root) - except etree.ParseError as e: - logger.warning("Problem parsing stix: {}".format(e)) - return ret_xml - - -def parse_stix(stix_xml, default_score): - """Processes raw STIX XML into Enterprise EDR Reports.""" - reports = [] - try: - stix_xml = sanitize_stix(stix_xml) - bio = BytesIO(stix_xml) - stix_package = STIXPackage.from_xml(bio) - if not stix_package: - logger.warning("Could not parse STIX xml") - return reports - if not stix_package.indicators and not stix_package.observables: - logger.info("No indicators or observables found in stix_xml") - return reports - yield from parse_stix_indicators(stix_package, default_score) - yield from parse_stix_observables(stix_package, default_score) - except etree.XMLSyntaxError as e: - logger.warning("Problem parsing stix: {}".format(e)) - return reports - - -def parse_stix_from_file(file_name, default_score=5): - """Processes STIX XML from a file into Enterprise EDR Reports.""" - reports = [] - try: - stix_package = STIXPackage.from_xml(file_name) - if not stix_package: - logger.warning("Could not parse STIX xml") - return reports - if not stix_package.indicators and not stix_package.observables: - logger.info("No indicators or observables found in stix_xml") - return reports - yield from parse_stix_indicators(stix_package, default_score) - yield from parse_stix_observables(stix_package, default_score) - except etree.XMLSyntaxError as e: - logger.warning("Problem parsing stix: {}".format(e)) - return reports diff --git a/examples/enterprise_edr/threat_intelligence/stix_taxii.py b/examples/enterprise_edr/threat_intelligence/stix_taxii.py deleted file mode 100644 index 809e09bd..00000000 --- a/examples/enterprise_edr/threat_intelligence/stix_taxii.py +++ /dev/null @@ -1,442 +0,0 @@ -"""Connects to TAXII servers via cabby and formats the data received for dispatching to a Carbon Black feed.""" - -import argparse -import logging -import traceback -import urllib3 -import copy -import yaml -import os -from urllib.parse import urlparse -from cabby.exceptions import NoURIProvidedError, ClientException -from requests.exceptions import ConnectionError -from cbc_sdk.errors import ApiError -from cabby import create_client -from dataclasses import dataclass -from datetime import datetime -from itertools import chain - -try: - from threatintel import ThreatIntel - from stix_parse import parse_stix, parse_stix_from_file, BINDING_CHOICES - from feed_helper import FeedHelper - from results import AnalysisResult -# allow for using stix_taxii on its own -except ImportError: - from .threatintel import ThreatIntel - from .stix_parse import parse_stix, BINDING_CHOICES - from .feed_helper import FeedHelper - from .results import AnalysisResult - -# logging.basicConfig(filename='stix.log', filemode='w', level=logging.DEBUG) -logging.basicConfig(filename='stix.log', filemode='w', - format='%(asctime)s,%(msecs)d %(levelname)-8s [%(filename)s:%(lineno)d] %(message)s', - datefmt='%Y-%m-%d:%H:%M:%S', - level=logging.DEBUG) -handled_exceptions = (NoURIProvidedError, ClientException, ConnectionError) - - -def load_config_from_file(): - """Loads YAML formatted configuration from config.yml in working directory.""" - logging.debug("loading config from file") - config_filename = os.path.join(os.path.dirname((os.path.abspath(__file__))), "config.yml") - with open(config_filename, "r") as config_file: - config_data = yaml.load(config_file, Loader=yaml.SafeLoader) - config_data_without_none_vals = copy.deepcopy(config_data) - for site_name, site_config_dict in config_data['sites'].items(): - for conf_key, conf_value in site_config_dict.items(): - if conf_value is None: - del config_data_without_none_vals['sites'][site_name][conf_key] - logging.info(f"loaded config data: {config_data_without_none_vals}") - return config_data_without_none_vals - - -@dataclass(eq=True, frozen=True) -class TaxiiSiteConfig: - """Contains information needed to interface with a TAXII server. - - These values are loaded in from config.yml for each entry in the configuration file. - Each TaxiiSiteConnector has its own TaxiiSiteConfig. - """ - - feed_id: str = '' - site: str = '' - discovery_path: str = '' - collection_management_path: str = '' - poll_path: str = '' - use_https: bool = True - ssl_verify: bool = True - cert_file: str = None - key_file: str = None - default_score: int = 5 # [1,10] - username: str = None - password: str = None - collections: str = '*' - start_date: str = None - size_of_request_in_minutes: int = 1440 - ca_cert: str = None - http_proxy_url: str = None - https_proxy_url: str = None - reports_limit: int = None - fail_limit: int = 10 # num attempts per collection for polling & parsing - - -class TaxiiSiteConnector(): - """Connects to and pulls data from a TAXII server.""" - - def __init__(self, site_conf): - """ - Initialize the TaxiiSiteConnector. - - Args: - site_conf (dict): Site configuration information. - """ - self.config = TaxiiSiteConfig(**site_conf) - self.client = None - - def create_taxii_client(self): - """Connects to a TAXII server using cabby and configuration entries.""" - conf = self.config - if not conf.start_date: - logging.error(f"A start_date is required for site {conf.site}. Exiting.") - return - if not conf.ssl_verify: - urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) - try: - client = create_client(conf.site, - use_https=conf.use_https, - discovery_path=conf.discovery_path) - client.set_auth(username=conf.username, - password=conf.password, - verify_ssl=conf.ssl_verify, - ca_cert=conf.ca_cert, - cert_file=conf.cert_file, - key_file=conf.key_file) - - proxy_dict = dict() - if conf.http_proxy_url: - proxy_dict['http'] = conf.http_proxy_url - if conf.https_proxy_url: - proxy_dict['https'] = conf.https_proxy_url - if proxy_dict: - client.set_proxies(proxy_dict) - - self.client = client - - except handled_exceptions as e: - logging.error(f"Error creating client: {e}") - - def create_uri(self, config_path): - """Formats a URI for discovery, collection, or polling of a TAXII server. - - Args: - config_path: A URI path to a TAXII server's discovery, collection, or polling service. - Defined in config.yml configuration file. - - Returns: - A full URI to one of a TAXII server's service paths. - """ - uri = None - if self.config.site and config_path: - if self.config.use_https: - uri = 'https://' - else: - uri = 'http://' - uri = uri + self.config.site + config_path - return uri - - def query_collections(self): - """Returns a list of STIX collections available to the user to poll.""" - collections = [] - try: - uri = self.create_uri(self.config.collection_management_path) - collections = self.client.get_collections( - uri=uri) # autodetect if uri=None - for collection in collections: - logging.info(f"Collection: {collection.name}, {collection.type}") - except handled_exceptions as e: - logging.warning( - "Problem fetching collections from TAXII server. Check your TAXII Provider URL and username/password " - f"(if required to access TAXII server): {e}") - return collections - - def poll_server(self, collection, feed_helper): - """ - Returns a STIX content block for a specific TAXII collection. - - Args: - collection: Name of a TAXII collection to poll. - feed_helper: FeedHelper object. - """ - content_blocks = [] - uri = self.create_uri(self.config.poll_path) - try: - logging.info(f"Polling Collection: {collection.name}") - content_blocks = self.client.poll( - uri=uri, - collection_name=collection.name, - begin_date=feed_helper.start_date, - end_date=feed_helper.end_date, - content_bindings=BINDING_CHOICES) - except handled_exceptions as e: - logging.warning(f"problem polling taxii server: {e}") - return content_blocks - - def parse_collection_content(self, content_blocks, default_score=None): - """ - Yields a formatted report dictionary for each STIX content_block. - - Args: - content_blocks: A chunk of STIX data from the TAXII collection being polled. - default_score: The default score for the data, or None. - """ - if default_score: - score = default_score - else: - score = self.config.default_score - - try: - for block in content_blocks: - yield from parse_stix(block.content, score) - except: - # Content Block failed or parsing issue continue with current progress - yield from () - - def import_collection(self, collection): - """ - Polls a single TAXII server collection. - - Starting at the start_date set in config.yml, a FeedHelper object will continue to grab chunks - of data from a collection until the report limit is reached or we reach the current datetime. - - Args: - collection: Name of a TAXII collection to poll. - - Yields: - Formatted report dictionaries from parse_collection_content(content_blocks) - for each content_block pulled from a single TAXII collection. - """ - num_times_empty_content_blocks = 0 - advance = True - reports_limit = self.config.reports_limit - if not self.config.size_of_request_in_minutes: - size_of_request_in_minutes = 1440 - else: - size_of_request_in_minutes = self.config.size_of_request_in_minutes - feed_helper = FeedHelper(self.config.start_date, - size_of_request_in_minutes) - # config parameters `start_date` and `size_of_request_in_minutes` tell this Feed Helper - # where to start polling in the collection, and then will advance polling in chunks of - # `size_of_request_in_minutes` until we hit the most current `content_block`, - # or reports_limit is reached. - while feed_helper.advance(): - num_reports = 0 - num_times_empty_content_blocks = 0 - content_blocks = self.poll_server(collection, feed_helper) - reports = self.parse_collection_content(content_blocks) - for report in reports: - yield report - num_reports += 1 - if reports_limit is not None and num_reports >= reports_limit: - logging.info(f"Reports limit of {self.config.reports_limit} reached") - advance = False - break - - if not advance: - break - if collection.type == 'DATA_SET': # data is unordered, not a feed - logging.info(f"collection:{collection}; type data_set; breaking") - break - if num_reports == 0: - num_times_empty_content_blocks += 1 - if num_times_empty_content_blocks > self.config.fail_limit: - logging.error('Max fail limit reached; Exiting.') - break - if reports_limit is not None: - reports_limit -= num_reports - - def import_collections(self, available_collections): - """ - Polls each desired collection specified in config.yml. - - Args: - available_collections: list of collections available to a TAXII server user. - - Yields: - From import_collection(self, collection) for each desired collection. - """ - if not self.config.collections: - desired_collections = '*' - else: - desired_collections = self.config.collections - - desired_collections = [x.strip() - for x in desired_collections.lower().split(',')] - - want_all = True if '*' in desired_collections else False - - for collection in available_collections: - if collection.type != 'DATA_FEED' and collection.type != 'DATA_SET': - logging.debug(f"collection:{collection}; type not feed or data") - continue - if not collection.available: - logging.debug(f"collection:{collection} not available") - continue - if want_all or collection.name.lower() in desired_collections: - yield from self.import_collection(collection) - - def generate_reports(self): - """Returns a list of report dictionaries for each desired collection specified in config.yml.""" - reports = [] - - self.create_taxii_client() - if not self.client: - logging.error('Unable to create taxii client.') - return reports - - available_collections = self.query_collections() - if not available_collections: - logging.warning('Unable to find any collections.') - return reports - - reports = self.import_collections(available_collections) - if not reports: - logging.warning('Unable to import collections.') - return reports - - return reports - - -class StixTaxii(): - """Allows for interfacing with multiple TAXII servers. - - Instantiates separate TaxiiSiteConnector objects for each site specified in config.yml. - Formats report dictionaries into AnalysisResult objects with formatted IOC_v2 attirbutes. - Sends AnalysisResult objects to ThreatIntel.push_to_cb for dispatching to a feed. - """ - - def __init__(self, site_confs): - """ - Initialize the StixTaxii object. - - Args: - site_confs (dict): Site configuration information. - """ - self.config = site_confs - self.client = None - - def result(self, **kwargs): - """Returns a new AnalysisResult with the given fields populated.""" - result = AnalysisResult(**kwargs).normalize() - return result - - def configure_sites(self): - """Creates a TaxiiSiteConnector for each site in config.yml""" - self.sites = {} - try: - for site_name, site_conf in self.config['sites'].items(): - self.sites[site_name] = TaxiiSiteConnector(site_conf) - logging.info(f"loaded site {site_name}") - except handled_exceptions as e: - - logging.error(f"Error in parsing config file: {e}") - - def format_report(self, reports): - """ - Converts a dictionary into an AnalysisResult. - - Args: - reports: list of report dictionaries containing an id, title, description, timestamp, score, link, - and iocs_v2. - - Yields: - An AnalysisResult for each report dictionary. - """ - for report in reports: - try: - analysis_name = report['id'] - title = report['title'] - description = report['description'] - scan_time = datetime.fromtimestamp(report['timestamp']) - score = report['score'] - link = report['link'] - ioc_dict = report['iocs_v2'] - result = self.result( - analysis_name=analysis_name, - scan_time=scan_time, - score=score, - title=title, - description=description) - for ioc_key, ioc_val in ioc_dict.items(): - result.attach_ioc_v2(values=ioc_val, field=ioc_key, link=urlparse(link).netloc) - except handled_exceptions as e: - logging.warning(f"Problem in report formatting: {e}") - result = self.result( - analysis_name="exception_format_report", error=True) - yield result - - def collect_and_send_reports(self, file_names=None): - """Collects and sends formatted reports to ThreatIntel.push_to_cb for validation and dispatching to a feed.""" - self.configure_sites() - ti = ThreatIntel() - for site_name, site_conn in self.sites.items(): - logging.debug(f"Verifying Feed {site_conn.config.feed_id} exists") - try: - ti.verify_feed_exists(site_conn.config.feed_id) - except ApiError as e: - logging.error( - f"Couldn't find Enterprise EDR Feed {site_conn.config.feed_id}. Skipping {site_name}: {e}") - continue - if file_names: - reports = [] - try: - report_generators = [] - # generate Reports from STIX XML files - for file in file_names: - report_generators.append(parse_stix_from_file(file, site_conn.config.default_score)) - output = chain() - for gen in report_generators: - reports = chain(output, gen) - except Exception as e: - logging.error(f"Failed to load STIX XML from file: {e}") - else: - # generate Reports by Polling a TAXII server - logging.info(f"Talking to {site_name} server") - reports = site_conn.generate_reports() - if not reports: - logging.error(f"No reports generated for {site_name}") - continue - else: - try: - ti.push_to_cb(feed_id=site_conn.config.feed_id, results=self.format_report(reports)) - except Exception as e: - logging.error(traceback.format_exc()) - logging.error(f"Failed to push reports to feed {site_conn.config.feed_id}: {e}") - - -if __name__ == '__main__': - - parser = argparse.ArgumentParser(description='Modify configuration values via command line.') - parser.add_argument('--site_start_date', metavar='s', nargs='+', - help='the site name and desired start date to begin polling from') - parser.add_argument('--files', metavar='f', nargs='+', - help='the filename(s) to parse STIX XML from') - args = parser.parse_args() - - config = load_config_from_file() - - if args.site_start_date: - for index in range(len(args.site_start_date)): - arg = args.site_start_date[index] - if arg in config['sites']: # if we see a name that matches a site Name - try: - new_time = datetime.strptime(args.site_start_date[index + 1], "%Y-%m-%d %H:%M:%S") - config['sites'][arg]['start_date'] = new_time - logging.info(f"Updated the start_date for {arg} to {new_time}") - except ValueError as e: - logging.error(f"Failed to update start_date for {arg}: {e}") - stix_taxii = StixTaxii(config) - if args.files: - stix_taxii.collect_and_send_reports(file_names=args.files) - else: - stix_taxii.collect_and_send_reports() diff --git a/examples/enterprise_edr/threat_intelligence/threatintel.py b/examples/enterprise_edr/threat_intelligence/threatintel.py deleted file mode 100644 index 156cd9bd..00000000 --- a/examples/enterprise_edr/threat_intelligence/threatintel.py +++ /dev/null @@ -1,97 +0,0 @@ -"""Validates result dictionaries, creates Reports, validates Reports, and sends them to an Enterprise EDR Feed. - -Also allows for conversion from result dictionaries into Enterprise EDR `Report` objects. -""" - -import logging -import json -from cbc_sdk import CBCloudAPI -from cbc_sdk.enterprise_edr import Report -from cbc_sdk.errors import ApiError -from cbc_sdk.enterprise_edr import Feed -from schema import SchemaError -try: - from schemas import ReportSchema - from results import AnalysisResult -# allow for using ThreatIntel on it's own -except ImportError: - from .schemas import ReportSchema - from .results import AnalysisResult - -log = logging.getLogger(__name__) - - -class ThreatIntel: - """Object handling Threat Intelligence.""" - def __init__(self): - """Initialize the ThreatIntel class.""" - self.cb = CBCloudAPI(timeout=200) - - def verify_feed_exists(self, feed_id): - """Verify that a Feed exists.""" - try: - feed = self.cb.select(Feed, feed_id) - return feed - except ApiError: - raise ApiError - - def push_to_cb(self, feed_id, results): - """Send result.AnalysisResult Reports or a Report dictionary to a Feed.""" - feed = self.verify_feed_exists(feed_id) # will raise an ApiError if the feed cannot be found - if not feed: - return - report_list_to_send = [] - reports = [] - malformed_reports = [] - - for result in results: - report_dict = {} - # convert to a dictionary if necessary - if isinstance(result, AnalysisResult): - try: - report_dict = { - "id": str(result.id), - "timestamp": int(result.timestamp.timestamp()), - "title": str(result.title), - "description": str(result.description), - "severity": int(result.severity), - "iocs_v2": [ioc_v2.as_dict() for ioc_v2 in result.iocs_v2] - } - except Exception as e: - log.error(f"Failed to create a report dictionary from result object. {e}") - # no conversion to dictionary needed - elif isinstance(result, dict): - report_dict = result - try: - ReportSchema.validate(report_dict) - # create Enterprise EDR Report object - report = Report(self.cb, initial_data=report_dict, feed_id=feed_id) - report_list_to_send.append(report) - reports.append(report_dict) - except SchemaError as e: - log.warning(f"Report Validation failed. Saving report to file for reference. Error: {e}") - malformed_reports.append(report_dict) - - log.debug(f"Num Reports: {len(report_list_to_send)}") - try: - with open('reports.json', 'w') as f: - json.dump(reports, f, indent=4) - except Exception as e: - log.error(f"Failed to write reports to file: {e}") - - log.debug("Sending results to Carbon Black Cloud.") - - if report_list_to_send: - try: - feed.append_reports(report_list_to_send) - log.info(f"Appended {len(report_list_to_send)} reports to Enterprise EDR Feed {feed_id}") - except Exception as e: - log.debug(f"Failed sending {len(report_list_to_send)} reports: {e}") - - if malformed_reports: - log.warning("Some report(s) failed validation. See malformed_reports.json for reports that failed.") - try: - with open('malformed_reports.json', 'w') as f: - json.dump(malformed_reports, f, indent=4) - except Exception as e: - log.error(f"Failed to write malformed_reports to file: {e}") From ede253a9cb729c217503a002b5b5aac1beb94240 Mon Sep 17 00:00:00 2001 From: Amy Bowersox Date: Thu, 9 May 2024 12:42:46 -0600 Subject: [PATCH 05/13] updated copyright notices across the SDK source code files --- src/cbc_sdk/__init__.py | 11 +++++++++++ src/cbc_sdk/audit_remediation/__init__.py | 11 +++++++++++ src/cbc_sdk/audit_remediation/base.py | 2 +- src/cbc_sdk/audit_remediation/differential.py | 2 +- .../audit_remediation/models/device_summary.yaml | 10 ++++++++++ .../audit_remediation/models/differential.yaml | 10 ++++++++++ src/cbc_sdk/audit_remediation/models/facet.yaml | 10 ++++++++++ src/cbc_sdk/audit_remediation/models/result.yaml | 10 ++++++++++ src/cbc_sdk/audit_remediation/models/run.yaml | 10 ++++++++++ src/cbc_sdk/audit_remediation/models/template.yaml | 10 ++++++++++ src/cbc_sdk/base.py | 2 +- src/cbc_sdk/cache/__init__.py | 10 ++++++++++ src/cbc_sdk/cache/lru.py | 2 +- src/cbc_sdk/connection.py | 2 +- src/cbc_sdk/credential_providers/__init__.py | 11 +++++++++++ .../aws_sm_credential_provider.py | 2 +- src/cbc_sdk/credential_providers/default.py | 2 +- .../environ_credential_provider.py | 2 +- .../credential_providers/file_credential_provider.py | 2 +- .../keychain_credential_provider.py | 2 +- .../registry_credential_provider.py | 2 +- src/cbc_sdk/credentials.py | 2 +- src/cbc_sdk/endpoint_standard/__init__.py | 11 +++++++++++ src/cbc_sdk/endpoint_standard/base.py | 2 +- src/cbc_sdk/endpoint_standard/models/deviceInfo.yaml | 10 ++++++++++ .../models/enriched_event_facet.yaml | 10 ++++++++++ src/cbc_sdk/endpoint_standard/models/policyInfo.yaml | 10 ++++++++++ .../endpoint_standard/models/recommendation.yaml | 10 ++++++++++ .../models/recommendation_application.yaml | 10 ++++++++++ .../models/recommendation_impact.yaml | 10 ++++++++++ .../models/recommendation_new_rule.yaml | 10 ++++++++++ .../models/recommendation_workflow.yaml | 10 ++++++++++ src/cbc_sdk/endpoint_standard/models/usbDevice.yaml | 10 ++++++++++ .../endpoint_standard/models/usbDeviceApproval.yaml | 10 ++++++++++ .../endpoint_standard/models/usbDeviceBlock.yaml | 10 ++++++++++ src/cbc_sdk/endpoint_standard/recommendation.py | 2 +- src/cbc_sdk/endpoint_standard/usb_device_control.py | 2 +- src/cbc_sdk/enterprise_edr/__init__.py | 11 +++++++++++ src/cbc_sdk/enterprise_edr/auth_events.py | 2 +- src/cbc_sdk/enterprise_edr/models/auth_events.yaml | 10 ++++++++++ .../enterprise_edr/models/auth_events_facet.yaml | 10 ++++++++++ src/cbc_sdk/enterprise_edr/models/binary.yaml | 10 ++++++++++ src/cbc_sdk/enterprise_edr/models/feed.yaml | 10 ++++++++++ src/cbc_sdk/enterprise_edr/models/ioc_v2.yaml | 10 ++++++++++ src/cbc_sdk/enterprise_edr/models/iocs.yaml | 10 ++++++++++ src/cbc_sdk/enterprise_edr/models/report.yaml | 10 ++++++++++ .../enterprise_edr/models/report_severity.yaml | 10 ++++++++++ src/cbc_sdk/enterprise_edr/models/watchlist.yaml | 10 ++++++++++ src/cbc_sdk/enterprise_edr/threat_intelligence.py | 2 +- src/cbc_sdk/enterprise_edr/ubs.py | 2 +- src/cbc_sdk/errors.py | 3 ++- src/cbc_sdk/helpers.py | 2 +- src/cbc_sdk/live_response_api.py | 2 +- src/cbc_sdk/platform/__init__.py | 11 +++++++++++ src/cbc_sdk/platform/alerts.py | 2 +- src/cbc_sdk/platform/asset_groups.py | 2 +- src/cbc_sdk/platform/audit.py | 2 +- src/cbc_sdk/platform/base.py | 2 +- src/cbc_sdk/platform/devices.py | 2 +- src/cbc_sdk/platform/events.py | 2 +- src/cbc_sdk/platform/grants.py | 2 +- src/cbc_sdk/platform/jobs.py | 2 +- src/cbc_sdk/platform/legacy_alerts.py | 2 +- src/cbc_sdk/platform/models/alert_note.yaml | 10 ++++++++++ src/cbc_sdk/platform/models/asset_group.yaml | 10 ++++++++++ src/cbc_sdk/platform/models/audit_log.yaml | 10 ++++++++++ src/cbc_sdk/platform/models/device.yaml | 10 ++++++++++ src/cbc_sdk/platform/models/device_facet.yaml | 10 ++++++++++ src/cbc_sdk/platform/models/firewall_rule.yaml | 10 ++++++++++ src/cbc_sdk/platform/models/firewall_rule_group.yaml | 10 ++++++++++ src/cbc_sdk/platform/models/grant.yaml | 10 ++++++++++ src/cbc_sdk/platform/models/grouped_alert.yaml | 10 ++++++++++ src/cbc_sdk/platform/models/job.yaml | 10 ++++++++++ .../platform/models/network_threat_metadata.yaml | 10 ++++++++++ src/cbc_sdk/platform/models/observation.yaml | 10 ++++++++++ src/cbc_sdk/platform/models/observation_facet.yaml | 10 ++++++++++ src/cbc_sdk/platform/models/policy.yaml | 10 ++++++++++ src/cbc_sdk/platform/models/policy_rule.yaml | 10 ++++++++++ src/cbc_sdk/platform/models/policy_ruleconfig.yaml | 10 ++++++++++ src/cbc_sdk/platform/models/process_facets.yaml | 10 ++++++++++ src/cbc_sdk/platform/models/profile.yaml | 10 ++++++++++ src/cbc_sdk/platform/models/reputation_override.yaml | 10 ++++++++++ src/cbc_sdk/platform/models/stub.yaml | 10 ++++++++++ src/cbc_sdk/platform/models/user.yaml | 10 ++++++++++ src/cbc_sdk/platform/models/workflow.yaml | 10 ++++++++++ src/cbc_sdk/platform/network_threat_metadata.py | 2 +- src/cbc_sdk/platform/observations.py | 2 +- src/cbc_sdk/platform/policies.py | 2 +- src/cbc_sdk/platform/policy_ruleconfigs.py | 2 +- src/cbc_sdk/platform/previewer.py | 2 +- src/cbc_sdk/platform/processes.py | 2 +- src/cbc_sdk/platform/reputation.py | 2 +- src/cbc_sdk/platform/users.py | 2 +- src/cbc_sdk/platform/vulnerability_assessment.py | 2 +- src/cbc_sdk/rest_api.py | 2 +- src/cbc_sdk/utils.py | 2 +- src/cbc_sdk/winerror.py | 2 +- src/cbc_sdk/workload/__init__.py | 11 +++++++++++ src/cbc_sdk/workload/compliance_assessment.py | 2 +- src/cbc_sdk/workload/models/compliance_benchmark.yaml | 10 ++++++++++ src/cbc_sdk/workload/models/computeResource.yaml | 10 ++++++++++ .../workload/models/deviceVulnerabilitySummary.yaml | 10 ++++++++++ src/cbc_sdk/workload/models/sensorKit.yaml | 10 ++++++++++ src/cbc_sdk/workload/models/vulnerability.yaml | 10 ++++++++++ .../workload/models/vulnerabilityAssetView.yaml | 10 ++++++++++ .../workload/models/vulnerabilityOrgSummary.yaml | 10 ++++++++++ src/cbc_sdk/workload/nsx_remediation.py | 2 +- src/cbc_sdk/workload/sensor_lifecycle.py | 2 +- src/cbc_sdk/workload/vm_workloads_search.py | 2 +- 109 files changed, 684 insertions(+), 46 deletions(-) diff --git a/src/cbc_sdk/__init__.py b/src/cbc_sdk/__init__.py index 3fd4917b..47dd3f30 100644 --- a/src/cbc_sdk/__init__.py +++ b/src/cbc_sdk/__init__.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + from __future__ import absolute_import __title__ = 'cbc_sdk' diff --git a/src/cbc_sdk/audit_remediation/__init__.py b/src/cbc_sdk/audit_remediation/__init__.py index fe07eafe..567d851b 100644 --- a/src/cbc_sdk/audit_remediation/__init__.py +++ b/src/cbc_sdk/audit_remediation/__init__.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + # Exported public API for the Cb Audit and Remediation API from __future__ import absolute_import diff --git a/src/cbc_sdk/audit_remediation/base.py b/src/cbc_sdk/audit_remediation/base.py index d98f97f2..9b667aaa 100644 --- a/src/cbc_sdk/audit_remediation/base.py +++ b/src/cbc_sdk/audit_remediation/base.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/audit_remediation/differential.py b/src/cbc_sdk/audit_remediation/differential.py index e0d0c4fe..b004b47b 100644 --- a/src/cbc_sdk/audit_remediation/differential.py +++ b/src/cbc_sdk/audit_remediation/differential.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/audit_remediation/models/device_summary.yaml b/src/cbc_sdk/audit_remediation/models/device_summary.yaml index be85324f..d0f27cac 100644 --- a/src/cbc_sdk/audit_remediation/models/device_summary.yaml +++ b/src/cbc_sdk/audit_remediation/models/device_summary.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object required: [] # TODO(ww): Find out which result fields are required properties: diff --git a/src/cbc_sdk/audit_remediation/models/differential.yaml b/src/cbc_sdk/audit_remediation/models/differential.yaml index 73be243d..df797460 100644 --- a/src/cbc_sdk/audit_remediation/models/differential.yaml +++ b/src/cbc_sdk/audit_remediation/models/differential.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: newer_run_id: diff --git a/src/cbc_sdk/audit_remediation/models/facet.yaml b/src/cbc_sdk/audit_remediation/models/facet.yaml index b20151b3..5d62cf61 100644 --- a/src/cbc_sdk/audit_remediation/models/facet.yaml +++ b/src/cbc_sdk/audit_remediation/models/facet.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object required: [] # TODO(ww): Find out which result fields are required properties: diff --git a/src/cbc_sdk/audit_remediation/models/result.yaml b/src/cbc_sdk/audit_remediation/models/result.yaml index ff1d3bc8..41df045f 100644 --- a/src/cbc_sdk/audit_remediation/models/result.yaml +++ b/src/cbc_sdk/audit_remediation/models/result.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object required: [] # TODO(ww): Find out which result fields are required properties: diff --git a/src/cbc_sdk/audit_remediation/models/run.yaml b/src/cbc_sdk/audit_remediation/models/run.yaml index 31a3df33..941a882f 100644 --- a/src/cbc_sdk/audit_remediation/models/run.yaml +++ b/src/cbc_sdk/audit_remediation/models/run.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object required: - id diff --git a/src/cbc_sdk/audit_remediation/models/template.yaml b/src/cbc_sdk/audit_remediation/models/template.yaml index c28c24fd..7998a3fa 100644 --- a/src/cbc_sdk/audit_remediation/models/template.yaml +++ b/src/cbc_sdk/audit_remediation/models/template.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object required: - id diff --git a/src/cbc_sdk/base.py b/src/cbc_sdk/base.py index c61a7f80..17d852b5 100644 --- a/src/cbc_sdk/base.py +++ b/src/cbc_sdk/base.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/cache/__init__.py b/src/cbc_sdk/cache/__init__.py index cfd08705..f59532dd 100644 --- a/src/cbc_sdk/cache/__init__.py +++ b/src/cbc_sdk/cache/__init__.py @@ -1 +1,11 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. from cbc_sdk.cache.lru import lru_cache_function diff --git a/src/cbc_sdk/cache/lru.py b/src/cbc_sdk/cache/lru.py index efca7ea0..ab2d5f0b 100644 --- a/src/cbc_sdk/cache/lru.py +++ b/src/cbc_sdk/cache/lru.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/connection.py b/src/cbc_sdk/connection.py index 72251be2..c1c7c38b 100644 --- a/src/cbc_sdk/connection.py +++ b/src/cbc_sdk/connection.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/credential_providers/__init__.py b/src/cbc_sdk/credential_providers/__init__.py index 8f2209b9..9de1677e 100755 --- a/src/cbc_sdk/credential_providers/__init__.py +++ b/src/cbc_sdk/credential_providers/__init__.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + from __future__ import absolute_import from .file_credential_provider import FileCredentialProvider diff --git a/src/cbc_sdk/credential_providers/aws_sm_credential_provider.py b/src/cbc_sdk/credential_providers/aws_sm_credential_provider.py index a3ce17ca..3e0f2387 100644 --- a/src/cbc_sdk/credential_providers/aws_sm_credential_provider.py +++ b/src/cbc_sdk/credential_providers/aws_sm_credential_provider.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/credential_providers/default.py b/src/cbc_sdk/credential_providers/default.py index aabef359..a8b6ca58 100755 --- a/src/cbc_sdk/credential_providers/default.py +++ b/src/cbc_sdk/credential_providers/default.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/credential_providers/environ_credential_provider.py b/src/cbc_sdk/credential_providers/environ_credential_provider.py index f9609dcd..82c2c4e9 100755 --- a/src/cbc_sdk/credential_providers/environ_credential_provider.py +++ b/src/cbc_sdk/credential_providers/environ_credential_provider.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/credential_providers/file_credential_provider.py b/src/cbc_sdk/credential_providers/file_credential_provider.py index ef97b4eb..0574c400 100755 --- a/src/cbc_sdk/credential_providers/file_credential_provider.py +++ b/src/cbc_sdk/credential_providers/file_credential_provider.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/credential_providers/keychain_credential_provider.py b/src/cbc_sdk/credential_providers/keychain_credential_provider.py index f82867fc..773a46be 100644 --- a/src/cbc_sdk/credential_providers/keychain_credential_provider.py +++ b/src/cbc_sdk/credential_providers/keychain_credential_provider.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/credential_providers/registry_credential_provider.py b/src/cbc_sdk/credential_providers/registry_credential_provider.py index 2d6c3b15..8b8525f6 100755 --- a/src/cbc_sdk/credential_providers/registry_credential_provider.py +++ b/src/cbc_sdk/credential_providers/registry_credential_provider.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/credentials.py b/src/cbc_sdk/credentials.py index e0aa304e..570c64d2 100644 --- a/src/cbc_sdk/credentials.py +++ b/src/cbc_sdk/credentials.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/endpoint_standard/__init__.py b/src/cbc_sdk/endpoint_standard/__init__.py index 7e423641..96708206 100644 --- a/src/cbc_sdk/endpoint_standard/__init__.py +++ b/src/cbc_sdk/endpoint_standard/__init__.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + # Exported public API for the Cb Endpoint Standard API from __future__ import absolute_import diff --git a/src/cbc_sdk/endpoint_standard/base.py b/src/cbc_sdk/endpoint_standard/base.py index 16651fd9..e3e69bc6 100644 --- a/src/cbc_sdk/endpoint_standard/base.py +++ b/src/cbc_sdk/endpoint_standard/base.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/endpoint_standard/models/deviceInfo.yaml b/src/cbc_sdk/endpoint_standard/models/deviceInfo.yaml index 7d7106a7..91c62c17 100644 --- a/src/cbc_sdk/endpoint_standard/models/deviceInfo.yaml +++ b/src/cbc_sdk/endpoint_standard/models/deviceInfo.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: osVersion: diff --git a/src/cbc_sdk/endpoint_standard/models/enriched_event_facet.yaml b/src/cbc_sdk/endpoint_standard/models/enriched_event_facet.yaml index 1ddd62ab..af98fd50 100644 --- a/src/cbc_sdk/endpoint_standard/models/enriched_event_facet.yaml +++ b/src/cbc_sdk/endpoint_standard/models/enriched_event_facet.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: job_id: diff --git a/src/cbc_sdk/endpoint_standard/models/policyInfo.yaml b/src/cbc_sdk/endpoint_standard/models/policyInfo.yaml index b13dc207..3bba3a56 100644 --- a/src/cbc_sdk/endpoint_standard/models/policyInfo.yaml +++ b/src/cbc_sdk/endpoint_standard/models/policyInfo.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object required: - description diff --git a/src/cbc_sdk/endpoint_standard/models/recommendation.yaml b/src/cbc_sdk/endpoint_standard/models/recommendation.yaml index aef0bbc6..7aa989ec 100644 --- a/src/cbc_sdk/endpoint_standard/models/recommendation.yaml +++ b/src/cbc_sdk/endpoint_standard/models/recommendation.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: impact: diff --git a/src/cbc_sdk/endpoint_standard/models/recommendation_application.yaml b/src/cbc_sdk/endpoint_standard/models/recommendation_application.yaml index 68d7e833..236b7762 100644 --- a/src/cbc_sdk/endpoint_standard/models/recommendation_application.yaml +++ b/src/cbc_sdk/endpoint_standard/models/recommendation_application.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: type: diff --git a/src/cbc_sdk/endpoint_standard/models/recommendation_impact.yaml b/src/cbc_sdk/endpoint_standard/models/recommendation_impact.yaml index ec20b507..11ff7932 100644 --- a/src/cbc_sdk/endpoint_standard/models/recommendation_impact.yaml +++ b/src/cbc_sdk/endpoint_standard/models/recommendation_impact.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: event_count: diff --git a/src/cbc_sdk/endpoint_standard/models/recommendation_new_rule.yaml b/src/cbc_sdk/endpoint_standard/models/recommendation_new_rule.yaml index 2dc871c4..8b3e32b9 100644 --- a/src/cbc_sdk/endpoint_standard/models/recommendation_new_rule.yaml +++ b/src/cbc_sdk/endpoint_standard/models/recommendation_new_rule.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: action: diff --git a/src/cbc_sdk/endpoint_standard/models/recommendation_workflow.yaml b/src/cbc_sdk/endpoint_standard/models/recommendation_workflow.yaml index 03e51323..2eafd4ae 100644 --- a/src/cbc_sdk/endpoint_standard/models/recommendation_workflow.yaml +++ b/src/cbc_sdk/endpoint_standard/models/recommendation_workflow.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: changed_by: diff --git a/src/cbc_sdk/endpoint_standard/models/usbDevice.yaml b/src/cbc_sdk/endpoint_standard/models/usbDevice.yaml index 34724de4..846a995c 100755 --- a/src/cbc_sdk/endpoint_standard/models/usbDevice.yaml +++ b/src/cbc_sdk/endpoint_standard/models/usbDevice.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: created_at: diff --git a/src/cbc_sdk/endpoint_standard/models/usbDeviceApproval.yaml b/src/cbc_sdk/endpoint_standard/models/usbDeviceApproval.yaml index 5a275f10..0d4ddadc 100755 --- a/src/cbc_sdk/endpoint_standard/models/usbDeviceApproval.yaml +++ b/src/cbc_sdk/endpoint_standard/models/usbDeviceApproval.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: approval_name: diff --git a/src/cbc_sdk/endpoint_standard/models/usbDeviceBlock.yaml b/src/cbc_sdk/endpoint_standard/models/usbDeviceBlock.yaml index b1c30345..ca7b3728 100755 --- a/src/cbc_sdk/endpoint_standard/models/usbDeviceBlock.yaml +++ b/src/cbc_sdk/endpoint_standard/models/usbDeviceBlock.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: created_at: diff --git a/src/cbc_sdk/endpoint_standard/recommendation.py b/src/cbc_sdk/endpoint_standard/recommendation.py index a379bc8c..c0ab16e7 100644 --- a/src/cbc_sdk/endpoint_standard/recommendation.py +++ b/src/cbc_sdk/endpoint_standard/recommendation.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/endpoint_standard/usb_device_control.py b/src/cbc_sdk/endpoint_standard/usb_device_control.py index 617a662f..fd0cd424 100755 --- a/src/cbc_sdk/endpoint_standard/usb_device_control.py +++ b/src/cbc_sdk/endpoint_standard/usb_device_control.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/enterprise_edr/__init__.py b/src/cbc_sdk/enterprise_edr/__init__.py index 5d3c006a..47422b51 100644 --- a/src/cbc_sdk/enterprise_edr/__init__.py +++ b/src/cbc_sdk/enterprise_edr/__init__.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + from __future__ import absolute_import diff --git a/src/cbc_sdk/enterprise_edr/auth_events.py b/src/cbc_sdk/enterprise_edr/auth_events.py index 10836a46..31f7f0d7 100644 --- a/src/cbc_sdk/enterprise_edr/auth_events.py +++ b/src/cbc_sdk/enterprise_edr/auth_events.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/enterprise_edr/models/auth_events.yaml b/src/cbc_sdk/enterprise_edr/models/auth_events.yaml index 01b5df97..8002bd15 100644 --- a/src/cbc_sdk/enterprise_edr/models/auth_events.yaml +++ b/src/cbc_sdk/enterprise_edr/models/auth_events.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: auth_domain_name: diff --git a/src/cbc_sdk/enterprise_edr/models/auth_events_facet.yaml b/src/cbc_sdk/enterprise_edr/models/auth_events_facet.yaml index 92e4301d..496bf76b 100644 --- a/src/cbc_sdk/enterprise_edr/models/auth_events_facet.yaml +++ b/src/cbc_sdk/enterprise_edr/models/auth_events_facet.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: terms: diff --git a/src/cbc_sdk/enterprise_edr/models/binary.yaml b/src/cbc_sdk/enterprise_edr/models/binary.yaml index c19d7b14..54bc71a9 100644 --- a/src/cbc_sdk/enterprise_edr/models/binary.yaml +++ b/src/cbc_sdk/enterprise_edr/models/binary.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object required: - sha256 diff --git a/src/cbc_sdk/enterprise_edr/models/feed.yaml b/src/cbc_sdk/enterprise_edr/models/feed.yaml index ccb20bac..7c7431ee 100644 --- a/src/cbc_sdk/enterprise_edr/models/feed.yaml +++ b/src/cbc_sdk/enterprise_edr/models/feed.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object required: - name diff --git a/src/cbc_sdk/enterprise_edr/models/ioc_v2.yaml b/src/cbc_sdk/enterprise_edr/models/ioc_v2.yaml index a65f50cb..1475ae7f 100644 --- a/src/cbc_sdk/enterprise_edr/models/ioc_v2.yaml +++ b/src/cbc_sdk/enterprise_edr/models/ioc_v2.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object required: - id diff --git a/src/cbc_sdk/enterprise_edr/models/iocs.yaml b/src/cbc_sdk/enterprise_edr/models/iocs.yaml index 274cb7a8..0243991d 100644 --- a/src/cbc_sdk/enterprise_edr/models/iocs.yaml +++ b/src/cbc_sdk/enterprise_edr/models/iocs.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: md5: diff --git a/src/cbc_sdk/enterprise_edr/models/report.yaml b/src/cbc_sdk/enterprise_edr/models/report.yaml index 25875722..f935ab35 100644 --- a/src/cbc_sdk/enterprise_edr/models/report.yaml +++ b/src/cbc_sdk/enterprise_edr/models/report.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object required: - timestamp diff --git a/src/cbc_sdk/enterprise_edr/models/report_severity.yaml b/src/cbc_sdk/enterprise_edr/models/report_severity.yaml index da53e10e..aa8dc207 100644 --- a/src/cbc_sdk/enterprise_edr/models/report_severity.yaml +++ b/src/cbc_sdk/enterprise_edr/models/report_severity.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object required: - report_id diff --git a/src/cbc_sdk/enterprise_edr/models/watchlist.yaml b/src/cbc_sdk/enterprise_edr/models/watchlist.yaml index 1df866c1..04c44ce9 100644 --- a/src/cbc_sdk/enterprise_edr/models/watchlist.yaml +++ b/src/cbc_sdk/enterprise_edr/models/watchlist.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object required: - name diff --git a/src/cbc_sdk/enterprise_edr/threat_intelligence.py b/src/cbc_sdk/enterprise_edr/threat_intelligence.py index 8dc713be..90d5e7e5 100644 --- a/src/cbc_sdk/enterprise_edr/threat_intelligence.py +++ b/src/cbc_sdk/enterprise_edr/threat_intelligence.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/enterprise_edr/ubs.py b/src/cbc_sdk/enterprise_edr/ubs.py index e6718958..56b7af7e 100644 --- a/src/cbc_sdk/enterprise_edr/ubs.py +++ b/src/cbc_sdk/enterprise_edr/ubs.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/errors.py b/src/cbc_sdk/errors.py index 1e2b44a3..552df9b3 100644 --- a/src/cbc_sdk/errors.py +++ b/src/cbc_sdk/errors.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * @@ -10,6 +10,7 @@ # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Exceptions that are thrown by CBC SDK operations.""" diff --git a/src/cbc_sdk/helpers.py b/src/cbc_sdk/helpers.py index 4bedc623..915a9c56 100644 --- a/src/cbc_sdk/helpers.py +++ b/src/cbc_sdk/helpers.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/live_response_api.py b/src/cbc_sdk/live_response_api.py index 7a6249e6..c0b3cb41 100644 --- a/src/cbc_sdk/live_response_api.py +++ b/src/cbc_sdk/live_response_api.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/platform/__init__.py b/src/cbc_sdk/platform/__init__.py index e7dc9c00..b726d7dc 100644 --- a/src/cbc_sdk/platform/__init__.py +++ b/src/cbc_sdk/platform/__init__.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + from __future__ import absolute_import from cbc_sdk.platform.base import PlatformModel diff --git a/src/cbc_sdk/platform/alerts.py b/src/cbc_sdk/platform/alerts.py index c21fd5a2..a8397672 100644 --- a/src/cbc_sdk/platform/alerts.py +++ b/src/cbc_sdk/platform/alerts.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/platform/asset_groups.py b/src/cbc_sdk/platform/asset_groups.py index 144190ab..720e44cf 100644 --- a/src/cbc_sdk/platform/asset_groups.py +++ b/src/cbc_sdk/platform/asset_groups.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2024. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/platform/audit.py b/src/cbc_sdk/platform/audit.py index 117c3fb5..bdff0a41 100644 --- a/src/cbc_sdk/platform/audit.py +++ b/src/cbc_sdk/platform/audit.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/platform/base.py b/src/cbc_sdk/platform/base.py index 8a3e1204..5d40b196 100644 --- a/src/cbc_sdk/platform/base.py +++ b/src/cbc_sdk/platform/base.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/platform/devices.py b/src/cbc_sdk/platform/devices.py index 0d3446a5..430a157d 100644 --- a/src/cbc_sdk/platform/devices.py +++ b/src/cbc_sdk/platform/devices.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2024. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/platform/events.py b/src/cbc_sdk/platform/events.py index 1251a44e..d4261f8a 100644 --- a/src/cbc_sdk/platform/events.py +++ b/src/cbc_sdk/platform/events.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/platform/grants.py b/src/cbc_sdk/platform/grants.py index dd2ea85c..b18d461d 100644 --- a/src/cbc_sdk/platform/grants.py +++ b/src/cbc_sdk/platform/grants.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/platform/jobs.py b/src/cbc_sdk/platform/jobs.py index 03bd4e26..dcae1e32 100644 --- a/src/cbc_sdk/platform/jobs.py +++ b/src/cbc_sdk/platform/jobs.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/platform/legacy_alerts.py b/src/cbc_sdk/platform/legacy_alerts.py index 90488892..79e31097 100644 --- a/src/cbc_sdk/platform/legacy_alerts.py +++ b/src/cbc_sdk/platform/legacy_alerts.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/platform/models/alert_note.yaml b/src/cbc_sdk/platform/models/alert_note.yaml index 61360667..c2ff1bb1 100644 --- a/src/cbc_sdk/platform/models/alert_note.yaml +++ b/src/cbc_sdk/platform/models/alert_note.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: author: diff --git a/src/cbc_sdk/platform/models/asset_group.yaml b/src/cbc_sdk/platform/models/asset_group.yaml index 8fbf6ea6..0b4e7d8c 100644 --- a/src/cbc_sdk/platform/models/asset_group.yaml +++ b/src/cbc_sdk/platform/models/asset_group.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: id: diff --git a/src/cbc_sdk/platform/models/audit_log.yaml b/src/cbc_sdk/platform/models/audit_log.yaml index 842ad091..3cebb7ee 100644 --- a/src/cbc_sdk/platform/models/audit_log.yaml +++ b/src/cbc_sdk/platform/models/audit_log.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: actor_ip: diff --git a/src/cbc_sdk/platform/models/device.yaml b/src/cbc_sdk/platform/models/device.yaml index 41faeb56..5c503be6 100644 --- a/src/cbc_sdk/platform/models/device.yaml +++ b/src/cbc_sdk/platform/models/device.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: activation_code: diff --git a/src/cbc_sdk/platform/models/device_facet.yaml b/src/cbc_sdk/platform/models/device_facet.yaml index 55551603..769a1f0e 100644 --- a/src/cbc_sdk/platform/models/device_facet.yaml +++ b/src/cbc_sdk/platform/models/device_facet.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: field: diff --git a/src/cbc_sdk/platform/models/firewall_rule.yaml b/src/cbc_sdk/platform/models/firewall_rule.yaml index 363896e6..475bbfc1 100644 --- a/src/cbc_sdk/platform/models/firewall_rule.yaml +++ b/src/cbc_sdk/platform/models/firewall_rule.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object required: - action diff --git a/src/cbc_sdk/platform/models/firewall_rule_group.yaml b/src/cbc_sdk/platform/models/firewall_rule_group.yaml index 90a964bc..cb1a6b59 100644 --- a/src/cbc_sdk/platform/models/firewall_rule_group.yaml +++ b/src/cbc_sdk/platform/models/firewall_rule_group.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: name: diff --git a/src/cbc_sdk/platform/models/grant.yaml b/src/cbc_sdk/platform/models/grant.yaml index 4357fa7e..c7f5cc47 100644 --- a/src/cbc_sdk/platform/models/grant.yaml +++ b/src/cbc_sdk/platform/models/grant.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: principal: diff --git a/src/cbc_sdk/platform/models/grouped_alert.yaml b/src/cbc_sdk/platform/models/grouped_alert.yaml index ed7f0f68..de406d21 100644 --- a/src/cbc_sdk/platform/models/grouped_alert.yaml +++ b/src/cbc_sdk/platform/models/grouped_alert.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: count: diff --git a/src/cbc_sdk/platform/models/job.yaml b/src/cbc_sdk/platform/models/job.yaml index 93c936c3..56d9cdd5 100644 --- a/src/cbc_sdk/platform/models/job.yaml +++ b/src/cbc_sdk/platform/models/job.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: connector_id: diff --git a/src/cbc_sdk/platform/models/network_threat_metadata.yaml b/src/cbc_sdk/platform/models/network_threat_metadata.yaml index c85e3b76..0439732d 100644 --- a/src/cbc_sdk/platform/models/network_threat_metadata.yaml +++ b/src/cbc_sdk/platform/models/network_threat_metadata.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: detector_abstract: diff --git a/src/cbc_sdk/platform/models/observation.yaml b/src/cbc_sdk/platform/models/observation.yaml index 3a5a96ab..bc5e6ad9 100644 --- a/src/cbc_sdk/platform/models/observation.yaml +++ b/src/cbc_sdk/platform/models/observation.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: alert_category: diff --git a/src/cbc_sdk/platform/models/observation_facet.yaml b/src/cbc_sdk/platform/models/observation_facet.yaml index 84bc9cb8..a4ae495f 100644 --- a/src/cbc_sdk/platform/models/observation_facet.yaml +++ b/src/cbc_sdk/platform/models/observation_facet.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: terms: diff --git a/src/cbc_sdk/platform/models/policy.yaml b/src/cbc_sdk/platform/models/policy.yaml index c22a0ba8..b3ab683b 100644 --- a/src/cbc_sdk/platform/models/policy.yaml +++ b/src/cbc_sdk/platform/models/policy.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: id: diff --git a/src/cbc_sdk/platform/models/policy_rule.yaml b/src/cbc_sdk/platform/models/policy_rule.yaml index 44af8516..a2cd7671 100644 --- a/src/cbc_sdk/platform/models/policy_rule.yaml +++ b/src/cbc_sdk/platform/models/policy_rule.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object required: - required diff --git a/src/cbc_sdk/platform/models/policy_ruleconfig.yaml b/src/cbc_sdk/platform/models/policy_ruleconfig.yaml index ea7a1405..cb1892f3 100644 --- a/src/cbc_sdk/platform/models/policy_ruleconfig.yaml +++ b/src/cbc_sdk/platform/models/policy_ruleconfig.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: id: diff --git a/src/cbc_sdk/platform/models/process_facets.yaml b/src/cbc_sdk/platform/models/process_facets.yaml index 44fd57b5..baec5dfa 100644 --- a/src/cbc_sdk/platform/models/process_facets.yaml +++ b/src/cbc_sdk/platform/models/process_facets.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: job_id: diff --git a/src/cbc_sdk/platform/models/profile.yaml b/src/cbc_sdk/platform/models/profile.yaml index d1c0bf9e..30f4adb7 100644 --- a/src/cbc_sdk/platform/models/profile.yaml +++ b/src/cbc_sdk/platform/models/profile.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: profile_uuid: diff --git a/src/cbc_sdk/platform/models/reputation_override.yaml b/src/cbc_sdk/platform/models/reputation_override.yaml index 64439b71..21d08b0d 100644 --- a/src/cbc_sdk/platform/models/reputation_override.yaml +++ b/src/cbc_sdk/platform/models/reputation_override.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: id: diff --git a/src/cbc_sdk/platform/models/stub.yaml b/src/cbc_sdk/platform/models/stub.yaml index e7e91d34..320421e7 100644 --- a/src/cbc_sdk/platform/models/stub.yaml +++ b/src/cbc_sdk/platform/models/stub.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object required: - name diff --git a/src/cbc_sdk/platform/models/user.yaml b/src/cbc_sdk/platform/models/user.yaml index c81b146c..41683249 100644 --- a/src/cbc_sdk/platform/models/user.yaml +++ b/src/cbc_sdk/platform/models/user.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: org_key: diff --git a/src/cbc_sdk/platform/models/workflow.yaml b/src/cbc_sdk/platform/models/workflow.yaml index 6c094701..f5c6572e 100644 --- a/src/cbc_sdk/platform/models/workflow.yaml +++ b/src/cbc_sdk/platform/models/workflow.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object description: Tracking system for alerts as they are triaged and resolved properties: diff --git a/src/cbc_sdk/platform/network_threat_metadata.py b/src/cbc_sdk/platform/network_threat_metadata.py index 038b661b..43784213 100644 --- a/src/cbc_sdk/platform/network_threat_metadata.py +++ b/src/cbc_sdk/platform/network_threat_metadata.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/platform/observations.py b/src/cbc_sdk/platform/observations.py index 38143e16..816685e9 100644 --- a/src/cbc_sdk/platform/observations.py +++ b/src/cbc_sdk/platform/observations.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/platform/policies.py b/src/cbc_sdk/platform/policies.py index 2f3f9291..2ec225c7 100644 --- a/src/cbc_sdk/platform/policies.py +++ b/src/cbc_sdk/platform/policies.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2024. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/platform/policy_ruleconfigs.py b/src/cbc_sdk/platform/policy_ruleconfigs.py index a0f8d1fa..c3a23aa9 100644 --- a/src/cbc_sdk/platform/policy_ruleconfigs.py +++ b/src/cbc_sdk/platform/policy_ruleconfigs.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/platform/previewer.py b/src/cbc_sdk/platform/previewer.py index a875c367..420236e9 100644 --- a/src/cbc_sdk/platform/previewer.py +++ b/src/cbc_sdk/platform/previewer.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2024. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/platform/processes.py b/src/cbc_sdk/platform/processes.py index 4093ab7f..9ab52d62 100644 --- a/src/cbc_sdk/platform/processes.py +++ b/src/cbc_sdk/platform/processes.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/platform/reputation.py b/src/cbc_sdk/platform/reputation.py index 0459bc9d..cbde4033 100644 --- a/src/cbc_sdk/platform/reputation.py +++ b/src/cbc_sdk/platform/reputation.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/platform/users.py b/src/cbc_sdk/platform/users.py index 9e5673f6..e430333a 100644 --- a/src/cbc_sdk/platform/users.py +++ b/src/cbc_sdk/platform/users.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/platform/vulnerability_assessment.py b/src/cbc_sdk/platform/vulnerability_assessment.py index 0a67b81b..f4ef17a9 100644 --- a/src/cbc_sdk/platform/vulnerability_assessment.py +++ b/src/cbc_sdk/platform/vulnerability_assessment.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2021-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/rest_api.py b/src/cbc_sdk/rest_api.py index 3a075df8..8b976b02 100644 --- a/src/cbc_sdk/rest_api.py +++ b/src/cbc_sdk/rest_api.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/utils.py b/src/cbc_sdk/utils.py index 2dbfcffa..a6ab7d02 100755 --- a/src/cbc_sdk/utils.py +++ b/src/cbc_sdk/utils.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/winerror.py b/src/cbc_sdk/winerror.py index a2d98399..05e93203 100644 --- a/src/cbc_sdk/winerror.py +++ b/src/cbc_sdk/winerror.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/workload/__init__.py b/src/cbc_sdk/workload/__init__.py index e92bc689..df38eeee 100644 --- a/src/cbc_sdk/workload/__init__.py +++ b/src/cbc_sdk/workload/__init__.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + from __future__ import absolute_import from cbc_sdk.workload.vm_workloads_search import VCenterComputeResource, AWSComputeResource diff --git a/src/cbc_sdk/workload/compliance_assessment.py b/src/cbc_sdk/workload/compliance_assessment.py index 42d9f9f7..c03af2f7 100644 --- a/src/cbc_sdk/workload/compliance_assessment.py +++ b/src/cbc_sdk/workload/compliance_assessment.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2021-2024. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/workload/models/compliance_benchmark.yaml b/src/cbc_sdk/workload/models/compliance_benchmark.yaml index bf248f56..f1c4a9bd 100644 --- a/src/cbc_sdk/workload/models/compliance_benchmark.yaml +++ b/src/cbc_sdk/workload/models/compliance_benchmark.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: id: diff --git a/src/cbc_sdk/workload/models/computeResource.yaml b/src/cbc_sdk/workload/models/computeResource.yaml index 146887d3..40eb10bb 100644 --- a/src/cbc_sdk/workload/models/computeResource.yaml +++ b/src/cbc_sdk/workload/models/computeResource.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: id: diff --git a/src/cbc_sdk/workload/models/deviceVulnerabilitySummary.yaml b/src/cbc_sdk/workload/models/deviceVulnerabilitySummary.yaml index 308b79d4..4531c090 100644 --- a/src/cbc_sdk/workload/models/deviceVulnerabilitySummary.yaml +++ b/src/cbc_sdk/workload/models/deviceVulnerabilitySummary.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: last_sync_ts: diff --git a/src/cbc_sdk/workload/models/sensorKit.yaml b/src/cbc_sdk/workload/models/sensorKit.yaml index a0199391..839d0860 100755 --- a/src/cbc_sdk/workload/models/sensorKit.yaml +++ b/src/cbc_sdk/workload/models/sensorKit.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: sensor_type: diff --git a/src/cbc_sdk/workload/models/vulnerability.yaml b/src/cbc_sdk/workload/models/vulnerability.yaml index b27b0f96..8d5114f4 100644 --- a/src/cbc_sdk/workload/models/vulnerability.yaml +++ b/src/cbc_sdk/workload/models/vulnerability.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: affected_assets: diff --git a/src/cbc_sdk/workload/models/vulnerabilityAssetView.yaml b/src/cbc_sdk/workload/models/vulnerabilityAssetView.yaml index da48bcb8..635b21c9 100644 --- a/src/cbc_sdk/workload/models/vulnerabilityAssetView.yaml +++ b/src/cbc_sdk/workload/models/vulnerabilityAssetView.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: array items: type: object diff --git a/src/cbc_sdk/workload/models/vulnerabilityOrgSummary.yaml b/src/cbc_sdk/workload/models/vulnerabilityOrgSummary.yaml index 7e42eb66..240298bc 100644 --- a/src/cbc_sdk/workload/models/vulnerabilityOrgSummary.yaml +++ b/src/cbc_sdk/workload/models/vulnerabilityOrgSummary.yaml @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. type: object properties: monitored_assets: diff --git a/src/cbc_sdk/workload/nsx_remediation.py b/src/cbc_sdk/workload/nsx_remediation.py index c492b421..55d67739 100644 --- a/src/cbc_sdk/workload/nsx_remediation.py +++ b/src/cbc_sdk/workload/nsx_remediation.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/workload/sensor_lifecycle.py b/src/cbc_sdk/workload/sensor_lifecycle.py index a2d964fc..20ee936e 100755 --- a/src/cbc_sdk/workload/sensor_lifecycle.py +++ b/src/cbc_sdk/workload/sensor_lifecycle.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/cbc_sdk/workload/vm_workloads_search.py b/src/cbc_sdk/workload/vm_workloads_search.py index 7a3d16d4..6eec2dc5 100644 --- a/src/cbc_sdk/workload/vm_workloads_search.py +++ b/src/cbc_sdk/workload/vm_workloads_search.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2021-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * From 0d2cda95aedbd3209146059ffad20797e05d91b1 Mon Sep 17 00:00:00 2001 From: Amy Bowersox Date: Thu, 9 May 2024 13:57:32 -0600 Subject: [PATCH 06/13] replaced copyright blocks in unit test code --- src/conftest.py | 11 +++++++++++ src/tests/__init__.py | 10 ++++++++++ src/tests/unit/__init__.py | 10 ++++++++++ src/tests/unit/audit_remediation/__init__.py | 10 ++++++++++ .../audit_remediation/test_audit_remediation_base.py | 11 +++++++++++ .../unit/audit_remediation/test_differential.py | 2 +- src/tests/unit/audit_remediation/test_models.py | 11 +++++++++++ src/tests/unit/audit_remediation/test_rest_api.py | 11 +++++++++++ .../unit/audit_remediation/test_scheduled_runs.py | 11 +++++++++++ src/tests/unit/base/test_base_models.py | 11 +++++++++++ src/tests/unit/base/test_queries.py | 12 ++++++++++++ src/tests/unit/conftest.py | 2 +- src/tests/unit/credential_providers/__init__.py | 10 ++++++++++ .../credential_providers/test_aws_secrets_manager.py | 2 +- src/tests/unit/credential_providers/test_default.py | 2 +- src/tests/unit/credential_providers/test_environ.py | 2 +- src/tests/unit/credential_providers/test_file.py | 2 +- src/tests/unit/credential_providers/test_keychain.py | 2 +- src/tests/unit/credential_providers/test_registry.py | 2 +- .../test_endpoint_standard_enriched_events.py | 11 +++++++++++ .../test_endpoint_standard_enriched_events_facet.py | 11 +++++++++++ .../test_endpoint_standard_events.py | 11 +++++++++++ .../unit/endpoint_standard/test_recommendation.py | 2 +- src/tests/unit/endpoint_standard/test_usb_device.py | 2 +- .../endpoint_standard/test_usb_device_approval.py | 2 +- .../unit/endpoint_standard/test_usb_device_block.py | 2 +- src/tests/unit/enterprise_edr/test_auth_events.py | 11 +++++++++++ .../test_enterprise_edr_threatintel.py | 12 ++++++++++++ .../unit/enterprise_edr/test_enterprise_edr_ubs.py | 11 +++++++++++ src/tests/unit/fixtures/CBCSDKMock.py | 2 +- .../fixtures/audit_remediation/mock_differential.py | 11 +++++++++++ .../unit/fixtures/audit_remediation/mock_runs.py | 10 ++++++++++ .../unit/fixtures/audit_remediation/mock_scroll.py | 11 +++++++++++ .../fixtures/audit_remediation/mock_templates.py | 11 +++++++++++ .../endpoint_standard/mock_enriched_events.py | 11 +++++++++++ .../endpoint_standard/mock_enriched_events_facet.py | 11 +++++++++++ .../endpoint_standard/mock_recommendation.py | 11 +++++++++++ .../fixtures/endpoint_standard/mock_usb_devices.py | 11 +++++++++++ .../unit/fixtures/enterprise_edr/mock_auth_events.py | 11 +++++++++++ .../unit/fixtures/enterprise_edr/mock_threatintel.py | 11 +++++++++++ src/tests/unit/fixtures/enterprise_edr/mock_ubs.py | 11 +++++++++++ .../unit/fixtures/live_response/mock_command.py | 11 +++++++++++ src/tests/unit/fixtures/live_response/mock_device.py | 11 +++++++++++ .../unit/fixtures/live_response/mock_session.py | 11 +++++++++++ src/tests/unit/fixtures/mock_credentials.py | 2 +- src/tests/unit/fixtures/mock_rest_api.py | 2 +- .../platform/mock_alert_v6_v7_compatibility.py | 11 +++++++++++ src/tests/unit/fixtures/platform/mock_alerts_v7.py | 11 +++++++++++ .../unit/fixtures/platform/mock_asset_groups.py | 11 +++++++++++ src/tests/unit/fixtures/platform/mock_audit.py | 11 +++++++++++ src/tests/unit/fixtures/platform/mock_devices.py | 11 +++++++++++ src/tests/unit/fixtures/platform/mock_events.py | 11 +++++++++++ src/tests/unit/fixtures/platform/mock_grants.py | 11 +++++++++++ src/tests/unit/fixtures/platform/mock_jobs.py | 11 +++++++++++ .../platform/mock_network_threat_metadata.py | 11 +++++++++++ .../unit/fixtures/platform/mock_observations.py | 11 +++++++++++ src/tests/unit/fixtures/platform/mock_policies.py | 11 +++++++++++ .../fixtures/platform/mock_policy_ruleconfigs.py | 11 +++++++++++ src/tests/unit/fixtures/platform/mock_process.py | 11 +++++++++++ .../fixtures/platform/mock_reputation_override.py | 11 +++++++++++ src/tests/unit/fixtures/platform/mock_users.py | 11 +++++++++++ .../unit/fixtures/platform/mock_vulnerabilities.py | 11 +++++++++++ src/tests/unit/fixtures/stubobject.py | 11 +++++++++++ src/tests/unit/fixtures/stubresponse.py | 11 +++++++++++ src/tests/unit/fixtures/workload/mock_compliance.py | 11 +++++++++++ .../unit/fixtures/workload/mock_nsx_remediation.py | 11 +++++++++++ src/tests/unit/fixtures/workload/mock_search.py | 11 +++++++++++ .../unit/fixtures/workload/mock_sensor_lifecycle.py | 11 +++++++++++ src/tests/unit/platform/test_alertsv6_api.py | 2 +- src/tests/unit/platform/test_alertsv7_api.py | 2 +- .../unit/platform/test_alertsv7_v6_compatibility.py | 2 +- src/tests/unit/platform/test_asset_groups.py | 2 +- src/tests/unit/platform/test_audit.py | 2 +- src/tests/unit/platform/test_devicev6_api.py | 2 +- src/tests/unit/platform/test_grants.py | 11 +++++++++++ src/tests/unit/platform/test_jobs.py | 12 ++++++++++++ .../unit/platform/test_network_threat_metadata.py | 11 +++++++++++ src/tests/unit/platform/test_observations.py | 11 +++++++++++ .../test_platform_alerts_sdk150_breaking_changes.py | 2 +- src/tests/unit/platform/test_platform_devices.py | 11 +++++++++++ .../unit/platform/test_platform_dynamic_reference.py | 11 +++++++++++ src/tests/unit/platform/test_platform_events.py | 11 +++++++++++ src/tests/unit/platform/test_platform_models.py | 2 +- src/tests/unit/platform/test_platform_process.py | 11 +++++++++++ src/tests/unit/platform/test_platform_query.py | 11 +++++++++++ src/tests/unit/platform/test_policies.py | 2 +- src/tests/unit/platform/test_policy_ruleconfigs.py | 2 +- src/tests/unit/platform/test_reputation_overrides.py | 2 +- src/tests/unit/platform/test_users.py | 12 ++++++++++++ .../unit/platform/test_vulnerability_assessment.py | 2 +- src/tests/unit/test_base_api.py | 2 +- src/tests/unit/test_connection.py | 2 +- src/tests/unit/test_credentials.py | 2 +- src/tests/unit/test_helpers.py | 2 +- src/tests/unit/test_live_response_api.py | 2 +- src/tests/unit/test_rest_api.py | 2 +- src/tests/unit/test_utils.py | 2 +- src/tests/unit/workload/test_compliance.py | 2 +- src/tests/unit/workload/test_nsx_remediation.py | 2 +- src/tests/unit/workload/test_search.py | 2 +- src/tests/unit/workload/test_sensor_lifecycle.py | 2 +- 101 files changed, 730 insertions(+), 38 deletions(-) diff --git a/src/conftest.py b/src/conftest.py index 706817cd..73a8ab65 100644 --- a/src/conftest.py +++ b/src/conftest.py @@ -1,2 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Test configuration""" from tests.unit.fixtures.enterprise_edr.mock_threatintel import * # noqa: F401 F403 diff --git a/src/tests/__init__.py b/src/tests/__init__.py index e69de29b..b883a28e 100755 --- a/src/tests/__init__.py +++ b/src/tests/__init__.py @@ -0,0 +1,10 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. diff --git a/src/tests/unit/__init__.py b/src/tests/unit/__init__.py index e69de29b..b883a28e 100755 --- a/src/tests/unit/__init__.py +++ b/src/tests/unit/__init__.py @@ -0,0 +1,10 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. diff --git a/src/tests/unit/audit_remediation/__init__.py b/src/tests/unit/audit_remediation/__init__.py index e69de29b..b883a28e 100755 --- a/src/tests/unit/audit_remediation/__init__.py +++ b/src/tests/unit/audit_remediation/__init__.py @@ -0,0 +1,10 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. diff --git a/src/tests/unit/audit_remediation/test_audit_remediation_base.py b/src/tests/unit/audit_remediation/test_audit_remediation_base.py index 146c17e9..55ed08d3 100644 --- a/src/tests/unit/audit_remediation/test_audit_remediation_base.py +++ b/src/tests/unit/audit_remediation/test_audit_remediation_base.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Testing Audit and Remediation.""" import pytest diff --git a/src/tests/unit/audit_remediation/test_differential.py b/src/tests/unit/audit_remediation/test_differential.py index 846459e8..813f78e5 100644 --- a/src/tests/unit/audit_remediation/test_differential.py +++ b/src/tests/unit/audit_remediation/test_differential.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/audit_remediation/test_models.py b/src/tests/unit/audit_remediation/test_models.py index cd3965e2..7fe5b393 100755 --- a/src/tests/unit/audit_remediation/test_models.py +++ b/src/tests/unit/audit_remediation/test_models.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Tests for the model object for audit and remediation.""" import pytest diff --git a/src/tests/unit/audit_remediation/test_rest_api.py b/src/tests/unit/audit_remediation/test_rest_api.py index 4039e8b7..24128eb3 100755 --- a/src/tests/unit/audit_remediation/test_rest_api.py +++ b/src/tests/unit/audit_remediation/test_rest_api.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Tests for audit and remediation queries.""" import pytest diff --git a/src/tests/unit/audit_remediation/test_scheduled_runs.py b/src/tests/unit/audit_remediation/test_scheduled_runs.py index ad5767e1..2b68cbf3 100644 --- a/src/tests/unit/audit_remediation/test_scheduled_runs.py +++ b/src/tests/unit/audit_remediation/test_scheduled_runs.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Test Scheduled Runs and Templates""" import pytest diff --git a/src/tests/unit/base/test_base_models.py b/src/tests/unit/base/test_base_models.py index 85969ca8..81b40504 100644 --- a/src/tests/unit/base/test_base_models.py +++ b/src/tests/unit/base/test_base_models.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Testing the MutableBaseModel and NewBaseModel objects of cbc_sdk.base""" import pytest diff --git a/src/tests/unit/base/test_queries.py b/src/tests/unit/base/test_queries.py index 242e218d..1377b4c7 100644 --- a/src/tests/unit/base/test_queries.py +++ b/src/tests/unit/base/test_queries.py @@ -1,4 +1,16 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Testing the Query objects of cbc_sdk.base""" + import pytest from unittest.mock import patch diff --git a/src/tests/unit/conftest.py b/src/tests/unit/conftest.py index 12bec427..1fb30955 100755 --- a/src/tests/unit/conftest.py +++ b/src/tests/unit/conftest.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/credential_providers/__init__.py b/src/tests/unit/credential_providers/__init__.py index e69de29b..b883a28e 100755 --- a/src/tests/unit/credential_providers/__init__.py +++ b/src/tests/unit/credential_providers/__init__.py @@ -0,0 +1,10 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. diff --git a/src/tests/unit/credential_providers/test_aws_secrets_manager.py b/src/tests/unit/credential_providers/test_aws_secrets_manager.py index d3b49b8d..dad55b9d 100644 --- a/src/tests/unit/credential_providers/test_aws_secrets_manager.py +++ b/src/tests/unit/credential_providers/test_aws_secrets_manager.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/credential_providers/test_default.py b/src/tests/unit/credential_providers/test_default.py index e27fa872..30f94e89 100755 --- a/src/tests/unit/credential_providers/test_default.py +++ b/src/tests/unit/credential_providers/test_default.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/credential_providers/test_environ.py b/src/tests/unit/credential_providers/test_environ.py index 82432162..906b9414 100755 --- a/src/tests/unit/credential_providers/test_environ.py +++ b/src/tests/unit/credential_providers/test_environ.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/credential_providers/test_file.py b/src/tests/unit/credential_providers/test_file.py index c2f0dceb..50e35d44 100755 --- a/src/tests/unit/credential_providers/test_file.py +++ b/src/tests/unit/credential_providers/test_file.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/credential_providers/test_keychain.py b/src/tests/unit/credential_providers/test_keychain.py index 0141860e..1e382638 100644 --- a/src/tests/unit/credential_providers/test_keychain.py +++ b/src/tests/unit/credential_providers/test_keychain.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/credential_providers/test_registry.py b/src/tests/unit/credential_providers/test_registry.py index 43699f89..28161cac 100755 --- a/src/tests/unit/credential_providers/test_registry.py +++ b/src/tests/unit/credential_providers/test_registry.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/endpoint_standard/test_endpoint_standard_enriched_events.py b/src/tests/unit/endpoint_standard/test_endpoint_standard_enriched_events.py index 9771ad9b..c1313666 100644 --- a/src/tests/unit/endpoint_standard/test_endpoint_standard_enriched_events.py +++ b/src/tests/unit/endpoint_standard/test_endpoint_standard_enriched_events.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Testing EnrichedEvent objects of cbc_sdk.endpoint_standard""" import pytest diff --git a/src/tests/unit/endpoint_standard/test_endpoint_standard_enriched_events_facet.py b/src/tests/unit/endpoint_standard/test_endpoint_standard_enriched_events_facet.py index 73c2adac..ce3e1998 100644 --- a/src/tests/unit/endpoint_standard/test_endpoint_standard_enriched_events_facet.py +++ b/src/tests/unit/endpoint_standard/test_endpoint_standard_enriched_events_facet.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Testing EnrichedEventFacet objects of cbc_sdk.endpoint_standard""" import pytest diff --git a/src/tests/unit/endpoint_standard/test_endpoint_standard_events.py b/src/tests/unit/endpoint_standard/test_endpoint_standard_events.py index 3bb46fb2..e87136f0 100644 --- a/src/tests/unit/endpoint_standard/test_endpoint_standard_events.py +++ b/src/tests/unit/endpoint_standard/test_endpoint_standard_events.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Testing Event object of cbc_sdk.endpoint_standard""" import pytest diff --git a/src/tests/unit/endpoint_standard/test_recommendation.py b/src/tests/unit/endpoint_standard/test_recommendation.py index 05060943..c3265520 100644 --- a/src/tests/unit/endpoint_standard/test_recommendation.py +++ b/src/tests/unit/endpoint_standard/test_recommendation.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/endpoint_standard/test_usb_device.py b/src/tests/unit/endpoint_standard/test_usb_device.py index e4dc3751..4530b38e 100755 --- a/src/tests/unit/endpoint_standard/test_usb_device.py +++ b/src/tests/unit/endpoint_standard/test_usb_device.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/endpoint_standard/test_usb_device_approval.py b/src/tests/unit/endpoint_standard/test_usb_device_approval.py index f65ba16c..7a051830 100755 --- a/src/tests/unit/endpoint_standard/test_usb_device_approval.py +++ b/src/tests/unit/endpoint_standard/test_usb_device_approval.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/endpoint_standard/test_usb_device_block.py b/src/tests/unit/endpoint_standard/test_usb_device_block.py index 9784f1c5..8270b049 100755 --- a/src/tests/unit/endpoint_standard/test_usb_device_block.py +++ b/src/tests/unit/endpoint_standard/test_usb_device_block.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/enterprise_edr/test_auth_events.py b/src/tests/unit/enterprise_edr/test_auth_events.py index 412bc30e..de335ab5 100644 --- a/src/tests/unit/enterprise_edr/test_auth_events.py +++ b/src/tests/unit/enterprise_edr/test_auth_events.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Testing AuthEvent objects of cbc_sdk.enterprise_edr""" import pytest diff --git a/src/tests/unit/enterprise_edr/test_enterprise_edr_threatintel.py b/src/tests/unit/enterprise_edr/test_enterprise_edr_threatintel.py index 736de751..d2dd6392 100644 --- a/src/tests/unit/enterprise_edr/test_enterprise_edr_threatintel.py +++ b/src/tests/unit/enterprise_edr/test_enterprise_edr_threatintel.py @@ -1,4 +1,16 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Testing Watchlist, Report, Feed objects of cbc_sdk.enterprise_edr""" + import copy import pytest diff --git a/src/tests/unit/enterprise_edr/test_enterprise_edr_ubs.py b/src/tests/unit/enterprise_edr/test_enterprise_edr_ubs.py index f3fcb728..280f73a4 100644 --- a/src/tests/unit/enterprise_edr/test_enterprise_edr_ubs.py +++ b/src/tests/unit/enterprise_edr/test_enterprise_edr_ubs.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Testing Binary, Downloads objects of cbc_sdk.enterprise_edr""" import logging diff --git a/src/tests/unit/fixtures/CBCSDKMock.py b/src/tests/unit/fixtures/CBCSDKMock.py index aca41e9d..f7bfaf58 100644 --- a/src/tests/unit/fixtures/CBCSDKMock.py +++ b/src/tests/unit/fixtures/CBCSDKMock.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/fixtures/audit_remediation/mock_differential.py b/src/tests/unit/fixtures/audit_remediation/mock_differential.py index d5e20734..e844004d 100644 --- a/src/tests/unit/fixtures/audit_remediation/mock_differential.py +++ b/src/tests/unit/fixtures/audit_remediation/mock_differential.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock data for Differential Analysis""" QUERY_COMPARISON_COUNT_ONLY = { diff --git a/src/tests/unit/fixtures/audit_remediation/mock_runs.py b/src/tests/unit/fixtures/audit_remediation/mock_runs.py index ff194de1..25d4abe3 100644 --- a/src/tests/unit/fixtures/audit_remediation/mock_runs.py +++ b/src/tests/unit/fixtures/audit_remediation/mock_runs.py @@ -1,3 +1,13 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. """Mock data for runs of audit and remediation code.""" diff --git a/src/tests/unit/fixtures/audit_remediation/mock_scroll.py b/src/tests/unit/fixtures/audit_remediation/mock_scroll.py index 3c457158..b3a67539 100644 --- a/src/tests/unit/fixtures/audit_remediation/mock_scroll.py +++ b/src/tests/unit/fixtures/audit_remediation/mock_scroll.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mocks for Live Query Result Scroll""" SINGLE_RESULT = { diff --git a/src/tests/unit/fixtures/audit_remediation/mock_templates.py b/src/tests/unit/fixtures/audit_remediation/mock_templates.py index b4cc20e9..8c68e9f4 100644 --- a/src/tests/unit/fixtures/audit_remediation/mock_templates.py +++ b/src/tests/unit/fixtures/audit_remediation/mock_templates.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock data for Live Query templates""" EXAMPLE_TEMPLATE = { diff --git a/src/tests/unit/fixtures/endpoint_standard/mock_enriched_events.py b/src/tests/unit/fixtures/endpoint_standard/mock_enriched_events.py index 27c4d126..f49bd943 100644 --- a/src/tests/unit/fixtures/endpoint_standard/mock_enriched_events.py +++ b/src/tests/unit/fixtures/endpoint_standard/mock_enriched_events.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock responses for enriched event queries.""" POST_ENRICHED_EVENTS_SEARCH_JOB_RESP = { diff --git a/src/tests/unit/fixtures/endpoint_standard/mock_enriched_events_facet.py b/src/tests/unit/fixtures/endpoint_standard/mock_enriched_events_facet.py index bad54603..32fea314 100644 --- a/src/tests/unit/fixtures/endpoint_standard/mock_enriched_events_facet.py +++ b/src/tests/unit/fixtures/endpoint_standard/mock_enriched_events_facet.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mocks for enriched events facet query testing.""" diff --git a/src/tests/unit/fixtures/endpoint_standard/mock_recommendation.py b/src/tests/unit/fixtures/endpoint_standard/mock_recommendation.py index d5b2ddd3..8ae4897b 100644 --- a/src/tests/unit/fixtures/endpoint_standard/mock_recommendation.py +++ b/src/tests/unit/fixtures/endpoint_standard/mock_recommendation.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock responses for recommendations.""" SEARCH_REQ = { diff --git a/src/tests/unit/fixtures/endpoint_standard/mock_usb_devices.py b/src/tests/unit/fixtures/endpoint_standard/mock_usb_devices.py index e2a51c55..3211ae5b 100755 --- a/src/tests/unit/fixtures/endpoint_standard/mock_usb_devices.py +++ b/src/tests/unit/fixtures/endpoint_standard/mock_usb_devices.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock responses for USB device queries.""" USBDEVICE_APPROVAL_GET_RESP = { diff --git a/src/tests/unit/fixtures/enterprise_edr/mock_auth_events.py b/src/tests/unit/fixtures/enterprise_edr/mock_auth_events.py index 4c21b9cb..d4c7e51d 100644 --- a/src/tests/unit/fixtures/enterprise_edr/mock_auth_events.py +++ b/src/tests/unit/fixtures/enterprise_edr/mock_auth_events.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock responses for Auth Events queries.""" POST_AUTH_EVENT_SEARCH_JOB_RESP = {"job_id": "62be5c2c-d080-4ce6-b4f3-7c519cc2b41c-sqs"} diff --git a/src/tests/unit/fixtures/enterprise_edr/mock_threatintel.py b/src/tests/unit/fixtures/enterprise_edr/mock_threatintel.py index f4bb6a0f..22fb6818 100644 --- a/src/tests/unit/fixtures/enterprise_edr/mock_threatintel.py +++ b/src/tests/unit/fixtures/enterprise_edr/mock_threatintel.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock responses for threat intelligence queries.""" import pytest diff --git a/src/tests/unit/fixtures/enterprise_edr/mock_ubs.py b/src/tests/unit/fixtures/enterprise_edr/mock_ubs.py index e7dbcb97..56628ae0 100644 --- a/src/tests/unit/fixtures/enterprise_edr/mock_ubs.py +++ b/src/tests/unit/fixtures/enterprise_edr/mock_ubs.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock responses for UBS queries.""" BINARY_GET_METADATA_RESP = { diff --git a/src/tests/unit/fixtures/live_response/mock_command.py b/src/tests/unit/fixtures/live_response/mock_command.py index 3668118f..bff78fb3 100755 --- a/src/tests/unit/fixtures/live_response/mock_command.py +++ b/src/tests/unit/fixtures/live_response/mock_command.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock command responses for Live Response.""" DIRECTORY_LIST_START_RESP = { diff --git a/src/tests/unit/fixtures/live_response/mock_device.py b/src/tests/unit/fixtures/live_response/mock_device.py index a691a5bb..f4b80622 100755 --- a/src/tests/unit/fixtures/live_response/mock_device.py +++ b/src/tests/unit/fixtures/live_response/mock_device.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock device responses for the Live Response API.""" DEVICE_RESPONSE = { diff --git a/src/tests/unit/fixtures/live_response/mock_session.py b/src/tests/unit/fixtures/live_response/mock_session.py index b77eeb9b..8ee73ad9 100755 --- a/src/tests/unit/fixtures/live_response/mock_session.py +++ b/src/tests/unit/fixtures/live_response/mock_session.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock session responses for the Live Response API.""" SESSION_INIT_RESP = { diff --git a/src/tests/unit/fixtures/mock_credentials.py b/src/tests/unit/fixtures/mock_credentials.py index 4e712382..7e3b0474 100755 --- a/src/tests/unit/fixtures/mock_credentials.py +++ b/src/tests/unit/fixtures/mock_credentials.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/fixtures/mock_rest_api.py b/src/tests/unit/fixtures/mock_rest_api.py index d5f67716..f5519f38 100644 --- a/src/tests/unit/fixtures/mock_rest_api.py +++ b/src/tests/unit/fixtures/mock_rest_api.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/fixtures/platform/mock_alert_v6_v7_compatibility.py b/src/tests/unit/fixtures/platform/mock_alert_v6_v7_compatibility.py index db774df3..ac61ec84 100644 --- a/src/tests/unit/fixtures/platform/mock_alert_v6_v7_compatibility.py +++ b/src/tests/unit/fixtures/platform/mock_alert_v6_v7_compatibility.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mocks for tests that verify Alert API v6 to v7 compatibility""" """V6 _info for CB_ANALYTIC alert generated by SDK 1.4.3 (before Alert API v7 was in use)""" diff --git a/src/tests/unit/fixtures/platform/mock_alerts_v7.py b/src/tests/unit/fixtures/platform/mock_alerts_v7.py index 8da99968..1cec3003 100644 --- a/src/tests/unit/fixtures/platform/mock_alerts_v7.py +++ b/src/tests/unit/fixtures/platform/mock_alerts_v7.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock responses for alert queries.""" GET_ALERT_RESP = {"org_key": "ABCD1234", diff --git a/src/tests/unit/fixtures/platform/mock_asset_groups.py b/src/tests/unit/fixtures/platform/mock_asset_groups.py index aa142e02..a3f36019 100644 --- a/src/tests/unit/fixtures/platform/mock_asset_groups.py +++ b/src/tests/unit/fixtures/platform/mock_asset_groups.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock responses for asset groups""" CREATE_AG_REQUEST = { diff --git a/src/tests/unit/fixtures/platform/mock_audit.py b/src/tests/unit/fixtures/platform/mock_audit.py index 84e58841..38e9198d 100644 --- a/src/tests/unit/fixtures/platform/mock_audit.py +++ b/src/tests/unit/fixtures/platform/mock_audit.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mocks for audit log functionality.""" AUDITLOGS_RESP = { diff --git a/src/tests/unit/fixtures/platform/mock_devices.py b/src/tests/unit/fixtures/platform/mock_devices.py index 43ce1fe5..4fbe12c9 100644 --- a/src/tests/unit/fixtures/platform/mock_devices.py +++ b/src/tests/unit/fixtures/platform/mock_devices.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock responses for device queries.""" GET_DEVICE_RESP = { diff --git a/src/tests/unit/fixtures/platform/mock_events.py b/src/tests/unit/fixtures/platform/mock_events.py index b52c2e73..678b9ae8 100644 --- a/src/tests/unit/fixtures/platform/mock_events.py +++ b/src/tests/unit/fixtures/platform/mock_events.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock responses for event queries.""" EVENT_SEARCH_VALIDATION_RESP = { diff --git a/src/tests/unit/fixtures/platform/mock_grants.py b/src/tests/unit/fixtures/platform/mock_grants.py index 63cb9097..9bfac55f 100644 --- a/src/tests/unit/fixtures/platform/mock_grants.py +++ b/src/tests/unit/fixtures/platform/mock_grants.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock responses for Grant and Profile""" GET_GRANT_RESP = { diff --git a/src/tests/unit/fixtures/platform/mock_jobs.py b/src/tests/unit/fixtures/platform/mock_jobs.py index 5a6e55ad..65b1cff7 100644 --- a/src/tests/unit/fixtures/platform/mock_jobs.py +++ b/src/tests/unit/fixtures/platform/mock_jobs.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock responses for Job""" _JOB1 = { diff --git a/src/tests/unit/fixtures/platform/mock_network_threat_metadata.py b/src/tests/unit/fixtures/platform/mock_network_threat_metadata.py index 56d9cdeb..78d9c12d 100644 --- a/src/tests/unit/fixtures/platform/mock_network_threat_metadata.py +++ b/src/tests/unit/fixtures/platform/mock_network_threat_metadata.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock responses for network threat metadata.""" GET_NETWORK_THREAT_METADATA_RESP = { diff --git a/src/tests/unit/fixtures/platform/mock_observations.py b/src/tests/unit/fixtures/platform/mock_observations.py index 12f99d0c..0eb825bf 100644 --- a/src/tests/unit/fixtures/platform/mock_observations.py +++ b/src/tests/unit/fixtures/platform/mock_observations.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock responses for observations queries.""" POST_OBSERVATIONS_SEARCH_JOB_RESP = {"job_id": "08ffa932-b633-4107-ba56-8741e929e48b"} diff --git a/src/tests/unit/fixtures/platform/mock_policies.py b/src/tests/unit/fixtures/platform/mock_policies.py index cd7ee2d3..404a3b28 100644 --- a/src/tests/unit/fixtures/platform/mock_policies.py +++ b/src/tests/unit/fixtures/platform/mock_policies.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock responses for Policy""" FULL_POLICY_1 = { diff --git a/src/tests/unit/fixtures/platform/mock_policy_ruleconfigs.py b/src/tests/unit/fixtures/platform/mock_policy_ruleconfigs.py index d56398ee..c09f8439 100644 --- a/src/tests/unit/fixtures/platform/mock_policy_ruleconfigs.py +++ b/src/tests/unit/fixtures/platform/mock_policy_ruleconfigs.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock responses for PolicyRuleConfig and subclasses""" diff --git a/src/tests/unit/fixtures/platform/mock_process.py b/src/tests/unit/fixtures/platform/mock_process.py index 7af9f8fd..1a1a4347 100644 --- a/src/tests/unit/fixtures/platform/mock_process.py +++ b/src/tests/unit/fixtures/platform/mock_process.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock responses for process queries.""" GET_PROCESS_RESP = {} diff --git a/src/tests/unit/fixtures/platform/mock_reputation_override.py b/src/tests/unit/fixtures/platform/mock_reputation_override.py index f1f22304..d3bb78ac 100644 --- a/src/tests/unit/fixtures/platform/mock_reputation_override.py +++ b/src/tests/unit/fixtures/platform/mock_reputation_override.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock responses for Reputation Override queries.""" diff --git a/src/tests/unit/fixtures/platform/mock_users.py b/src/tests/unit/fixtures/platform/mock_users.py index fca77e02..97a4d52f 100644 --- a/src/tests/unit/fixtures/platform/mock_users.py +++ b/src/tests/unit/fixtures/platform/mock_users.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock responses for User""" _USER1 = { diff --git a/src/tests/unit/fixtures/platform/mock_vulnerabilities.py b/src/tests/unit/fixtures/platform/mock_vulnerabilities.py index 2739f3cc..ae17274e 100644 --- a/src/tests/unit/fixtures/platform/mock_vulnerabilities.py +++ b/src/tests/unit/fixtures/platform/mock_vulnerabilities.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock responses for vulnerabilties queries.""" GET_VULNERABILITY_SUMMARY_ORG_LEVEL = { diff --git a/src/tests/unit/fixtures/stubobject.py b/src/tests/unit/fixtures/stubobject.py index 5a01e442..9546d03f 100644 --- a/src/tests/unit/fixtures/stubobject.py +++ b/src/tests/unit/fixtures/stubobject.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Stub object to be used for testing base object code""" from cbc_sdk.base import MutableBaseModel diff --git a/src/tests/unit/fixtures/stubresponse.py b/src/tests/unit/fixtures/stubresponse.py index 3a82fcd2..f5a64c5a 100755 --- a/src/tests/unit/fixtures/stubresponse.py +++ b/src/tests/unit/fixtures/stubresponse.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Stub responses for use in mock testing""" import pytest diff --git a/src/tests/unit/fixtures/workload/mock_compliance.py b/src/tests/unit/fixtures/workload/mock_compliance.py index f5f46865..00ec7b3e 100644 --- a/src/tests/unit/fixtures/workload/mock_compliance.py +++ b/src/tests/unit/fixtures/workload/mock_compliance.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock data for ComplianceBenchmark""" SEARCH_COMPLIANCE_BENCHMARKS = { diff --git a/src/tests/unit/fixtures/workload/mock_nsx_remediation.py b/src/tests/unit/fixtures/workload/mock_nsx_remediation.py index c640bff5..811ff12e 100644 --- a/src/tests/unit/fixtures/workload/mock_nsx_remediation.py +++ b/src/tests/unit/fixtures/workload/mock_nsx_remediation.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock data for NSX Remediation API.""" NSX_REQUEST_1 = { diff --git a/src/tests/unit/fixtures/workload/mock_search.py b/src/tests/unit/fixtures/workload/mock_search.py index 8607ea5c..40f1ba54 100644 --- a/src/tests/unit/fixtures/workload/mock_search.py +++ b/src/tests/unit/fixtures/workload/mock_search.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mock responses for Workloads Search API.""" FETCH_COMPUTE_RESOURCE_BY_ID_RESP = { diff --git a/src/tests/unit/fixtures/workload/mock_sensor_lifecycle.py b/src/tests/unit/fixtures/workload/mock_sensor_lifecycle.py index e689c6a4..baae1b69 100755 --- a/src/tests/unit/fixtures/workload/mock_sensor_lifecycle.py +++ b/src/tests/unit/fixtures/workload/mock_sensor_lifecycle.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Mocks for sensor lifecycle""" GET_CONFIG_TEMPLATE_RESP = \ diff --git a/src/tests/unit/platform/test_alertsv6_api.py b/src/tests/unit/platform/test_alertsv6_api.py index d9540d35..26b732a0 100755 --- a/src/tests/unit/platform/test_alertsv6_api.py +++ b/src/tests/unit/platform/test_alertsv6_api.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/platform/test_alertsv7_api.py b/src/tests/unit/platform/test_alertsv7_api.py index c16ffb6c..c8264179 100755 --- a/src/tests/unit/platform/test_alertsv7_api.py +++ b/src/tests/unit/platform/test_alertsv7_api.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/platform/test_alertsv7_v6_compatibility.py b/src/tests/unit/platform/test_alertsv7_v6_compatibility.py index 3d353417..01198118 100755 --- a/src/tests/unit/platform/test_alertsv7_v6_compatibility.py +++ b/src/tests/unit/platform/test_alertsv7_v6_compatibility.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/platform/test_asset_groups.py b/src/tests/unit/platform/test_asset_groups.py index 20dce515..4215f86f 100644 --- a/src/tests/unit/platform/test_asset_groups.py +++ b/src/tests/unit/platform/test_asset_groups.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2022. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/platform/test_audit.py b/src/tests/unit/platform/test_audit.py index 49dbdc25..014098ea 100644 --- a/src/tests/unit/platform/test_audit.py +++ b/src/tests/unit/platform/test_audit.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/platform/test_devicev6_api.py b/src/tests/unit/platform/test_devicev6_api.py index eff6bf2f..f9fc6906 100755 --- a/src/tests/unit/platform/test_devicev6_api.py +++ b/src/tests/unit/platform/test_devicev6_api.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/platform/test_grants.py b/src/tests/unit/platform/test_grants.py index b9e9d63f..79124c30 100644 --- a/src/tests/unit/platform/test_grants.py +++ b/src/tests/unit/platform/test_grants.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Tests for the Grant and Profile objects of the CBC SDK""" import pytest diff --git a/src/tests/unit/platform/test_jobs.py b/src/tests/unit/platform/test_jobs.py index e5ac173c..38b6712b 100644 --- a/src/tests/unit/platform/test_jobs.py +++ b/src/tests/unit/platform/test_jobs.py @@ -1,4 +1,16 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Tests for the Job object of the CBC SDK""" + import copy import pytest diff --git a/src/tests/unit/platform/test_network_threat_metadata.py b/src/tests/unit/platform/test_network_threat_metadata.py index f180e92c..fe3e7d7f 100644 --- a/src/tests/unit/platform/test_network_threat_metadata.py +++ b/src/tests/unit/platform/test_network_threat_metadata.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Testing NetworkThreatMetadata objects of cbc_sdk.platform""" import pytest diff --git a/src/tests/unit/platform/test_observations.py b/src/tests/unit/platform/test_observations.py index b8e2716f..df178fb3 100644 --- a/src/tests/unit/platform/test_observations.py +++ b/src/tests/unit/platform/test_observations.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Testing Observation objects of cbc_sdk.platform""" import pytest diff --git a/src/tests/unit/platform/test_platform_alerts_sdk150_breaking_changes.py b/src/tests/unit/platform/test_platform_alerts_sdk150_breaking_changes.py index f823be42..cae1b9e9 100644 --- a/src/tests/unit/platform/test_platform_alerts_sdk150_breaking_changes.py +++ b/src/tests/unit/platform/test_platform_alerts_sdk150_breaking_changes.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/platform/test_platform_devices.py b/src/tests/unit/platform/test_platform_devices.py index 5d6827ad..ec7d41c8 100644 --- a/src/tests/unit/platform/test_platform_devices.py +++ b/src/tests/unit/platform/test_platform_devices.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Testing Device object of cbc_sdk.platform""" import pytest diff --git a/src/tests/unit/platform/test_platform_dynamic_reference.py b/src/tests/unit/platform/test_platform_dynamic_reference.py index 860f1a64..c579dc20 100644 --- a/src/tests/unit/platform/test_platform_dynamic_reference.py +++ b/src/tests/unit/platform/test_platform_dynamic_reference.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Test dynamic class refrences""" import pytest diff --git a/src/tests/unit/platform/test_platform_events.py b/src/tests/unit/platform/test_platform_events.py index 62a14059..44e3e087 100644 --- a/src/tests/unit/platform/test_platform_events.py +++ b/src/tests/unit/platform/test_platform_events.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Testing Event object of cbc_sdk.platform""" import pytest diff --git a/src/tests/unit/platform/test_platform_models.py b/src/tests/unit/platform/test_platform_models.py index 82bc6ef7..8b6db6b5 100755 --- a/src/tests/unit/platform/test_platform_models.py +++ b/src/tests/unit/platform/test_platform_models.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/platform/test_platform_process.py b/src/tests/unit/platform/test_platform_process.py index d6308d44..b8dadb1e 100644 --- a/src/tests/unit/platform/test_platform_process.py +++ b/src/tests/unit/platform/test_platform_process.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Testing Process and Tree objects of cbc_sdk.platform""" import pytest diff --git a/src/tests/unit/platform/test_platform_query.py b/src/tests/unit/platform/test_platform_query.py index 0b13f862..e8776b96 100644 --- a/src/tests/unit/platform/test_platform_query.py +++ b/src/tests/unit/platform/test_platform_query.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Testing Query object of cbc_sdk.enterprise_edr""" import pytest diff --git a/src/tests/unit/platform/test_policies.py b/src/tests/unit/platform/test_policies.py index d8938bd1..9042eaa7 100644 --- a/src/tests/unit/platform/test_policies.py +++ b/src/tests/unit/platform/test_policies.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/platform/test_policy_ruleconfigs.py b/src/tests/unit/platform/test_policy_ruleconfigs.py index bfefcb6f..2e415a6c 100644 --- a/src/tests/unit/platform/test_policy_ruleconfigs.py +++ b/src/tests/unit/platform/test_policy_ruleconfigs.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/platform/test_reputation_overrides.py b/src/tests/unit/platform/test_reputation_overrides.py index bd739960..dfef5f63 100644 --- a/src/tests/unit/platform/test_reputation_overrides.py +++ b/src/tests/unit/platform/test_reputation_overrides.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2021-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/platform/test_users.py b/src/tests/unit/platform/test_users.py index e55567be..f4c4544d 100644 --- a/src/tests/unit/platform/test_users.py +++ b/src/tests/unit/platform/test_users.py @@ -1,4 +1,16 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Tests for the User object of the CBC SDK""" + import copy import pytest diff --git a/src/tests/unit/platform/test_vulnerability_assessment.py b/src/tests/unit/platform/test_vulnerability_assessment.py index 5030ccd1..98e07488 100644 --- a/src/tests/unit/platform/test_vulnerability_assessment.py +++ b/src/tests/unit/platform/test_vulnerability_assessment.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2021-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/test_base_api.py b/src/tests/unit/test_base_api.py index a1a73410..dbe9a1d1 100755 --- a/src/tests/unit/test_base_api.py +++ b/src/tests/unit/test_base_api.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/test_connection.py b/src/tests/unit/test_connection.py index e5f8ed60..f446c541 100755 --- a/src/tests/unit/test_connection.py +++ b/src/tests/unit/test_connection.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/test_credentials.py b/src/tests/unit/test_credentials.py index 17c377a7..4bc8a751 100755 --- a/src/tests/unit/test_credentials.py +++ b/src/tests/unit/test_credentials.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/test_helpers.py b/src/tests/unit/test_helpers.py index 8aa6da7e..ecad4662 100755 --- a/src/tests/unit/test_helpers.py +++ b/src/tests/unit/test_helpers.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2021-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/test_live_response_api.py b/src/tests/unit/test_live_response_api.py index 9a46bc2d..46b38c0f 100755 --- a/src/tests/unit/test_live_response_api.py +++ b/src/tests/unit/test_live_response_api.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/test_rest_api.py b/src/tests/unit/test_rest_api.py index f2d61462..05d235fd 100644 --- a/src/tests/unit/test_rest_api.py +++ b/src/tests/unit/test_rest_api.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/test_utils.py b/src/tests/unit/test_utils.py index 90f7969e..3fbb86bc 100755 --- a/src/tests/unit/test_utils.py +++ b/src/tests/unit/test_utils.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/workload/test_compliance.py b/src/tests/unit/workload/test_compliance.py index 38047fd7..6097a656 100644 --- a/src/tests/unit/workload/test_compliance.py +++ b/src/tests/unit/workload/test_compliance.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2021-2024. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/workload/test_nsx_remediation.py b/src/tests/unit/workload/test_nsx_remediation.py index 80271634..0a60614d 100644 --- a/src/tests/unit/workload/test_nsx_remediation.py +++ b/src/tests/unit/workload/test_nsx_remediation.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2021-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/workload/test_search.py b/src/tests/unit/workload/test_search.py index e0f25e4e..d6f6e19c 100755 --- a/src/tests/unit/workload/test_search.py +++ b/src/tests/unit/workload/test_search.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2021-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/unit/workload/test_sensor_lifecycle.py b/src/tests/unit/workload/test_sensor_lifecycle.py index eef77ae6..daabcd45 100755 --- a/src/tests/unit/workload/test_sensor_lifecycle.py +++ b/src/tests/unit/workload/test_sensor_lifecycle.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * From 6ca0112e5e2d6d765b2cee5bbcff75a65edf4314 Mon Sep 17 00:00:00 2001 From: Amy Bowersox Date: Thu, 9 May 2024 14:41:02 -0600 Subject: [PATCH 07/13] updated copyright header in UATs --- src/tests/uat/alerts_uat.py | 2 +- src/tests/uat/auth_events_uat.py | 2 +- src/tests/uat/csp_oauth.py | 2 +- src/tests/uat/device_control_uat.py | 2 +- src/tests/uat/differential_analysis_uat.py | 2 +- src/tests/uat/enriched_events_uat.py | 2 +- src/tests/uat/live_response_api_async_uat.py | 2 +- src/tests/uat/live_response_api_uat.py | 2 +- src/tests/uat/nsx_remediation_uat.py | 2 +- src/tests/uat/observations_uat.py | 2 +- src/tests/uat/platform_devices_uat.py | 2 +- src/tests/uat/policy_uat.py | 2 +- src/tests/uat/process_search_calls.py | 2 +- src/tests/uat/proxy_test.py | 2 +- src/tests/uat/recommendation_uat.py | 2 +- src/tests/uat/reputation_override_uat.py | 2 +- src/tests/uat/sensor_lifecycle_uat.py | 2 +- src/tests/uat/vulnerability_assessment_uat.py | 2 +- src/tests/uat/watchlist_feed_uat.py | 2 +- src/tests/uat/workloads_search_uat.py | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/tests/uat/alerts_uat.py b/src/tests/uat/alerts_uat.py index cf07c6bf..b1c1ca51 100644 --- a/src/tests/uat/alerts_uat.py +++ b/src/tests/uat/alerts_uat.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/uat/auth_events_uat.py b/src/tests/uat/auth_events_uat.py index 26857048..6c0a4e48 100644 --- a/src/tests/uat/auth_events_uat.py +++ b/src/tests/uat/auth_events_uat.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2021-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/uat/csp_oauth.py b/src/tests/uat/csp_oauth.py index 1e9017a7..0895c140 100644 --- a/src/tests/uat/csp_oauth.py +++ b/src/tests/uat/csp_oauth.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/uat/device_control_uat.py b/src/tests/uat/device_control_uat.py index ec23ff58..c88bc73e 100644 --- a/src/tests/uat/device_control_uat.py +++ b/src/tests/uat/device_control_uat.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/uat/differential_analysis_uat.py b/src/tests/uat/differential_analysis_uat.py index 75720817..4ddbeffe 100644 --- a/src/tests/uat/differential_analysis_uat.py +++ b/src/tests/uat/differential_analysis_uat.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2021-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/uat/enriched_events_uat.py b/src/tests/uat/enriched_events_uat.py index 31ab1350..e17dc001 100644 --- a/src/tests/uat/enriched_events_uat.py +++ b/src/tests/uat/enriched_events_uat.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2021-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/uat/live_response_api_async_uat.py b/src/tests/uat/live_response_api_async_uat.py index b308cd23..407071ee 100644 --- a/src/tests/uat/live_response_api_async_uat.py +++ b/src/tests/uat/live_response_api_async_uat.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2021-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/uat/live_response_api_uat.py b/src/tests/uat/live_response_api_uat.py index 05ec737f..2a6ac02d 100644 --- a/src/tests/uat/live_response_api_uat.py +++ b/src/tests/uat/live_response_api_uat.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2021-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/uat/nsx_remediation_uat.py b/src/tests/uat/nsx_remediation_uat.py index 6cb7e2d4..782cd414 100644 --- a/src/tests/uat/nsx_remediation_uat.py +++ b/src/tests/uat/nsx_remediation_uat.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/uat/observations_uat.py b/src/tests/uat/observations_uat.py index 3e4cb377..d68386b2 100644 --- a/src/tests/uat/observations_uat.py +++ b/src/tests/uat/observations_uat.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2021-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/uat/platform_devices_uat.py b/src/tests/uat/platform_devices_uat.py index 837ca7dc..149b688b 100755 --- a/src/tests/uat/platform_devices_uat.py +++ b/src/tests/uat/platform_devices_uat.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/uat/policy_uat.py b/src/tests/uat/policy_uat.py index d262b540..36473b1e 100644 --- a/src/tests/uat/policy_uat.py +++ b/src/tests/uat/policy_uat.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/uat/process_search_calls.py b/src/tests/uat/process_search_calls.py index c895e68e..a5880d77 100755 --- a/src/tests/uat/process_search_calls.py +++ b/src/tests/uat/process_search_calls.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/uat/proxy_test.py b/src/tests/uat/proxy_test.py index 08bb26cc..e6aa6f1a 100644 --- a/src/tests/uat/proxy_test.py +++ b/src/tests/uat/proxy_test.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/uat/recommendation_uat.py b/src/tests/uat/recommendation_uat.py index 1ae3c577..b8d8a65a 100644 --- a/src/tests/uat/recommendation_uat.py +++ b/src/tests/uat/recommendation_uat.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/uat/reputation_override_uat.py b/src/tests/uat/reputation_override_uat.py index ba4c1afe..45290fe7 100644 --- a/src/tests/uat/reputation_override_uat.py +++ b/src/tests/uat/reputation_override_uat.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2021-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/uat/sensor_lifecycle_uat.py b/src/tests/uat/sensor_lifecycle_uat.py index 8dc17e05..76447b2d 100755 --- a/src/tests/uat/sensor_lifecycle_uat.py +++ b/src/tests/uat/sensor_lifecycle_uat.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2021-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/uat/vulnerability_assessment_uat.py b/src/tests/uat/vulnerability_assessment_uat.py index 4ab16e18..3aebfd2e 100644 --- a/src/tests/uat/vulnerability_assessment_uat.py +++ b/src/tests/uat/vulnerability_assessment_uat.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2021-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/uat/watchlist_feed_uat.py b/src/tests/uat/watchlist_feed_uat.py index 062c2e16..b94401b0 100644 --- a/src/tests/uat/watchlist_feed_uat.py +++ b/src/tests/uat/watchlist_feed_uat.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/src/tests/uat/workloads_search_uat.py b/src/tests/uat/workloads_search_uat.py index 4becdf28..d9400f6b 100755 --- a/src/tests/uat/workloads_search_uat.py +++ b/src/tests/uat/workloads_search_uat.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2021-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * From ae30dd7c8588eb2755a9732030bcdd754370f5fe Mon Sep 17 00:00:00 2001 From: Amy Bowersox Date: Thu, 9 May 2024 15:29:32 -0600 Subject: [PATCH 08/13] update copyright block in example scripts --- examples/all_cloud_products.py | 11 +++++++++++ examples/audit_remediation/manage_run.py | 2 +- examples/endpoint_standard/enriched_events_query.py | 2 +- examples/endpoint_standard/policy_operations.py | 2 +- examples/enterprise_edr/feed_operations.py | 2 +- .../DellBiosVerification/BiosVerification.py | 9 ++++++++- examples/live_response/examplejob.py | 2 +- examples/live_response/jobrunner.py | 2 +- examples/live_response/live_response_cli.py | 2 +- examples/platform/alert_v6_v7_migration.py | 2 +- examples/platform/alerts_bulk_export.py | 2 +- examples/platform/alerts_common_scenarios.py | 2 +- examples/platform/asset_groups.py | 2 +- examples/platform/attack_stages_export.py | 11 +++++++++++ examples/platform/attacks_detected_stopped_export.py | 11 +++++++++++ examples/platform/audit_log.py | 2 +- examples/platform/change_role.py | 2 +- examples/platform/container_runtime_alerts.py | 2 +- examples/platform/create_user.py | 2 +- examples/platform/device_actions.py | 2 +- examples/platform/device_processes.py | 2 +- examples/platform/export_users_grants.py | 2 +- examples/platform/find_users_with_grants.py | 2 +- examples/platform/identify_silent_devices.py | 2 +- examples/platform/list_devices.py | 2 +- examples/platform/list_permitted_roles.py | 2 +- examples/platform/policy_core_prevention.py | 2 +- examples/platform/policy_data_collection.py | 2 +- examples/platform/policy_host_based_firewall.py | 2 +- examples/platform/policy_service_crud_operations.py | 2 +- examples/platform/set_user_enable.py | 2 +- examples/workload/workloads_search_example.py | 2 +- 32 files changed, 69 insertions(+), 29 deletions(-) diff --git a/examples/all_cloud_products.py b/examples/all_cloud_products.py index 06ef200b..3879cb0f 100644 --- a/examples/all_cloud_products.py +++ b/examples/all_cloud_products.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """Example for Developer Meetup October 22 covering most cloud products. Example uses research from the Carbon Black Cloud Threat Analysis Unit (TAU). diff --git a/examples/audit_remediation/manage_run.py b/examples/audit_remediation/manage_run.py index 6e564185..30674288 100755 --- a/examples/audit_remediation/manage_run.py +++ b/examples/audit_remediation/manage_run.py @@ -1,5 +1,5 @@ # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/endpoint_standard/enriched_events_query.py b/examples/endpoint_standard/enriched_events_query.py index 450b9f2f..94336d33 100755 --- a/examples/endpoint_standard/enriched_events_query.py +++ b/examples/endpoint_standard/enriched_events_query.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/endpoint_standard/policy_operations.py b/examples/endpoint_standard/policy_operations.py index eb30b6e6..c879fb6c 100755 --- a/examples/endpoint_standard/policy_operations.py +++ b/examples/endpoint_standard/policy_operations.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/enterprise_edr/feed_operations.py b/examples/enterprise_edr/feed_operations.py index d990466d..f3e01046 100755 --- a/examples/enterprise_edr/feed_operations.py +++ b/examples/enterprise_edr/feed_operations.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/live_response/DellBiosVerification/BiosVerification.py b/examples/live_response/DellBiosVerification/BiosVerification.py index b76cb5e1..29ea7a6e 100755 --- a/examples/live_response/DellBiosVerification/BiosVerification.py +++ b/examples/live_response/DellBiosVerification/BiosVerification.py @@ -1,8 +1,15 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + # usage: BiosVerification.py [-h] [-m MACHINENAME] [-g] [-o ORGPROFILE] # optional arguments: # -h, --help show this help message and exit diff --git a/examples/live_response/examplejob.py b/examples/live_response/examplejob.py index 76c269d5..bd9e998b 100755 --- a/examples/live_response/examplejob.py +++ b/examples/live_response/examplejob.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2021-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/live_response/jobrunner.py b/examples/live_response/jobrunner.py index 3c87e7e7..f02a639b 100644 --- a/examples/live_response/jobrunner.py +++ b/examples/live_response/jobrunner.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2021-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/live_response/live_response_cli.py b/examples/live_response/live_response_cli.py index c3fed3c2..2225d87e 100755 --- a/examples/live_response/live_response_cli.py +++ b/examples/live_response/live_response_cli.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/platform/alert_v6_v7_migration.py b/examples/platform/alert_v6_v7_migration.py index c5ad5192..147408b0 100644 --- a/examples/platform/alert_v6_v7_migration.py +++ b/examples/platform/alert_v6_v7_migration.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/platform/alerts_bulk_export.py b/examples/platform/alerts_bulk_export.py index 7c3da5dc..1a5f141b 100644 --- a/examples/platform/alerts_bulk_export.py +++ b/examples/platform/alerts_bulk_export.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/platform/alerts_common_scenarios.py b/examples/platform/alerts_common_scenarios.py index 0e1d41af..76b040ba 100644 --- a/examples/platform/alerts_common_scenarios.py +++ b/examples/platform/alerts_common_scenarios.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/platform/asset_groups.py b/examples/platform/asset_groups.py index a6565bb3..83f027a1 100644 --- a/examples/platform/asset_groups.py +++ b/examples/platform/asset_groups.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2024. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/platform/attack_stages_export.py b/examples/platform/attack_stages_export.py index c21dea9f..aaf94a1c 100644 --- a/examples/platform/attack_stages_export.py +++ b/examples/platform/attack_stages_export.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """ Replicates export for Attack Stages diff --git a/examples/platform/attacks_detected_stopped_export.py b/examples/platform/attacks_detected_stopped_export.py index dd33141e..553581cf 100644 --- a/examples/platform/attacks_detected_stopped_export.py +++ b/examples/platform/attacks_detected_stopped_export.py @@ -1,3 +1,14 @@ +# ******************************************************* +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. +# SPDX-License-Identifier: MIT +# ******************************************************* +# * +# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +# * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +# * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +# * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +# * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + """ Replicates export for Attacks Detected and Attacks Stopped diff --git a/examples/platform/audit_log.py b/examples/platform/audit_log.py index f48b50b7..860faafa 100644 --- a/examples/platform/audit_log.py +++ b/examples/platform/audit_log.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/platform/change_role.py b/examples/platform/change_role.py index aa0649b2..3f3e96cf 100644 --- a/examples/platform/change_role.py +++ b/examples/platform/change_role.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/platform/container_runtime_alerts.py b/examples/platform/container_runtime_alerts.py index e1c5adfe..a1910b80 100644 --- a/examples/platform/container_runtime_alerts.py +++ b/examples/platform/container_runtime_alerts.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/platform/create_user.py b/examples/platform/create_user.py index d99b8e46..d3bc97bd 100644 --- a/examples/platform/create_user.py +++ b/examples/platform/create_user.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/platform/device_actions.py b/examples/platform/device_actions.py index 2882732a..32cadbc4 100755 --- a/examples/platform/device_actions.py +++ b/examples/platform/device_actions.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/platform/device_processes.py b/examples/platform/device_processes.py index 78e88b72..dc00b510 100755 --- a/examples/platform/device_processes.py +++ b/examples/platform/device_processes.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/platform/export_users_grants.py b/examples/platform/export_users_grants.py index 6bf4f747..02219b2c 100644 --- a/examples/platform/export_users_grants.py +++ b/examples/platform/export_users_grants.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/platform/find_users_with_grants.py b/examples/platform/find_users_with_grants.py index eb5cee6b..9f5026cb 100644 --- a/examples/platform/find_users_with_grants.py +++ b/examples/platform/find_users_with_grants.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/platform/identify_silent_devices.py b/examples/platform/identify_silent_devices.py index 84ee8821..6d299ad6 100644 --- a/examples/platform/identify_silent_devices.py +++ b/examples/platform/identify_silent_devices.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2024. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/platform/list_devices.py b/examples/platform/list_devices.py index 41b6ea86..eaec5c75 100755 --- a/examples/platform/list_devices.py +++ b/examples/platform/list_devices.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/platform/list_permitted_roles.py b/examples/platform/list_permitted_roles.py index 3c5e8526..42e1b821 100644 --- a/examples/platform/list_permitted_roles.py +++ b/examples/platform/list_permitted_roles.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/platform/policy_core_prevention.py b/examples/platform/policy_core_prevention.py index f6ebbab1..4e33ed64 100644 --- a/examples/platform/policy_core_prevention.py +++ b/examples/platform/policy_core_prevention.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/platform/policy_data_collection.py b/examples/platform/policy_data_collection.py index a284eec2..25c650dd 100644 --- a/examples/platform/policy_data_collection.py +++ b/examples/platform/policy_data_collection.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/platform/policy_host_based_firewall.py b/examples/platform/policy_host_based_firewall.py index 10bcd640..cafeb911 100644 --- a/examples/platform/policy_host_based_firewall.py +++ b/examples/platform/policy_host_based_firewall.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/platform/policy_service_crud_operations.py b/examples/platform/policy_service_crud_operations.py index 63a6ddf7..f6bb6563 100755 --- a/examples/platform/policy_service_crud_operations.py +++ b/examples/platform/policy_service_crud_operations.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/platform/set_user_enable.py b/examples/platform/set_user_enable.py index 7bb99e42..d2e324ed 100644 --- a/examples/platform/set_user_enable.py +++ b/examples/platform/set_user_enable.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/examples/workload/workloads_search_example.py b/examples/workload/workloads_search_example.py index 585d3101..e43f8463 100755 --- a/examples/workload/workloads_search_example.py +++ b/examples/workload/workloads_search_example.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2021-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * From 04c43037966b51dd44d87cdfa40053c5ec9c2698 Mon Sep 17 00:00:00 2001 From: Amy Bowersox Date: Thu, 9 May 2024 15:43:41 -0600 Subject: [PATCH 09/13] added copyright headers in docs, and updated copyright in conf.py --- docs/alerts-migration.rst | 12 ++++++++++++ docs/alerts.rst | 12 ++++++++++++ docs/asset-groups.rst | 12 ++++++++++++ docs/audit-log.rst | 12 ++++++++++++ docs/authentication.rst | 12 ++++++++++++ docs/cbc_sdk.audit_remediation.rst | 12 ++++++++++++ docs/cbc_sdk.cache.rst | 12 ++++++++++++ docs/cbc_sdk.cbcloudapi.rst | 12 ++++++++++++ docs/cbc_sdk.credential_providers.rst | 12 ++++++++++++ docs/cbc_sdk.endpoint_standard.rst | 12 ++++++++++++ docs/cbc_sdk.enterprise_edr.rst | 12 ++++++++++++ docs/cbc_sdk.platform.rst | 12 ++++++++++++ docs/cbc_sdk.rst | 12 ++++++++++++ docs/cbc_sdk.workload.rst | 12 ++++++++++++ docs/changelog.rst | 12 ++++++++++++ docs/compliance.rst | 12 ++++++++++++ docs/conf.py | 2 +- docs/developing-credential-providers.rst | 12 ++++++++++++ docs/device-control.rst | 12 ++++++++++++ docs/devices.rst | 12 ++++++++++++ docs/differential-analysis.rst | 12 ++++++++++++ docs/exceptions.rst | 12 ++++++++++++ docs/getting-started.rst | 12 ++++++++++++ docs/guides.rst | 12 ++++++++++++ docs/index.rst | 12 ++++++++++++ docs/installation.rst | 12 ++++++++++++ docs/live-query.rst | 12 ++++++++++++ docs/live-response-v6-migration.rst | 12 ++++++++++++ docs/live-response.rst | 12 ++++++++++++ docs/logging.rst | 12 ++++++++++++ docs/notifications-migration.rst | 12 ++++++++++++ docs/os_functional_testing.rst | 12 ++++++++++++ docs/policy.rst | 12 ++++++++++++ docs/porting-guide.rst | 12 ++++++++++++ docs/recommendations.rst | 12 ++++++++++++ docs/reputation-override.rst | 12 ++++++++++++ docs/resources.rst | 12 ++++++++++++ docs/searching.rst | 12 ++++++++++++ docs/unified-binary-store.rst | 12 ++++++++++++ docs/users-grants.rst | 12 ++++++++++++ docs/vulnerabilities.rst | 12 ++++++++++++ docs/watchlists-feeds-reports.rst | 12 ++++++++++++ docs/workload.rst | 12 ++++++++++++ 43 files changed, 505 insertions(+), 1 deletion(-) diff --git a/docs/alerts-migration.rst b/docs/alerts-migration.rst index eb74e02d..1be63117 100644 --- a/docs/alerts-migration.rst +++ b/docs/alerts-migration.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + .. _alert-migration-guide: Alert Migration diff --git a/docs/alerts.rst b/docs/alerts.rst index f62198c6..b8d3e324 100644 --- a/docs/alerts.rst +++ b/docs/alerts.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Alerts ====== diff --git a/docs/asset-groups.rst b/docs/asset-groups.rst index ede8c878..9ac63457 100644 --- a/docs/asset-groups.rst +++ b/docs/asset-groups.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Asset Groups ============ diff --git a/docs/audit-log.rst b/docs/audit-log.rst index f17f8a9b..3ea289b0 100644 --- a/docs/audit-log.rst +++ b/docs/audit-log.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Audit Log Events ================ diff --git a/docs/authentication.rst b/docs/authentication.rst index 9ee343e9..da947516 100644 --- a/docs/authentication.rst +++ b/docs/authentication.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + .. _authentication: Authentication diff --git a/docs/cbc_sdk.audit_remediation.rst b/docs/cbc_sdk.audit_remediation.rst index a4a7939b..b653b43a 100644 --- a/docs/cbc_sdk.audit_remediation.rst +++ b/docs/cbc_sdk.audit_remediation.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Audit and Remediation Package ***************************** diff --git a/docs/cbc_sdk.cache.rst b/docs/cbc_sdk.cache.rst index 90cac540..9fdceb78 100644 --- a/docs/cbc_sdk.cache.rst +++ b/docs/cbc_sdk.cache.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Cache Package ************* diff --git a/docs/cbc_sdk.cbcloudapi.rst b/docs/cbc_sdk.cbcloudapi.rst index 760753c1..1f0ca17f 100644 --- a/docs/cbc_sdk.cbcloudapi.rst +++ b/docs/cbc_sdk.cbcloudapi.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + The CBCloudAPI Object ********************* diff --git a/docs/cbc_sdk.credential_providers.rst b/docs/cbc_sdk.credential_providers.rst index 714c014a..eee00436 100644 --- a/docs/cbc_sdk.credential_providers.rst +++ b/docs/cbc_sdk.credential_providers.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + .. _cbc_sdk.credential_providers: Credential Providers Package diff --git a/docs/cbc_sdk.endpoint_standard.rst b/docs/cbc_sdk.endpoint_standard.rst index c542e5ac..1a399d53 100644 --- a/docs/cbc_sdk.endpoint_standard.rst +++ b/docs/cbc_sdk.endpoint_standard.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Endpoint Standard Package ************************* diff --git a/docs/cbc_sdk.enterprise_edr.rst b/docs/cbc_sdk.enterprise_edr.rst index 1e0ce1b7..9374b2c8 100644 --- a/docs/cbc_sdk.enterprise_edr.rst +++ b/docs/cbc_sdk.enterprise_edr.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Enterprise EDR Package ********************** diff --git a/docs/cbc_sdk.platform.rst b/docs/cbc_sdk.platform.rst index e136d58b..9af8b99b 100644 --- a/docs/cbc_sdk.platform.rst +++ b/docs/cbc_sdk.platform.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Platform Package **************** diff --git a/docs/cbc_sdk.rst b/docs/cbc_sdk.rst index 16a3e98f..1effa42c 100644 --- a/docs/cbc_sdk.rst +++ b/docs/cbc_sdk.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + CBC SDK Package *************** diff --git a/docs/cbc_sdk.workload.rst b/docs/cbc_sdk.workload.rst index ed43d8d5..0bcfb675 100644 --- a/docs/cbc_sdk.workload.rst +++ b/docs/cbc_sdk.workload.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Workload Package ***************** diff --git a/docs/changelog.rst b/docs/changelog.rst index 2c05d4d9..6a4e78f7 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Changelog ================================ CBC SDK 1.5.2 - Released May 1, 2024 diff --git a/docs/compliance.rst b/docs/compliance.rst index 86fa3a03..1111ac22 100644 --- a/docs/compliance.rst +++ b/docs/compliance.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Compliance Benchmarks ====== diff --git a/docs/conf.py b/docs/conf.py index 6c87a30e..05d50a17 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -19,7 +19,7 @@ # -- Project information ----------------------------------------------------- project = 'Carbon Black Cloud Python SDK' -copyright = '2020-2024 VMware Carbon Black' +copyright = '2020-2024 Broadcom Inc. - Carbon Black' author = 'Developer Relations' # The full version, including alpha/beta/rc tags diff --git a/docs/developing-credential-providers.rst b/docs/developing-credential-providers.rst index 45a9b9c6..a24d369b 100644 --- a/docs/developing-credential-providers.rst +++ b/docs/developing-credential-providers.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + .. _developing-credential-providers: Developing New Credential Providers diff --git a/docs/device-control.rst b/docs/device-control.rst index f098e6a5..9c0bda8a 100755 --- a/docs/device-control.rst +++ b/docs/device-control.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Device Control ============== diff --git a/docs/devices.rst b/docs/devices.rst index b577b840..c64ec1bd 100644 --- a/docs/devices.rst +++ b/docs/devices.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Devices ======= diff --git a/docs/differential-analysis.rst b/docs/differential-analysis.rst index cbcb033c..2a0ed740 100644 --- a/docs/differential-analysis.rst +++ b/docs/differential-analysis.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Differential Analysis ===================== diff --git a/docs/exceptions.rst b/docs/exceptions.rst index f2ab29b4..028726ab 100644 --- a/docs/exceptions.rst +++ b/docs/exceptions.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Exceptions ================================ diff --git a/docs/getting-started.rst b/docs/getting-started.rst index 6c39371e..cfd31c6b 100644 --- a/docs/getting-started.rst +++ b/docs/getting-started.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + .. _getting-started: Getting Started with the Carbon Black Cloud Python SDK - "Hello CBC" diff --git a/docs/guides.rst b/docs/guides.rst index 1f2d9ad7..6d589ef7 100755 --- a/docs/guides.rst +++ b/docs/guides.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Guides ====== diff --git a/docs/index.rst b/docs/index.rst index b5d73039..585ffaf3 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + .. Carbon Black Cloud Python SDK documentation master file, created by sphinx-quickstart on Thu Apr 28 09:52:29 2016. You can adapt this file completely to your liking, but it should at least diff --git a/docs/installation.rst b/docs/installation.rst index 30f40851..a860341a 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Installation ============ diff --git a/docs/live-query.rst b/docs/live-query.rst index 615014c0..6774c73c 100755 --- a/docs/live-query.rst +++ b/docs/live-query.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Live Query ========== diff --git a/docs/live-response-v6-migration.rst b/docs/live-response-v6-migration.rst index b9cbd9d5..e56bee27 100755 --- a/docs/live-response-v6-migration.rst +++ b/docs/live-response-v6-migration.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Migration Guide For Live Response From v3 To v6 ========================================================= This guide will help you migrate from Live Response v3 to v6. diff --git a/docs/live-response.rst b/docs/live-response.rst index 02cd124e..9a716c52 100755 --- a/docs/live-response.rst +++ b/docs/live-response.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + .. _live-response: Live Response diff --git a/docs/logging.rst b/docs/logging.rst index b3bb2d9d..2d23bd73 100644 --- a/docs/logging.rst +++ b/docs/logging.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Logging & Diagnostics ===================== diff --git a/docs/notifications-migration.rst b/docs/notifications-migration.rst index 6db31e96..25aa5892 100644 --- a/docs/notifications-migration.rst +++ b/docs/notifications-migration.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + .. _notifications-migration-guide: Notifications to Alerts Migration diff --git a/docs/os_functional_testing.rst b/docs/os_functional_testing.rst index 3386767c..aaee1e6b 100644 --- a/docs/os_functional_testing.rst +++ b/docs/os_functional_testing.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Testing ======= This document will provide information about how to run the functional tests diff --git a/docs/policy.rst b/docs/policy.rst index e926e699..debbd102 100644 --- a/docs/policy.rst +++ b/docs/policy.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Policy ========================================================= diff --git a/docs/porting-guide.rst b/docs/porting-guide.rst index 3bb90b8b..169f41d0 100755 --- a/docs/porting-guide.rst +++ b/docs/porting-guide.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Porting Applications from CBAPI to Carbon Black Cloud SDK ========================================================= diff --git a/docs/recommendations.rst b/docs/recommendations.rst index a94b7116..f509b79a 100644 --- a/docs/recommendations.rst +++ b/docs/recommendations.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Recommendations =============== diff --git a/docs/reputation-override.rst b/docs/reputation-override.rst index e3643afb..40b83d56 100644 --- a/docs/reputation-override.rst +++ b/docs/reputation-override.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Reputation Override =================== diff --git a/docs/resources.rst b/docs/resources.rst index 76db5198..cdad6221 100755 --- a/docs/resources.rst +++ b/docs/resources.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Resources ==================== diff --git a/docs/searching.rst b/docs/searching.rst index d37735a2..59238b28 100644 --- a/docs/searching.rst +++ b/docs/searching.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + .. _searching-guide: Searching diff --git a/docs/unified-binary-store.rst b/docs/unified-binary-store.rst index bad5c9f0..4a250ca2 100755 --- a/docs/unified-binary-store.rst +++ b/docs/unified-binary-store.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Unified Binary Store ==================== diff --git a/docs/users-grants.rst b/docs/users-grants.rst index caf99417..bdfeba1f 100644 --- a/docs/users-grants.rst +++ b/docs/users-grants.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Users and Grants ================ diff --git a/docs/vulnerabilities.rst b/docs/vulnerabilities.rst index eb82f7cb..9119212a 100644 --- a/docs/vulnerabilities.rst +++ b/docs/vulnerabilities.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Vulnerabilities ======================== diff --git a/docs/watchlists-feeds-reports.rst b/docs/watchlists-feeds-reports.rst index ddeed0fa..0b9fde45 100644 --- a/docs/watchlists-feeds-reports.rst +++ b/docs/watchlists-feeds-reports.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Watchlists, Feeds, Reports, and IOCs ==================================== Watchlists are a powerful feature of Carbon Black Cloud Enterprise EDR. They allow an organization to set-and-forget diff --git a/docs/workload.rst b/docs/workload.rst index 8bdc2b4a..0dde8b91 100644 --- a/docs/workload.rst +++ b/docs/workload.rst @@ -1,3 +1,15 @@ +.. + # ******************************************************* + # Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. + # SPDX-License-Identifier: MIT + # ******************************************************* + # * + # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT + # * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, + # * EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED + # * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, + # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + Workloads ====================================== From 358c8fa5952b05c3468458d3edf41df9b72989b2 Mon Sep 17 00:00:00 2001 From: Amy Bowersox Date: Thu, 9 May 2024 15:49:28 -0600 Subject: [PATCH 10/13] updated copyright info at top level and in bin directory --- CONTRIBUTING.md | 2 +- LICENSE | 2 +- README.md | 2 +- bin/cbc-sdk-help.py | 2 +- bin/set-macos-keychain.py | 2 +- bin/set-windows-registry.py | 2 +- setup.py | 6 +++--- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6d70d157..54c2d8f5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,7 +1,7 @@ # Contributing We rely on pull requests to keep this project maintained. By participating in this project, you -agree to abide by the VMware [code of conduct](CODE-OF-CONDUCT.md). +agree to abide by the project [code of conduct](CODE-OF-CONDUCT.md). ## Setup diff --git a/LICENSE b/LICENSE index d0c2f466..a39c3e50 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020-2023 VMware Inc. +Copyright (c) 2020-2024 Broadcom Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index f6fc920c..f984707b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# VMware Carbon Black Cloud Python SDK +# Carbon Black Cloud Python SDK **Latest Version:** 1.5.2
diff --git a/bin/cbc-sdk-help.py b/bin/cbc-sdk-help.py index 790b38ac..e50e3c52 100644 --- a/bin/cbc-sdk-help.py +++ b/bin/cbc-sdk-help.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/bin/set-macos-keychain.py b/bin/set-macos-keychain.py index c1643d0c..29098228 100755 --- a/bin/set-macos-keychain.py +++ b/bin/set-macos-keychain.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/bin/set-windows-registry.py b/bin/set-windows-registry.py index 0b4da33f..a1bf2224 100755 --- a/bin/set-windows-registry.py +++ b/bin/set-windows-registry.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ******************************************************* -# Copyright (c) VMware, Inc. 2020-2023. All Rights Reserved. +# Copyright (c) Broadcom, Inc. 2020-2024. All Rights Reserved. Carbon Black. # SPDX-License-Identifier: MIT # ******************************************************* # * diff --git a/setup.py b/setup.py index d929651b..8128e5fb 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -"""VMware Carbon Black Cloud Python SDK""" +"""Carbon Black Cloud Python SDK""" from setuptools import setup import sys @@ -56,9 +56,9 @@ def read(fname): version=read('VERSION'), url='https://github.com/carbonblack/carbon-black-cloud-sdk-python', license='MIT', - author='VMware Carbon Black', + author='Carbon Black', author_email='cb-developer-network@vmware.com', - description='VMware Carbon Black Cloud Python SDK', + description='Carbon Black Cloud Python SDK', long_description=read('README.md'), long_description_content_type='text/markdown', packages=packages, From 4ba63134228ac0d89f874aa6516f4daad3eb6e63 Mon Sep 17 00:00:00 2001 From: Amy Bowersox Date: Mon, 24 Jun 2024 13:25:58 -0600 Subject: [PATCH 11/13] fixed the enforcement address in CODE-OF-CONDUCT.md --- CODE-OF-CONDUCT.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CODE-OF-CONDUCT.md b/CODE-OF-CONDUCT.md index d5043ebb..425caac6 100755 --- a/CODE-OF-CONDUCT.md +++ b/CODE-OF-CONDUCT.md @@ -55,11 +55,11 @@ further defined and clarified by project maintainers. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported by contacting the project team at oss-coc@vmware.com. All -complaints will be reviewed and investigated and will result in a response that -is deemed necessary and appropriate to the circumstances. The project team is -obligated to maintain confidentiality with regard to the reporter of an incident. -Further details of specific enforcement policies may be posted separately. +reported by contacting compliance.officer@broadcom.com. All complaints will be +reviewed and investigated and will result in a response that is deemed necessary +and appropriate to the circumstances. The project team is obligated to maintain +confidentiality with regard to the reporter of an incident. Further details +of specific enforcement policies may be posted separately. Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other From 39451cb8448b0c4980fd3ac7c930eeffbe7d2ca8 Mon Sep 17 00:00:00 2001 From: Amy Bowersox Date: Wed, 26 Jun 2024 10:06:38 -0600 Subject: [PATCH 12/13] bumped version number and included changelog info --- README.md | 4 ++-- VERSION | 2 +- docs/changelog.rst | 16 +++++++++++++++- docs/conf.py | 2 +- src/cbc_sdk/__init__.py | 2 +- 5 files changed, 20 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f984707b..d682c3b0 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Carbon Black Cloud Python SDK -**Latest Version:** 1.5.2 +**Latest Version:** 1.5.3
-**Release Date:** May 1, 2024 +**Release Date:** TBD [![Coverage Status](https://coveralls.io/repos/github/carbonblack/carbon-black-cloud-sdk-python/badge.svg?t=Id6Baf)](https://coveralls.io/github/carbonblack/carbon-black-cloud-sdk-python) [![Codeship Status for carbonblack/carbon-black-cloud-sdk-python](https://app.codeship.com/projects/9e55a370-a772-0138-aae4-129773225755/status?branch=develop)](https://app.codeship.com/projects/402767) diff --git a/VERSION b/VERSION index 4cda8f19..8af85beb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.2 +1.5.3 diff --git a/docs/changelog.rst b/docs/changelog.rst index 6a4e78f7..2df41f0d 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -11,7 +11,21 @@ # * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. Changelog -================================ +========= + +CBC SDK 1.5.3 - Released TBD +---------------------------- + +New Features: + +* Export Alerts in CSV format (``Alert.export()``). + +Documentation: + +* Updated code copyright dates and noted the ownership by Broadcom. +* Removed the Threat Intelligence example; it's been superseded by the + `Carbon Black Cloud Threat Intelligence Connector `_. + CBC SDK 1.5.2 - Released May 1, 2024 ------------------------------------ diff --git a/docs/conf.py b/docs/conf.py index 05d50a17..e2adabdf 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -23,7 +23,7 @@ author = 'Developer Relations' # The full version, including alpha/beta/rc tags -release = '1.5.2' +release = '1.5.3' # -- General configuration --------------------------------------------------- diff --git a/src/cbc_sdk/__init__.py b/src/cbc_sdk/__init__.py index 47dd3f30..571b8cba 100644 --- a/src/cbc_sdk/__init__.py +++ b/src/cbc_sdk/__init__.py @@ -15,7 +15,7 @@ __author__ = 'Carbon Black Developer Network' __license__ = 'MIT' __copyright__ = 'Copyright 2020-2024 VMware Carbon Black' -__version__ = '1.5.2' +__version__ = '1.5.3' from .rest_api import CBCloudAPI from .cache import lru From 6ef4b8d8b1308eb5694e6fe7c9c5572550b60bde Mon Sep 17 00:00:00 2001 From: Amy Bowersox Date: Thu, 27 Jun 2024 10:05:39 -0600 Subject: [PATCH 13/13] updated release date --- README.md | 2 +- docs/changelog.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d682c3b0..3f05fc61 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ **Latest Version:** 1.5.3
-**Release Date:** TBD +**Release Date:** June 27, 2024 [![Coverage Status](https://coveralls.io/repos/github/carbonblack/carbon-black-cloud-sdk-python/badge.svg?t=Id6Baf)](https://coveralls.io/github/carbonblack/carbon-black-cloud-sdk-python) [![Codeship Status for carbonblack/carbon-black-cloud-sdk-python](https://app.codeship.com/projects/9e55a370-a772-0138-aae4-129773225755/status?branch=develop)](https://app.codeship.com/projects/402767) diff --git a/docs/changelog.rst b/docs/changelog.rst index 2df41f0d..4f7d6d47 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -13,8 +13,8 @@ Changelog ========= -CBC SDK 1.5.3 - Released TBD ----------------------------- +CBC SDK 1.5.3 - Released June 27, 2024 +-------------------------------------- New Features: