Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEPLOY] Version 0.4.5 update - Custom IOA, Quick Scan Service Classes, Uber Class API endpoints refresh #124

Merged
merged 29 commits into from
Apr 12, 2021

Conversation

jshcodes
Copy link
Member

@jshcodes jshcodes commented Apr 11, 2021

FalconPy 0.4.5

Planned release date: 04.15.21

This pull request provides two additional service classes:

  • Custom IOA
  • Quick Scan

And updates the Uber class to access three additional API service collections:

  • Falcon Complete Dashboards
  • Falcon Overwatch Dashboards
  • Falcon Flight Control
  • Enhancement
  • Updated unit tests
  • Documentation

Unit test coverage

Name                                        Stmts   Miss  Cover
---------------------------------------------------------------
src/falconpy/__init__.py                       10      0   100%
src/falconpy/_endpoint.py                       1      0   100%
src/falconpy/_result.py                         8      0   100%
src/falconpy/_service_class.py                 31      0   100%
src/falconpy/_util.py                          84      0   100%
src/falconpy/_version.py                        8      0   100%
src/falconpy/api_complete.py                   89      0   100%
src/falconpy/cloud_connect_aws.py              74      0   100%
src/falconpy/cspm_registration.py             128      0   100%
src/falconpy/custom_ioa.py                    142      0   100%
src/falconpy/detects.py                        34      0   100%
src/falconpy/device_control_policies.py        77      0   100%
src/falconpy/event_streams.py                  15      0   100%
src/falconpy/falconx_sandbox.py                82      0   100%
src/falconpy/firewall_management.py           148      0   100%
src/falconpy/firewall_policies.py              80      0   100%
src/falconpy/host_group.py                     71      0   100%
src/falconpy/hosts.py                          64      0   100%
src/falconpy/incidents.py                      45      0   100%
src/falconpy/intel.py                         105      0   100%
src/falconpy/iocs.py                           60      0   100%
src/falconpy/oauth2.py                         30      0   100%
src/falconpy/prevention_policy.py              77      0   100%
src/falconpy/quick_scan.py                     29      0   100%
src/falconpy/real_time_response.py            147      0   100%
src/falconpy/real_time_response_admin.py       88      0   100%
src/falconpy/sample_uploads.py                 31      0   100%
src/falconpy/sensor_download.py                42      0   100%
src/falconpy/sensor_update_policy.py          117      0   100%
src/falconpy/spotlight_vulnerabilities.py      15      0   100%
src/falconpy/user_management.py                75      0   100%
---------------------------------------------------------------
TOTAL                                        2007      0   100%

Bandit analysis

[main]	INFO	running on Python 3.9.2
Run started:2021-04-12 06:34:01.963124

Test results:
	No issues identified.

