MISP module
- class MISP.MISP(config: Config)
Bases:
object
Class used for checking content from WarningLists flat files
Initializes the WarningLists object. The object will contain the lists defined in the configuration. The slowsearch option set to true will allow searching in cidr ranges
- Parameters:
config – Config object
- get_list(name: str, url: str)
Returns response from search method of the warninglist class
- Parameters:
name – name of the searched object
- Returns:
response from search method of the warninglist class
- Return type:
list
- static is_security_flagged(response: dict) bool
- static read(name: str, key: str, log: Log, config: Config, cache: Cache, url: str)
Returns response from API and writes to cache
- Parameters:
name – name of the searched object
key – key to use when writing to cache
log – Log object
config – Config object
cache – Cache object
- Returns:
parsed_response from flat files
- Return type:
dict | None