I highly doubt it's legal for US Citizens. The FBI wouldn't want to risk blowing themselves up with a hacker's computer. But i'm sure hte military doesn't follow the same rules as everyone else.