Coder Social home page Coder Social logo

josehenriqueroveda / crwd-get-detections-pandas Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brucelourenco/crwd-get-detections-pandas

0.0 0.0 0.0 50 KB

Get detection information from Crowdstrike cloud API using FalconPy library and Pandas

Jupyter Notebook 79.53% Python 20.47%

crwd-get-detections-pandas's Introduction

Crowdstrike Querying Detections

This Python script uses the FalconPy SDK to interact with the CrowdStrike Falcon Platform's APIs and retrieve detection data. The data is then processed and exported to an Excel file for further analysis.

The main goal is to summarize the detections by host, maintaining only the last occurrence for that detection showing the sum of threats by host.

Features

  • Retrieves detection data from the Falcon Platform
  • Filters and sorts detections based on specific criteria
  • Adjusts detection timestamps to a specific timezone
  • Populates a pandas DataFrame with the detection data
  • Exports the DataFrame to an Excel file

Requirements

  • Python 3.10+
  • FalconPy SDK
  • pandas
  • dateutil
  • pytz

Usage

  1. Clone this repository.
  2. Install the required Python packages using pip:
    conda 23.11.0
    python 3.11.5
    pandas 2.0.3
    crowdstrike-falconpy 1.4.0
  3. Create a CONFIGFILE with the path to your CrowdStrike API credentials.
  4. Now you can run your script from the command line like this: python crwd_get_detections --config /path/to/config.ini --o /path/to/output.xlsx --start_date 2024-01-01 --end_date 2024-01-03.
  5. And you can get help on the command line arguments like this: python crwd_get_detections -h.
python crwd_get_detections

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Like this project? Give it a โญ!

crwd-get-detections-pandas's People

Contributors

brucelourenco avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.