Skip to content

StellarMitre Reference

StellarMitre

This class handles interactions with the MITRE ATT&CK framework. Implements caching, efficient data processing, and error handling.

__init__()

Initialize StellarMitre with optimized caching and file handling.

generate_navigator_layer(name, techniques_with_scores, description=None)

Generate a MITRE ATT&CK Navigator layer file.

Parameters:

Name Type Description Default
name str

Name of the layer

required
techniques_with_scores dict[str, float]

Dictionary mapping technique IDs to scores (0-100)

required
description str | None

Optional description of the layer

None

Returns:

Type Description
dict[str, Any]

Dictionary containing the ATT&CK Navigator layer data

get_detections(version='5.2.x')

Return a list of detections from detections.stellarcyber.ai

get_detections_datasources(as_options=None)

Return a list of data sources from detections.stellarcyber.ai

get_tactics()

Return a cached list of tactics from the MITRE ATT&CK framework.

get_tactics_and_techniques()

Return a list of tactics with their associated techniques.

get_techniques()

Return a cached list of techniques from the MITRE ATT&CK framework.

get_techniques_by_tactic(tactic)

Return a cached list of techniques by tactic.