mitre-attack / tram

Threat Report ATT&CK™ Mapping (TRAM) is a tool to aid analyst in mapping finished reports to ATT&CK.
Apache License 2.0
346 stars 66 forks source link

Fixed deletion bug #48

Closed srbennett29 closed 4 years ago

srbennett29 commented 4 years ago

Not able to replicate this bug. When pressing the delete button on the card for a report, the report is removed from the UI and from the database.

However while the report entries were removed from the database in the tables reports, report_sentences and report_sentence_hits, the corresponding sentences were not removed from the true_positives and false_negatives tables.

Updated the delete_report method in rest_svc.py to remove the corresponding sentences from the true_positive and false_negatives tables.