Skip to main content

CrowdStrike FalconPy Tools

Project description

CrowdStrike Falcon Twitter URL

FalconPy Tools

Pylint Flake8 Bandit CodeQL Maintained

A collection of tools for interacting with the CrowdStrike Falcon API.

Basic usage example

The following example demonstrates using the Hosts Toolbox to retrieve a host AID.

import os
from falconpytools.hosts import HostsToolbox, Host
from falconpytools.rtr import RTRToolbox, SingleTarget

# Open the RTR toolbox
rtr = RTRToolbox(os.environ["FALCON_CLIENT_ID"],
                 os.environ["FALCON_CLIENT_SECRET"],
                 verbose=True
                 )
# Open the Hosts toolbox
hosts = HostsToolbox(auth_object=rtr.api.rtr.auth_object,
                     verbose=True
                     )
# Host helper
host = Host(api=hosts.api, verbose=hosts.verbose)
# Lookup the AID for our search string
target_aid = host.find_host_aid(hostname="SEARCH-STRING")
hostname = host.get_host(target_aid)[0]["hostname"]
# RTR Single Target helper
target = SingleTarget(api=rtr.api, verbose=rtr.verbose)
# Initialize a RTR session
target_session = target.connect_to_host(target_aid)
# Execute a RTR command
command_result = host.execute_command("ifconfig", target_session)
# Disconnect from the RTR session
host.disconnect_from_host(target_session)
# Output the results
print(command_result)

Installation

python3 -m pip install crowdstrike-falconpy-tools

Upgrading

python3 -m pip install crowdstrike-falconpy-tools --upgrade

Removal

python3 -m pip uninstall crowdstrike-falconpy-tools

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crowdstrike-falconpy-tools-0.0.11.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

crowdstrike_falconpy_tools-0.0.11-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file crowdstrike-falconpy-tools-0.0.11.tar.gz.

File metadata

  • Download URL: crowdstrike-falconpy-tools-0.0.11.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.7

File hashes

Hashes for crowdstrike-falconpy-tools-0.0.11.tar.gz
Algorithm Hash digest
SHA256 5f0da29e10c9b083ceb89bb9e478215eeb03aa126f8964a2f924d39fae7f17e3
MD5 2e7c514a85896aa58a510482cf3f8bbd
BLAKE2b-256 26ea1bff3b071e528b7edbae5dd04ad83cd7e43b6a87dc51635766deea37d598

See more details on using hashes here.

File details

Details for the file crowdstrike_falconpy_tools-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: crowdstrike_falconpy_tools-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.7

File hashes

Hashes for crowdstrike_falconpy_tools-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 fb06f99b74a43413430ad39770764c6f0fe54c75c2e21b32cbb08991c2d23929
MD5 ceeae9266c6555cdbaccdbef72c6962c
BLAKE2b-256 dda94449c0ac52f24d728847305c124c9dc0848d179796de8d47774c058f59bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page