Skip to main content

hackagent.datasets.taxonomy

The risk taxonomy goals are labelled with, read from taxonomy.yaml.

Categories are letters (E), subcategories a letter and a number (E2). A goal's labels pair them in display form, E. Cybersecurity Threats and E2. Exploit Development; the category always follows from the subcategory.

categories​

def categories() -> dict[str, str]

Category code to label, in taxonomy order.

subcategories​

def subcategories(category: str | None = None) -> dict[str, str]

Subcategory code to label, optionally only those of category.

labels​

def labels(subcategory: str) -> dict[str, str]

A goal's labels for a subcategory code.

describe​

def describe() -> str

The taxonomy as a model reads it: one code and label per line.

resolve_category​

def resolve_category(value: Any) -> str

A category's code from its code, label, or display form.

resolve_subcategory​

def resolve_subcategory(value: Any) -> str

A subcategory's code from its code, label, or display form.

IntentCategory​

Members by name (CYBERSECURITY_THREATS) and by code (E).