mbclib

March 30, 2021 ยท View on GitHub

A library for querying the STIX data for the MBC (Malware Behavior Catalog).

Progress

Currently being developed along with the mbscan.py tool.

About the Malware Behavior Catalog

The Malware Behavior Catalog (MBC) is a catalog of malware objectives and behaviors, created to support malware analysis-oriented use cases, such as labeling, similarity analysis, and standardized reporting. More info here.

Available functions

Fetch FunctionsDescription
get_all_objectivesFetches all objectives
get_all_behaviorsFetches all behaviors
get_all_malwaresFetches all malware
get_objective_by_idGet an objective by id (x-mitre-tactic--0735bfd3-bffa-4476-9e3b-e33cc5c553e0)
get_objective_by_external_idGet an objective by external id (x-mitre-tactic--0735bfd3-bffa-4476-9e3b-e33cc5c553e0)
get_objective_by_shortnameGet an objective by shortname (file-system-micro-objective)
get_behavior_by_idGet a behavior by id (attack-pattern--001ca78e-188e-4725-9f43-706d0f487837)
get_behavior_by_external_idGet a behavior by external id (B0030.001)
get_malware_by_idGet a malware by id (malware--0c0d59b7-4ff0-4a09-9c64-558334485ece)
get_malware_by_external_idGet a malware by external id (X0005)
Property functionsDescription
get_mbc_external_idGiven an mbc object, return the mbc external id
get_parent_behaviorGet the related parent behavior for a given behavior
Relationship functionsDescription
get_relationships_byGet a list of related mbc objects, returned mbc object depends on the input
get_behaviors_used_by_malwareGet a list of behaviors used by a given malware
get_malwares_using_behaviorGet a list of malware that uses a given behavior