The military intelligence are allowed to do whatever it takes to defend against foreign powers, but they are not allowed to gather intelligence on Danish citizens. If they uncover something that involved danish citizens or internal threats in the course of their work they are supposed to hand it over to the police intelligence service. As I understand part of the scandal is that this has not happened, compounded by active measures to cover things up towards the oversight committee.