tapas.report.attack_summary.AttackSummary

class tapas.report.attack_summary.AttackSummary

Bases: abc.ABC

Summarise the results of an attack in a specific threat model.

__init__()

Methods

__init__()

get_metric_filename([postfix])

Returns the name of the file to save to.

get_metrics()

Calculate metrics relevant for an attack.

write_metrics(output_path[, postfix])

Write metrics to file.

abstract get_metric_filename(postfix='')

Returns the name of the file to save to.

Parameters

postfix (str) – An optional string to append to the filename.

abstract get_metrics()

Calculate metrics relevant for an attack.

write_metrics(output_path, postfix='')

Write metrics to file.

Parameters
  • output_path (str) – The prefix of the path where the metrics should be saved.

  • postfix (str) – An optional string to append to the filename