TheHive4py icon indicating copy to clipboard operation
TheHive4py copied to clipboard

Rewrite TheHive4py library

Open nadouani opened this issue 6 years ago • 4 comments

Request Type

Feature Request

Problem Description

TheHive4py < 2.0 was initially a quick attempt to provide a python library on top of TheHive REST apis. The current version has a lot of limitations and lacks of consistency.

The goal of this issue is to rewrite it completely, introducing the minimal breaking changes and making sure to be backward compatible for almost all the existing methods.

We will use the same architecture as Cortex4py rewritten version.

Features to include

  • [x] https://github.com/TheHive-Project/TheHive4py/issues/6 Update task
  • [x] https://github.com/TheHive-Project/TheHive4py/issues/7 Update observable
  • [ ] https://github.com/TheHive-Project/TheHive4py/issues/9 Add an option to get case tasks from get_case method
  • [x] https://github.com/TheHive-Project/TheHive4py/issues/12 Make api return dictionaries, not raw responses
  • [x] https://github.com/TheHive-Project/TheHive4py/issues/89 Function to merge cases
  • [x] https://github.com/TheHive-Project/TheHive4py/issues/62 Add the ability to search for all active observables where ioc:true without knowing caseIds
  • [ ] https://github.com/TheHive-Project/TheHive4py/issues/126 Add ioc and sighted attributes to case and alert artifacts
  • [ ] https://github.com/TheHive-Project/TheHive4py/issues/127 Models Case and CaseTemplate don't have PAP attribute
  • [ ] Include fixes and features from 1.x branch

nadouani avatar Aug 29 '18 15:08 nadouani

Please include #117 if possible. It would be of great help to teams who use alerts.

mgabriel-silva avatar Jun 06 '19 17:06 mgabriel-silva

@nadouani Just curious on the status of 2.0.0 - I was in the process of writing a "better" API but it looks like you're already ahead of me! I'd much rather contribute to this than have an unofficial competing project out there.

IAreKyleW00t avatar Aug 01 '19 20:08 IAreKyleW00t

I am currently using a simple wrapper I made around the current API, and it works fine, but I was wondering if there are any updates on this?

nicolaipre avatar Jun 23 '20 07:06 nicolaipre

hi this is my first time to use TheHive with TheHive4py 1.7.2 i wanted to Set up TheHive API to establish API connectivity to TheHive i completely confused where should i go and what should i do i couldn't find the configuration path of the TheHive4py. Would you please me what should i do and where is the configuration file of TheHive4py is located?

alisp7 avatar May 25 '21 06:05 alisp7

This is done in a different way via 2.x

Kamforka avatar Oct 03 '23 17:10 Kamforka