mitre-attack / attack-navigator

Web app that provides basic navigation and annotation of ATT&CK matrices
https://mitre-attack.github.io/attack-navigator
Apache License 2.0
2.01k stars 593 forks source link

show/hide disabled techniques is not working as expected #470

Closed deborahlwatson closed 2 years ago

deborahlwatson commented 2 years ago

When you disable techniques only some of them actually hide when you click on show/hide. To reproduce, create new empty layer in V11. Select Recon, toggle state. Click on show/hide disabled.

Thank you!

clemiller commented 2 years ago

Hi @deborahlwatson,

Do you have the "select sub-techniques with parent" selection behavior enabled?

image

Disabled techniques with enabled sub-techniques will not be hidden when you click on show/hide. Since the "select sub-techniques with parent" behavior is disabled by default, my guess is that when you select and toggle the state of techniques under Recon, only the parent techniques are included in the selection and the state of the sub-techniques have not been toggled. Example:

image

If you enable the selection behavior to select sub-techniques along with the parent technique, select Recon, and then toggle the state, they should all be hidden when you click show/hide.