The European Union had previously made attempts to strengthen cybersecurity through a directive in 2022.