cbapi Python Bindings - 1.3.5
This release includes bugfixes and contributions from the Carbon Black community.
All products:
- More Python 3 compatibility fixes.
- Fix the
wait_for_completionandwait_for_outputoptions in the Live Response.create_process()method.
Ifwait_for_completionis True, the call to.create_process()will block until the remote process
has exited. Ifwait_for_outputis True, then.create_process()will additionally wait until the output
of the remote process is ready and return that output to the caller. Settingwait_for_outputto True automatically setswait_for_completionto True as well. - The
BaseAPIconstructor now takes three new optional keyword arguments to control the underlying connection pool:pool_connections,pool_maxsize, andpool_block. These arguments are sent to the underlyingHTTPAdapterused when connecting to the Carbon Black server. For more information on these parameters, see the Python requests module API documentation for HTTPAdapter.
Cb Defense:
- Date/time stamps in the Device model object are now represented as proper Python datetime objects, rather than integers.
- The
policy_operations.pyexample script's "Replace Rule" command is fixed. - Add the Cb Live Response job-based API.
- Add a new example script
list_devices.py
Cb Response:
- The
ProcessandBinarymodel objects now return None by default when a non-existent attribute is referenced, rather than throwing an exception. - Fixes to
walk_children.pyexample script. - Fix exceptions in enumerating child processes, retrieving path and MD5sums from processes.
- Multiple
.where()clauses can now be used in theSensormodel object. - Workaround implemented for retrieving/managing more than 500 banned hashes.
- Alert bulk operations now work on batches of 500 alerts.
.flush_events()method onSensormodel object no longer throws an exception on Cb Response 6.x servers..restart_sensor()method now available forSensormodel object.- Fix
user_operations.pyexample script to eliminate exception when adding a new user to an existing team. - Add
.remove_team()method onUsermodel object. - Automatically set
cb.legacy_5x_modequery parameter for all Process queries whenever a legacy Solr core (from Cb Response 5.x) is loaded. - Added
.use_comprehensive_search()method to enable the "comprehensive search" option on a Process query. See the Cb Developer Network documentation on Comprehensive Search for more information on "comprehensive search". - Add
.all_childprocs(),.all_modloads(),.all_filemods(),.all_regmods(),.all_crossprocs(), and.all_netconns()methods to retrieve process events from all segments, rather than the current process segment. You can also use the special segment "0" to retrieve process events across all segments. - Fix
cmdline_filtersin theIngressFiltermodel object.
Cb Protection:
- Tamper Protection can now be set and cleared in the
Computermodel object.