Code scanned:
	Total lines of code: 7389
	Total lines skipped (#nosec): 0

Run metrics:
	Total issues (by severity):
		Undefined: 0.0
		Low: 0.0
		Medium: 0.0
		High: 0.0
	Total issues (by confidence):
		Undefined: 0.0
		Low: 0.0
		Medium: 0.0
		High: 0.0
Files skipped (0):

Added features and functionality

  • Added: Custom Indicators of Attack (IOA) API Service Class (custom_ioa.py)

    • get_patterns
    • get_platformsMixin0
    • get_rule_groupsMixin0
    • create_rule_groupMixin0
    • delete_rule_groupsMixin0
    • update_rule_groupMixin0
    • get_rule_types
    • get_rules_get
    • get_rulesMixin0
    • create_rule
    • delete_rules
    • update_rules
    • validate
    • query_patterns
    • query_platformsMixin0
    • query_rule_groups_fulle
    • query_rule_groupsMixin0
    • query_rule_types
    • query_rulesMixin0
    • Added unit tests (test_custom_ioa.py)
  • Added: Falcon X Quick Scan API Service Class (quick_scan.py)

    • GetScansAggregate
    • GetScans
    • ScanSamples
    • QuerySubmissionsMixin0
    • Added unit tests (test_quick_scan.py)
  • Added: Uber class endpoints (_endpoints.py)

    • Falcon Complete Dashboard API
    • Falcon Overwatch Dashboard API
    • Falcon Flight Control API

Issues resolved

  • Fixed unidiomatic type check in _util.py (parse_id_list)
  • Fixed potentially problematic default payload lists and dictionaries (Service Classes and Uber Class)

Other

  • Added CHANGELOG.md
  • Documentation updates to reflect new service class and upcoming API additions
  • Minor comment updates
  • Adjusted GitHub actions to test operating systems as separate workflows
  • Minor GitHub workflow adjustments
  • Unit test updates
    • Cloud Connect AWS
    • CSPM Registration
    • Sensor Download

@github-actions github-actions bot added documentation 📖 Improvements or additions to documentation package Pull requests that update the core package pipeline CI/CD related unit testing Pull requests that include unit testing updates labels Apr 11, 2021
@jshcodes jshcodes added bug 🐛 Something isn't working enhancement 🌟 New feature or request labels Apr 12, 2021
@jshcodes jshcodes requested a review from soggysec April 12, 2021 20:49
@soggysec soggysec merged commit 00afc8c into main Apr 12, 2021
@jshcodes jshcodes deleted the ver_0.4.5 branch April 12, 2021 21:18
jshcodes added a commit to jshcodes/falconpy that referenced this pull request Apr 15, 2021
* Packaging updates, Licensing fixes and minor README cleanup (#7)

* Package layout updates

* Package updates

* Cleaning up tabs

* README and LICENSE updates

* More package testing

* Broken link fixes in README.md (#8)

* Package layout updates

* Package updates

* Cleaning up tabs

* README and LICENSE updates

* More package testing

* Broken link fixes

* Restructure the README (#9)

* Update/restructure README

* add badges back

* Create GitHub Issue Templates (#10)

* Uber class custom headers and Uber class UploadSampleV2 fix (#13)

* Package layout updates

* Package updates

* Cleaning up tabs

* README and LICENSE updates

* More package testing

* Broken link fixes

* Uber class custom headers, Content-Type retained

* v0.1.8 - Uber class custom headers

* Uber class fix for octet-stream file uploads

* README.md updates

* Update PIP metadata for package status (#15)

* Package layout updates

* Package updates

* Cleaning up tabs

* README and LICENSE updates

* More package testing

* Broken link fixes

* Uber class custom headers, Content-Type retained

* v0.1.8 - Uber class custom headers

* Uber class fix for octet-stream file uploads

* README.md updates

* Package development status alignment

* Minor typo fix in README.md (CrowdStrike#16)

* Package layout updates

* Package updates

* Cleaning up tabs

* README and LICENSE updates

* More package testing

* Broken link fixes

* Uber class custom headers, Content-Type retained

* v0.1.8 - Uber class custom headers

* Uber class fix for octet-stream file uploads

* README.md updates

* Package development status alignment

* Typo fix in README.md

* Initial web template (CrowdStrike#19)

* Set theme jekyll-theme-slate

* removing web template (CrowdStrike#20)

* Update to reflect enabling of GitHub Discussions (CrowdStrike#18)

GitHub recently released Discussions into beta. Updated the issue templates and README to reflect.

* Non-JSON content response fix for Uber class. README.md updates. Initial unit tests. (CrowdStrike#21)

* Package layout updates

* Package updates

* Cleaning up tabs

* README and LICENSE updates

* More package testing

* Broken link fixes

* Uber class custom headers, Content-Type retained

* v0.1.8 - Uber class custom headers

* Uber class fix for octet-stream file uploads

* README.md updates

* Package development status alignment

* Typo fix in README.md

* Minor README.md text edits

* Initial unit tests: Service and Uber Auth / Revoke

* Initial unit tests: CCAWS - GetAWSSettings

* Uber class fix for non-JSON API responses

* Begin test scripts (CrowdStrike#24)

* Package layout updates

* Package updates

* Cleaning up tabs

* README and LICENSE updates

* More package testing

* Broken link fixes

* Uber class custom headers, Content-Type retained

* v0.1.8 - Uber class custom headers

* Uber class fix for octet-stream file uploads

* README.md updates

* Package development status alignment

* Typo fix in README.md

* Minor README.md text edits

* Initial unit tests: Service and Uber Auth / Revoke

* Initial unit tests: CCAWS - GetAWSSettings

* Uber class fix for non-JSON API responses

Co-authored-by: Joshua Hiller <[email protected]>

* PyTest Workflow integration (CrowdStrike#25)

* Package layout updates

* Package updates

* Cleaning up tabs

* README and LICENSE updates

* More package testing

* Broken link fixes

* Uber class custom headers, Content-Type retained

* v0.1.8 - Uber class custom headers

* Uber class fix for octet-stream file uploads

* README.md updates

* Package development status alignment

* Typo fix in README.md

* Minor README.md text edits

* Initial unit tests: Service and Uber Auth / Revoke

* Initial unit tests: CCAWS - GetAWSSettings

* Uber class fix for non-JSON API responses

* Updated to support GitHub workflow execution

Co-authored-by: Shawn Wells <[email protected]>

* PyTest workflow update for working folder (CrowdStrike#26)

* Package layout updates

* Package updates

* Cleaning up tabs

* README and LICENSE updates

* More package testing

* Broken link fixes

* Uber class custom headers, Content-Type retained

* v0.1.8 - Uber class custom headers

* Uber class fix for octet-stream file uploads

* README.md updates

* Package development status alignment

* Typo fix in README.md

* Minor README.md text edits

* Initial unit tests: Service and Uber Auth / Revoke

* Initial unit tests: CCAWS - GetAWSSettings

* Uber class fix for non-JSON API responses

* Updated to support GitHub workflow execution

* Working directory fix

* Fixed authorization unit test 500 error

* Adjusted workflow directory

* Added working directory

* Changed working directory

* Working directory debugging

* Debugging workflows

* Lessee if this werks...

* Reverted linting.yml change

* Now there's a test package

* Pytest  debugging

* Trying it another way

* Another variation

Co-authored-by: Shawn Wells <[email protected]>

* Update README with github actions status badge (CrowdStrike#27)

Sorry for ruining the nice triangular shape of the badges.

* Fix to reduce test flakiness in test_authorization.py (CrowdStrike#28)

* Package layout updates

* Package updates

* Cleaning up tabs

* README and LICENSE updates

* More package testing

* Broken link fixes

* Uber class custom headers, Content-Type retained

* v0.1.8 - Uber class custom headers

* Uber class fix for octet-stream file uploads

* README.md updates

* Package development status alignment

* Typo fix in README.md

* Minor README.md text edits

* Initial unit tests: Service and Uber Auth / Revoke

* Initial unit tests: CCAWS - GetAWSSettings

* Uber class fix for non-JSON API responses

* Updated to support GitHub workflow execution

* Working directory fix

* Fixed authorization unit test 500 error

* Adjusted workflow directory

* Added working directory

* Changed working directory

* Working directory debugging

* Debugging workflows

* Lessee if this werks...

* Reverted linting.yml change

* Now there's a test package

* Pytest  debugging

* Trying it another way

* Another variation

* Fix to reduce flakiness in test_authorization.py

* Comment typo

Co-authored-by: Shawn Wells <[email protected]>

* Updated service class unit tests (CrowdStrike#31)

* Package layout updates

* Package updates

* Cleaning up tabs

* README and LICENSE updates

* More package testing

* Broken link fixes

* Uber class custom headers, Content-Type retained

* v0.1.8 - Uber class custom headers

* Uber class fix for octet-stream file uploads

* README.md updates

* Package development status alignment

* Typo fix in README.md

* Minor README.md text edits

* Initial unit tests: Service and Uber Auth / Revoke

* Initial unit tests: CCAWS - GetAWSSettings

* Uber class fix for non-JSON API responses

* Updated to support GitHub workflow execution

* Working directory fix

* Fixed authorization unit test 500 error

* Adjusted workflow directory

* Added working directory

* Changed working directory

* Working directory debugging

* Debugging workflows

* Lessee if this werks...

* Reverted linting.yml change

* Now there's a test package

* Pytest  debugging

* Trying it another way

* Another variation

* Fix to reduce flakiness in test_authorization.py

* Comment typo

* New unit tests for: AWS Accounts APIs

* New unit tests, requires updated svc classes

* Added coverage to test workflow

* GitHub workflow debugging

* Workaround for GitHub to CS API rate limiting

* Added pytest skips for rate limit barriers

* Added pytest skips for rate limit barriers

* Added pytest skips for rate limit barriers

Co-authored-by: Shawn Wells <[email protected]>

* Service class updates (CrowdStrike#33)

* Service Class fixes (CrowdStrike#30)

* Default parameter debugging. Ran the code through the DRYer.

* Param defaults, fixes to GetDeviceDetails, DRYer

* Parameter defaults, DRYer, Unit testing

* Parameter cleanup, IDs fix, DRYer, Unit testing

* Param, partition, content-type fixes. Unit tests.

* Parameter cleanup, DRYer

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, More to do here

* Param cleanup, IDs fixes, DRYer

* Param cleanup, IDs fixes, DRYer

* Param cleanup, IDs fix, DRYer

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit test prep

* Param cleanup, IDs fix, DRYer, Basic unit tests

* Quick run thru the DRYer

* Unit testing fixes, updated service classes (CrowdStrike#32)

* Default parameter debugging. Ran the code through the DRYer.

* Param defaults, fixes to GetDeviceDetails, DRYer

* Parameter defaults, DRYer, Unit testing

* Parameter cleanup, IDs fix, DRYer, Unit testing

* Param, partition, content-type fixes. Unit tests.

* Parameter cleanup, DRYer

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, More to do here

* Param cleanup, IDs fixes, DRYer

* Param cleanup, IDs fixes, DRYer

* Param cleanup, IDs fix, DRYer

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit test prep

* Param cleanup, IDs fix, DRYer, Basic unit tests

* Quick run thru the DRYer

* Updated service class unit tests (CrowdStrike#31)

* Package layout updates

* Package updates

* Cleaning up tabs

* README and LICENSE updates

* More package testing

* Broken link fixes

* Uber class custom headers, Content-Type retained

* v0.1.8 - Uber class custom headers

* Uber class fix for octet-stream file uploads

* README.md updates

* Package development status alignment

* Typo fix in README.md

* Minor README.md text edits

* Initial unit tests: Service and Uber Auth / Revoke

* Initial unit tests: CCAWS - GetAWSSettings

* Uber class fix for non-JSON API responses

* Updated to support GitHub workflow execution

* Working directory fix

* Fixed authorization unit test 500 error

* Adjusted workflow directory

* Added working directory

* Changed working directory

* Working directory debugging

* Debugging workflows

* Lessee if this werks...

* Reverted linting.yml change

* Now there's a test package

* Pytest  debugging

* Trying it another way

* Another variation

* Fix to reduce flakiness in test_authorization.py

* Comment typo

* New unit tests for: AWS Accounts APIs

* New unit tests, requires updated svc classes

* Added coverage to test workflow

* GitHub workflow debugging

* Workaround for GitHub to CS API rate limiting

* Added pytest skips for rate limit barriers

* Added pytest skips for rate limit barriers

* Added pytest skips for rate limit barriers

Co-authored-by: Shawn Wells <[email protected]>

Co-authored-by: Shawn Wells <[email protected]>

* Pytest fixes (CrowdStrike#34)

* Default parameter debugging. Ran the code through the DRYer.

* Param defaults, fixes to GetDeviceDetails, DRYer

* Parameter defaults, DRYer, Unit testing

* Parameter cleanup, IDs fix, DRYer, Unit testing

* Param, partition, content-type fixes. Unit tests.

* Parameter cleanup, DRYer

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, More to do here

* Param cleanup, IDs fixes, DRYer

* Param cleanup, IDs fixes, DRYer

* Param cleanup, IDs fix, DRYer

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit test prep

* Param cleanup, IDs fix, DRYer, Basic unit tests

* Quick run thru the DRYer

* Updated service class unit tests (CrowdStrike#31)

* Package layout updates

* Package updates

* Cleaning up tabs

* README and LICENSE updates

* More package testing

* Broken link fixes

* Uber class custom headers, Content-Type retained

* v0.1.8 - Uber class custom headers

* Uber class fix for octet-stream file uploads

* README.md updates

* Package development status alignment

* Typo fix in README.md

* Minor README.md text edits

* Initial unit tests: Service and Uber Auth / Revoke

* Initial unit tests: CCAWS - GetAWSSettings

* Uber class fix for non-JSON API responses

* Updated to support GitHub workflow execution

* Working directory fix

* Fixed authorization unit test 500 error

* Adjusted workflow directory

* Added working directory

* Changed working directory

* Working directory debugging

* Debugging workflows

* Lessee if this werks...

* Reverted linting.yml change

* Now there's a test package

* Pytest  debugging

* Trying it another way

* Another variation

* Fix to reduce flakiness in test_authorization.py

* Comment typo

* New unit tests for: AWS Accounts APIs

* New unit tests, requires updated svc classes

* Added coverage to test workflow

* GitHub workflow debugging

* Workaround for GitHub to CS API rate limiting

* Added pytest skips for rate limit barriers

* Added pytest skips for rate limit barriers

* Added pytest skips for rate limit barriers

Co-authored-by: Shawn Wells <[email protected]>

* Minor pytest fixes

* Minor pytest fixes

Co-authored-by: Shawn Wells <[email protected]>

* Another minor PyTest fix (CrowdStrike#35)

* Default parameter debugging. Ran the code through the DRYer.

* Param defaults, fixes to GetDeviceDetails, DRYer

* Parameter defaults, DRYer, Unit testing

* Parameter cleanup, IDs fix, DRYer, Unit testing

* Param, partition, content-type fixes. Unit tests.

* Parameter cleanup, DRYer

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, More to do here

* Param cleanup, IDs fixes, DRYer

* Param cleanup, IDs fixes, DRYer

* Param cleanup, IDs fix, DRYer

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit test prep

* Param cleanup, IDs fix, DRYer, Basic unit tests

* Quick run thru the DRYer

* Minor pytest fixes

* Minor pytest fixes

* GitHub workflow fix

* Version update (CrowdStrike#36)

* Default parameter debugging. Ran the code through the DRYer.

* Param defaults, fixes to GetDeviceDetails, DRYer

* Parameter defaults, DRYer, Unit testing

* Parameter cleanup, IDs fix, DRYer, Unit testing

* Param, partition, content-type fixes. Unit tests.

* Parameter cleanup, DRYer

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, More to do here

* Param cleanup, IDs fixes, DRYer

* Param cleanup, IDs fixes, DRYer

* Param cleanup, IDs fix, DRYer

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit testing

* Param cleanup, IDs fix, DRYer, Unit test prep

* Param cleanup, IDs fix, DRYer, Basic unit tests

* Quick run thru the DRYer

* Minor pytest fixes

* Minor pytest fixes

* GitHub workflow fix

* v 0.2.0 - Updated services classes

Co-authored-by: Shawn Wells <[email protected]>

* Coverage badge generation, additional unit tests (CrowdStrike#41)

* Added badge generation to coverage workflow

* Added coverage badge

* Additional unit tests

* Unit testing - testfile

* Reducing a tests frequency due to race condition

* Moved the skips about

* Fixed the skips

* Cheating on the coverage badge

* Additional unit tests. README.md tweak. Badge update.

* Final authorization unit test

* Fixed typo

* Cheating on the coverage badge

* MSSP targeting token authentication fix (CrowdStrike#48)

* MSSP targeting fix

* MSSP targeting fix

* Intel unit test fixes

* MSSP targeting credential dictionary change (Uber class only) (CrowdStrike#50)

* MSSP targeting fix

* MSSP targeting fix

* Intel unit test fixes

* Minor change to MSSP targeting credential dictionary

* Minor change to MSSP targeting credential dictionary

* Configurable SSL verification options, Disable Python 3.5 testing (CrowdStrike#54)

* User configurable SSL verify, PyTest warnings.

* Added unit test for disabling SSL verification

* Disable Python 3.5 testing

* Version updated to 0.3.0

* initial gitbook scaffolding (CrowdStrike#61) (CrowdStrike#62)

* Version 0.4 Update (CrowdStrike#64)

* Initial version 0.4 commit

* Linting adjustments

* Unit test updates (CrowdStrike#65)

* Initial version 0.4 commit

* Linting adjustments

* Unit test update

* Unit test adjustment

* v0.4.1 - action_name, missing methods, CSPM class (CrowdStrike#67)

* v0.4.1 - action_name, missing methods, CSPM class

* Updated return type decorator on byte result ops

* v4.0.1 README.md updates

* v4.0.1 README.md updates

* v4.0.1 README.md updates

* v4.0.1 README.md updates

* UpdatedDetectsByIdsV2 validator fix, minor changes

* v0.4.2 Update - New endpoints, Missing UpdateDeviceTags method (CrowdStrike#73)

* Initial v0.4.2 update - Cleanup and normalization

* Updated endpoint list. Deprecated invalid method names.

* Added local unit testing initialization script

* Linting helper script

* FalconGroupingTags via SDK (CrowdStrike#72)

* added endpoint information for host tags. added tests

* missed comma and param name

* missed param, not caught in previous commit

* removed an unused test, no changes to uber test

* merging and removing left over conflicts

* Update _endpoint.py

* Update hosts.py

Moving FalconGroupingTags -> UpdateDeviceTags

* Update test_hosts.py

Moving FalconGroupignTags -> UpdateDeviceTags

Co-authored-by: Caleb Schwartz <[email protected]>
Co-authored-by: jshcodes <[email protected]>

* Linting script update, UpdateDeviceTags merge

* Minor fixes to UpdateDeviceTags

* Added unit tests to cover new code paths

Co-authored-by: rewgord <[email protected]>
Co-authored-by: Caleb Schwartz <[email protected]>

* Unit test adjustments (Post v0.4.2 merge) (CrowdStrike#75)

* Initial v0.4.2 update - Cleanup and normalization

* Updated endpoint list. Deprecated invalid method names.

* Added local unit testing initialization script

* Linting helper script

* FalconGroupingTags via SDK (CrowdStrike#72)

* added endpoint information for host tags. added tests

* missed comma and param name

* missed param, not caught in previous commit

* removed an unused test, no changes to uber test

* merging and removing left over conflicts

* Update _endpoint.py

* Update hosts.py

Moving FalconGroupingTags -> UpdateDeviceTags

* Update test_hosts.py

Moving FalconGroupignTags -> UpdateDeviceTags

Co-authored-by: Caleb Schwartz <[email protected]>
Co-authored-by: jshcodes <[email protected]>

* Linting script update, UpdateDeviceTags merge

* Minor fixes to UpdateDeviceTags

* Added unit tests to cover new code paths

* Unit test updates - Reducing AWS queries for Python <= 3.8

* Unit test adjustment - removing redundant service class check

* Removing uber class redundant test

Co-authored-by: rewgord <[email protected]>
Co-authored-by: Caleb Schwartz <[email protected]>

* Configure dependabot to focus on python (CrowdStrike#77)

And hopefully disregard javascript modules, that are only used for docs pipeline.

* Requirements.txt updates (CrowdStrike#83)

* Configure dependabot to focus on python

And hopefully disregard javascript modules, that are only used for docs pipeline.

* Removed unnecessary upstream requirement references.

Co-authored-by: Simon Lukasik <[email protected]>

* Bump urllib3 from 1.26.2 to 1.26.4 (CrowdStrike#82)

Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.2 to 1.26.4.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/1.26.4/CHANGES.rst)
- [Commits](urllib3/urllib3@1.26.2...1.26.4)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump requests from 2.25.0 to 2.25.1 (CrowdStrike#81)

Bumps [requests](https://github.com/psf/requests) from 2.25.0 to 2.25.1.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/master/HISTORY.md)
- [Commits](psf/requests@v2.25.0...v2.25.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump ini from 1.3.5 to 1.3.8 (CrowdStrike#84)

Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](npm/ini@v1.3.5...v1.3.8)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump pug-code-gen from 2.0.2 to 2.0.3 (CrowdStrike#85)

Bumps [pug-code-gen](https://github.com/pugjs/pug) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/pugjs/pug/releases)
- [Commits](https://github.com/pugjs/pug/compare/[email protected]@2.0.3)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Create CODE_OF_CONDUCT.md (CrowdStrike#88)

* Adding SECURITY.md (CrowdStrike#89)

* Create SECURITY.md

* Update SECURITY.md

* Update SECURITY.md

Co-authored-by: Shawn Wells <[email protected]>

* Update SECURITY.md

* Update SECURITY.md

* Update SECURITY.md

* Update SECURITY.md

* Update SECURITY.md

* Update SECURITY.md

Co-authored-by: Shawn Wells <[email protected]>

* Create CONTRIBUTING.md (CrowdStrike#92)

* Create CONTRIBUTING.md

* Create pull_request_template.md

* Create requirements-dev.txt

* Update CONTRIBUTING.md

* Update pull_request_template.md

* Update CONTRIBUTING.md

Co-authored-by: Shawn Wells <[email protected]>

* Update requirements-dev.txt

Co-authored-by: Shawn Wells <[email protected]>

* Update .github/pull_request_template.md

Co-authored-by: Shawn Wells <[email protected]>

* Update .github/pull_request_template.md

Co-authored-by: Shawn Wells <[email protected]>

* Update .github/pull_request_template.md

Co-authored-by: Shawn Wells <[email protected]>

* Update .github/pull_request_template.md

Co-authored-by: Shawn Wells <[email protected]>

* Update CONTRIBUTING.md

Co-authored-by: Shawn Wells <[email protected]>

* Update CONTRIBUTING.md

Co-authored-by: Shawn Wells <[email protected]>

* Update CONTRIBUTING.md

Co-authored-by: Shawn Wells <[email protected]>

* Typo fix - CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update pull_request_template.md

* Update pull_request_template.md

* Update pull_request_template.md

* Update pull_request_template.md

Co-authored-by: Shawn Wells <[email protected]>

* Create codeql-analysis.yml (CrowdStrike#93)

* Update CODE_OF_CONDUCT.md (CrowdStrike#94)

* Update linting.yml - Adding bandit to workflow (CrowdStrike#95)

* Update linting.yml

* Update linting.yml

* Update CONTRIBUTING.md (CrowdStrike#97)

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update pull_request_template.md (CrowdStrike#98)

* Update CONTRIBUTING.md (CrowdStrike#99)

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* v0.4.3 Update - Sample_Uploads service class, Fixes, Documentation (CrowdStrike#96)

* Debugging harness, dependabot updates from main. (CrowdStrike#87)

* Alternative falcon shell for python lovers

Usage:
```
$ python3 -m falconpy.shell
```

* Merge main/shell (CrowdStrike#86)

* Configure dependabot to focus on python (CrowdStrike#77)

And hopefully disregard javascript modules, that are only used for docs pipeline.

* Requirements.txt updates (CrowdStrike#83)

* Configure dependabot to focus on python

And hopefully disregard javascript modules, that are only used for docs pipeline.

* Removed unnecessary upstream requirement references.

Co-authored-by: Simon Lukasik <[email protected]>

* Bump urllib3 from 1.26.2 to 1.26.4 (CrowdStrike#82)

Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.2 to 1.26.4.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/1.26.4/CHANGES.rst)
- [Commits](urllib3/urllib3@1.26.2...1.26.4)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump requests from 2.25.0 to 2.25.1 (CrowdStrike#81)

Bumps [requests](https://github.com/psf/requests) from 2.25.0 to 2.25.1.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/master/HISTORY.md)
- [Commits](psf/requests@v2.25.0...v2.25.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Co-authored-by: Šimon Lukašík <[email protected]>
Co-authored-by: Simon Lukasik <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Co-authored-by: Simon Lukasik <[email protected]>
Co-authored-by: Šimon Lukašík <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* README.md updates

* Logo resize

* Logo resize

* Logo resize

* Sample Uploads Service Class

* README.md updates

* README.md updates

* README.md updates

* README.md updates

* Bug fix: Incorrect variable reference

* v0.4.3 update

* v0.4.3 update

* FalconDebug - Interactive debugger

* Unit testing coverage adjustments

* Unit test: Sample_Uploads service class

* Local unit test coverage adjustments

* FalconShell integration

* Unit test adjustment: Clean up after yourself!

* FalconShell v1.1 - Initial commit

* Remove: incorrect __init__.py

* README.md updates

* Updated contributor requirements

* Removing FalconShell from v0.4.3 branch

* Renamed: _debug.py -> debug.py

* Removing FalconShell dependencies

* Removing GitHub emoji from the package README

* Added developer requirements to package

* Added developer requirements to package

* Added bandit to local unit testing

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Aligning workflows

* Local unit test adjustments

* Update linting.yml

* Update linting.yml

* Update test_sample_uploads.py

Adjustment to handle periodic upload failures and reduce flakiness

* Update test_sample_uploads.py

* Excluding FalconDebug from local unit testing

* Update test_uber_api_complete.py

Skip upload download on upload failure to reduce test flakiness.

* Update README.md

* Update requirements-dev.txt

Co-authored-by: Simon Lukasik <[email protected]>
Co-authored-by: Šimon Lukašík <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update README.md (CrowdStrike#101)

* Bump y18n from 4.0.0 to 4.0.1 (CrowdStrike#100)

Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update README.md (CrowdStrike#103)

Link fix for PIP package description

* Documentation updates (CrowdStrike#104)

* Delete api_office_hour_032321.pptx

* PDF presentation

* README.md updates

* Update CONTRIBUTING.md (CrowdStrike#105)

Typo fix

* Update README.md (CrowdStrike#107)

* Create python-publish.yml (CrowdStrike#106)

* Update linting.yml (CrowdStrike#108)

* Update linting.yml

* Update linting.yml

* Add spell checking workflow (CrowdStrike#110)

* Create wordlist.txt

* Create check_spelling.yml

* Update wordlist.txt

* Update wordlist.txt

* Update wordlist.txt

* Update firewall-management.md

* Update CONTRIBUTING.md

* Update README.md

* Update real-time-response.md

* Pull request automatic labelling (CrowdStrike#111)

* Create labeler.yml

* Create label_request.yml

* Update SECURITY.md

* Update wordlist.txt

* Update label_request.yml

* Workflow updates (CrowdStrike#112)

* Create bandit.yml

* Create unit_testing.yml

* Update bandit.yml

* Update linting.yml

* Update bandit.yml

* Update labeler.yml

* Update linting.yml

* Update bandit.yml

* Update labeler.yml

* Update bandit.yml

* Update unit_testing.yml

* Update label_request.yml

* Update linting.yml

* Update setup.py

* Update labeler.yml

* Create dev-deploy.yml (CrowdStrike#109)

* Usage Examples (CrowdStrike#116)

* Update label_request.yml

Labeller fails on forks, removing workflow from dev branches.

* Sample code: Sample Uploads API

* Code sample: Sample Uploads API

* Sample config.json file

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Uploading simple example of containing and uncontaining a host via API

* Documentation updates

* Documentation updates

* Documentation updates

* Update labeler.yml

Added code samples label tagging

* Update labeler.yml

* Update wordlist.txt

* Linting

* Update linting.yml

* Sample Uploads sample adjustments

* Update bandit.yml

Co-authored-by: Shane Shellenbarger <[email protected]>

* Discover for AWS Usage Examples (CrowdStrike#117)

* Update label_request.yml

Labeller fails on forks, removing workflow from dev branches.

* Sample code: Sample Uploads API

* Code sample: Sample Uploads API

* Sample config.json file

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Uploading simple example of containing and uncontaining a host via API

* Documentation updates

* Documentation updates

* Documentation updates

* Update labeler.yml

Added code samples label tagging

* Update labeler.yml

* Update wordlist.txt

* Linting

* Update linting.yml

* Sample Uploads sample adjustments

* Added samples to bandit analysis

* Update bandit.yml

* Documentation updates

* Documentation updates

* Documentation updates

* Falcon Discover example

* Update bandit.yml

Bandit analysis of samples no longer stops the build

* Adjustments

* Update test_uber_api_complete.py

* Update test_uber_api_complete.py

* Update labeler.yml

* Update test_uber_api_complete.py

* Comment update

Co-authored-by: Shane Shellenbarger <[email protected]>

* [DEPLOY] Version 0.4.4 Update - Sensor Download Service Class, Fixes (CrowdStrike#118)

* Update label_request.yml

Labeller fails on forks, removing workflow from dev branches.

* Sample code: Sample Uploads API

* Code sample: Sample Uploads API

* Sample config.json file

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Documentation updates

* Uploading simple example of containing and uncontaining a host via API

* Documentation updates

* Documentation updates

* Documentation updates

* Update labeler.yml

Added code samples label tagging

* Update labeler.yml

* Update wordlist.txt

* Linting

* Update linting.yml

* Sample Uploads sample adjustments

* Added samples to bandit analysis

* Update bandit.yml

* Documentation updates

* Documentation updates

* Documentation updates

* Falcon Discover example

* Update bandit.yml

Bandit analysis of samples no longer stops the build

* Adjustments

* Update test_uber_api_complete.py

* Update test_uber_api_complete.py

* Update labeler.yml

* Update test_uber_api_complete.py

* Comment update

* Update bandit.yml

* Update linting.yml

* Update unit_testing.yml

* Update dev-deploy.yml

* Issue CrowdStrike#114 - action_name parameter fix

* Updated unit tests for issue CrowdStrike#114

* Feature/sensordownloads (CrowdStrike#113)

* function stubs

* function stubs

* added base functionality for interacting with sensor download api

* updated readme with file path

* writing downloaded sensor

* adding tests for sensor_download.py

* working pytests

* Update tests/test_sensor_download.py

* added ok result, decorators and moved sensor download code w/ some fixes

* Update _util.py

Headers should return a dictionary not a list

* Update _util.py

Resolves linting issue

* Update _util.py

More linting

* Update src/falconpy/sensor_download.py

* Update src/falconpy/sensor_download.py

* Update src/falconpy/sensor_download.py

* Update test_uber_api_complete.py

* Update test_uber_api_complete.py

* Update test_uber_api_complete.py

* Update test_uber_api_complete.py

* Update test_uber_api_complete.py

* Update test_uber_api_complete.py

* Update sensor_download.py

Realized what was bothering me here.  

The DownloadSensorInstallerById endpoint doesn't define the ?id={} variable in _endpoints.py because there is only one ID, so it's not an array. This means we can easily pass it as part of the parameters dictionary instead.

Couple of other minor pattern updates.

* Update test_sensor_download.py

* Update sensor_download.py

Ooops

* Update sensor_download.py

* Update sensor_download.py

* Update tests/test_sensor_download.py

Co-authored-by: Caleb Schwartz <[email protected]>
Co-authored-by: jshcodes <[email protected]>

* Updated unit test to complete coverage

* Documentation updates

* Parameter handling fix

* Updated sample to reflect fix for issue CrowdStrike#114

* Labelling updates to cover unit testing

* Bump version 0.4.3 -> 0.4.4

Co-authored-by: Shane Shellenbarger <[email protected]>
Co-authored-by: rewgord <[email protected]>
Co-authored-by: Caleb Schwartz <[email protected]>

* [DEPLOY] Version 0.4.5 update - Custom IOA, Quick Scan Service Classes, Uber Class API endpoints refresh (CrowdStrike#124)

* Custom IOA service class - initial commit

* Unit test for Custom IOA service class

* Enabling unit testing for push to ver_* branches

* Added Falcon Complete / Falcon Overwatch dashboard and MSSP endpoints

* Split out package build testing by operating system

* Bump version 0.4.4 -> 0.4.5

* Documentation updates

* Documentation updates

* Comment updates

* Added Quick Scan service class

* Create CHANGELOG

* Update CHANGELOG

* Update CHANGELOG

* Update CHANGELOG

* Workflow adjustments

* Update CHANGELOG

* Wordlist updates

* Documentation updates

* Fixed typo

* Documentation updates

* Documentation updates

* Documentation updates

* Unidiomatic type check fix

* Safer default payload dictionaries

* Safer payload default dictionaries and lists

* Update CHANGELOG.md

* Unit test adjustments to cover new code paths

* Flake8 is unhappy with the complexity of the command method

* Safer default list payload parameter

* Quick Scan / Sandbox usage sample (CrowdStrike#127)

* Added Quick Scan / Falcon Sandbox example

* Documentation updates

* Updated label selections

* Linting update

* Removing my sweet eval to prevent swooning

* Quick Scan sample documentation (CrowdStrike#128)

* Added Quick Scan / Falcon Sandbox example

* Documentation updates

* Updated label selections

* Linting update

* Removing my sweet eval to prevent swooning

* Added README.md

* Updated wordlist.txt

* Removed CodeQL from PRs / pushes that don't include Python source

Co-authored-by: Shawn Wells <[email protected]>
Co-authored-by: Shawn Wells <[email protected]>
Co-authored-by: Šimon Lukašík <[email protected]>
Co-authored-by: rewgord <[email protected]>
Co-authored-by: Caleb Schwartz <[email protected]>
Co-authored-by: Simon Lukasik <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Shane Shellenbarger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working documentation 📖 Improvements or additions to documentation enhancement 🌟 New feature or request package Pull requests that update the core package pipeline CI/CD related unit testing Pull requests that include unit testing updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants