The International Committee of the Red Cross (ICRC) has, for the first time, published rules of engagement for civilian hackers involved in conflicts.
The war watchdog warns unprecedented numbers of people are joining patriotic cyber-gangs since the Ukraine invasion.
The eight rules include bans on attacks on hospitals, hacking tools that spread uncontrollably and threats that engender terror among civilians.
But some cyber-gangs have told BBC News they plan to ignore them.
The ICRC, responsible for overseeing and monitoring the rules of war, is sending the new rules to hacking groups particularly involved in the Ukraine war. It is also warning hackers their actions can endanger lives, including their own if deemed to make them a legitimate military target.
Patriotic hacking is not new, with many attacks around the world at times of heightened tension or conflict over the past decade. For example, the ICRC statement highlights pro-Syrian cyber-attacks on Western news media in 2013.
But the worrying trend, accelerated by the cyber-chaos in the Russia-Ukraine conflict, is now spreading globally, ICRC legal adviser Dr Tilman Rodenhäuser says.
"Some experts consider civilian hacking activity as 'cyber-vigilantism' and argue that their operations are technically not sophisticated and unlikely to cause significant effects," he says.
"However, some of the groups we're seeing on both sides are large and these 'armies' have successfully disrupted many civilian objects, including banks, companies, pharmacies, hospitals, railway networks and civilian government services."
Based on international humanitarian law, the rules are:
The ICRC is also imploring governments to restrain hacking and enforce existing laws.
The Ukraine conflict has blurred the boundaries between civilian and military hacking, with civilian groups such as the IT Army of Ukraine being set up and encouraged by the government to attack Russian targets.
The IT Army of Ukraine, which has 160,000 members on its Telegram channel, also targets public services such as railway systems and banks.
Its spokesman told BBC News it had not decided whether to implement the ICRC rules. The group has already banned attacks on healthcare targets – but said the wider civilian impact was unavoidable.
"Adhering to the rules can place one party at a disadvantage," the spokesman added.
Large groups in Russia have similarly attacked Ukraine and allied countries – including disruptive but temporary attacks, such as knocking websites offline, on hospitals.
"Why should I listen to the Red Cross?" a representative of Killnet, which has 90,000 supporters on its Telegram channel, asked BBC News.
Pro-Russian groups are accused of working directly for, or in conjunction, with the Kremlin. But Killnet strongly denies this.
Meanwhile, a representative of Anonymous Sudan, which in recent months has begun attacking technology companies and government services it says are critical of Sudan or Islam, told BBC News the new rules were "not viable and that breaking them for the group's cause is unavoidable".
And a high-profile member of the Anonymous collective told BBC News it had "always operated based on several principles, including rules cited by the ICRC" but had now lost faith in the organisation and would not be following its new rules.
President-elect Trump is set to meet President Biden at the Oval Office on Wednesday, White…
close Video Nigel Farage: 'Our country is changing fundamentally' Reform U.K. Party Leader Nigel Farage…
close Video Iran knows ‘maximum pressure’ is coming from Trump, says Aaron Cohen Israeli special…
Rep. Jared Moskowitz, D-Fla., said in a statement that the Margate Police Department informed him…
ChatGPT is an amazing tool, and its developer, OpenAI, keeps adding new features from time…
Republican senators will select a new Senate GOP leader next week, and Sen. Josh Hawley,…