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

Queue is ignored in-between sessions #88

Closed jecarr closed 3 years ago

jecarr commented 3 years ago

Please Describe The Problem To Be Solved

Minor but the queue is currently being ignored in between sessions. My queue in TRAM may build up over time but only reports submitted in my current session will be completed (i.e. queue some reports, stop running TRAM, startup TRAM another time, queue is not resumed).

Proposed Change

I have a fix here - arachne-threat-intel/thread@45f76bc - but haven't created a PR due to maintaining #61. The approach is to:

  1. Prepare the queue before the app starts up (with any reports with status 'queue'). a. Delete any related db items for this queued report as it will go through start_analysis() again and re-populate db
  2. Allow the app to start up
  3. Check queue which will trigger analysis of first report left in queue
MarkDavidson commented 3 years ago

Hello @jecarr and thank you for the bug report. TRAM has moved to https://github.com/center-for-threat-informed-defense/tram and this issue is no longer present in that repository so I am closing this issue. Thank you!