opencybersecurityalliance / cacao-roaster

A web application for generating, parsing and validating, manipulating, and visualizing CACAO v2.0 playbooks.
Other
18 stars 7 forks source link

CACAO JSON exporting feature duplicating relationships in parallel steps & switch conditions #12

Open ja-oconnor opened 3 months ago

ja-oconnor commented 3 months ago

Using this playbook as a use case example and the web hosted instance of CACAO Roaster located at https://opencybersecurityalliance.github.io/cacao-roaster/

playbook--8864f889-a5d2-4a62-915e-1ef445bb1618__2024-03-14T22_13_55.683Z.json

On export the array that contains next_steps or cases has a single element that is duplicated. Successive exports will continue to double 1, 2, 4, 8, etc.

I was unable to replicate with another playbook. It doesn't happen for every parallel step, but most of them. Happy to provide any additional information.

Original playbook Screenshot 2024-03-20 at 9 57 20 AM

After importing and exporting (with no other changes) Screenshot 2024-03-20 at 9 57 27 AM

Importing and exporting again, no changes. Screenshot 2024-03-20 at 9 57 32 AM