FILE PHOTO: People wearing balaclavas are silhouetted as they pose with a laptops in front of a screen projected with the word 'cyber' and binary code, in this picture illustration taken in Zenica October 29, 2014. REUTERS/Dado Ruvic

BRUSSELS (Reuters) - The European Union will directly penalize computer hackers after governments agreed on Friday a new mechanism to target individuals anywhere in the world, freezing their assets in the bloc and banning them from entry.

The new powers follow a diplomatic push by Britain and the Netherlands -- overcoming initial reluctance from Italy -- to allow the 28-country bloc to move more quickly against malign cyber attacks that can bring down crucial infrastructure.

“This is decisive action to deter future cyber attacks,” British Foreign Secretary Jeremy Hunt said in a statement.

Just days before European Parliament elections on May 23-26, officials are on alert to any attempts to undermine the vote via disinformation campaigns and cyber attacks.

While no names were added immediately, the EU says the sanctions mechanism will allow the bloc to move quickly to punish future attacks, rather than rely on the current system of special country lists that are complex to negotiate.

Russia has made cyber and electronic warfare a key part of its military operations, Western officials say, and Britain, the Netherlands and the United States have accused Moscow of conducting a campaign of hacks against the West.

EU and NATO diplomats believe China and North Korea, as well as Russia, have developed sophisticated computer hacking weapons and cyber surveillance software to spy on and undermine the West, often using criminal groups to mask the origin of such attacks.

The EU cyber regime plan follows a similar sanctions mechanism to punish chemical weapons attacks by targeting people blamed for using banned munitions regardless of their nationality.

Another sanctions mechanism has been set up for perpetrators of human rights abuses.