Skip to content

Conversation

averma-cb
Copy link
Contributor

@averma-cb averma-cb commented May 30, 2024

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Tests have been added that prove the fix is effective or that the feature works.
  • New and existing tests pass locally with the changes.
  • Code follows the style guidelines of this project (PEP8, clean code).
  • Linter has passed locally and any fixes were made for failures.
  • A self-review of the code has been done.

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes (not tied to bugs/features)
  • Other (please describe):

What is the ticket or issue number?

  • Ticket Number: CRE-18007

  • Issue Number: N/A

Pull Request Description

Details in CRE

Does this introduce a breaking change?

Need Review

  • Yes
  • No

How Has This Been Tested?

Manually.

Other information:

It does seem, python 3.6.9 does not work out, issue with deserializing protobufs
3.7 worked out without any changes
3.12 fail to recognize cbapi.six.moves; Chaning six.py to latest from https://raw.githubusercontent.com/benjaminp/six/master/six.py helped the situation.

I did try to add back all #noqa comment back.
There was an EXPLICIT change that is now overridden, may need additional attention 9ab1930

@averma-cb
Copy link
Contributor Author

@avanbrunt-cb
Copy link
Contributor

How was this tested manually?

@averma-cb
Copy link
Contributor Author

As suggested, did some manual testing on real test EDR. Working through issues.

@averma-cb
Copy link
Contributor Author

@averma-cb averma-cb changed the title six.py replaced with 1.16 version six.py replaced with 1.16 version and replaced readfp with read_file May 30, 2024
@averma-cb
Copy link
Contributor Author

Quick Test Note:

zeek@zeek-ubuntu:~/test3.12$ source venv/bin/activate
(venv) zeek@zeek-ubuntu:~/test3.12$ cat ~/.carbonblack/credentials.response 
[default]
url = https://192.168.184.4
token = xxxxxxxxxx(masked)xxxxxxxxxx
ssl_verify = False

(venv) zeek@zeek-ubuntu:~/test3.12$ python3.12 --version
Python 3.12.0
(venv) zeek@zeek-ubuntu:~/test3.12$ python3.12 ~/cbapi-python/examples/response/feed_operations.py list | grep display_name
display_name        : Bit9 Software Reputation Service Trust
display_name        : Cb Reputation Threat
display_name        : National Vulnerability Database
display_name        : Carbon Black Advanced Threats Feed
display_name        : Carbon Black Early Access Indicators Feed
display_name        : Carbon Black Endpoint Visibility Feed
display_name        : Carbon Black Endpoint Suspicious Indicators Feed
display_name        : Carbon Black Abuse.ch
display_name        : Carbon Black AlienVault
display_name        : Carbon Black Banning Events
display_name        : Carbon Black Community Feed
display_name        : Carbon Black Detected EMET Events
display_name        : Carbon Black Endpoint Tamper Detection
display_name        : Carbon Black Facebook ThreatExchange
display_name        : Carbon Black Known IOCs Feed
display_name        : Carbon Black SANS
display_name        : Carbon Black TOR
display_name        : Cb Inspection
display_name        : Living Off The Land Drivers
display_name        : ThreatConnect Carbon Black Community
display_name        : ATT&CK Framework
(venv) zeek@zeek-ubuntu:~/test3.12$ 

@avanbrunt-cb avanbrunt-cb merged commit c9237e6 into carbonblack:master May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants