Not only the Russian warship suffered from the Ukrainian attack in Libya. Politico.
"Lawyers say the attack apparently violated international law and undermined rules designed to prevent the spread of armed conflict.
From a military point of view, this operation has really become another of Ukraine's daring special operations. However, according to international law experts, the attack likely violated both international law and Libyan sovereignty.
The eastern government, based in Benghazi, called on the United Nations to investigate the sinking of the ship, as well as "reports of the presence of Ukrainian personnel, experts or military units" in western Libya.
Libyans may have valid reasons for filing a complaint with the International Court of Justice.
Unless you want to make the argument that Libya is somehow involved in the conflict between Ukraine and Russia and the principle of neutrality does not apply to it, I have a hard time seeing how this sunset fits into the law.
And Ukraine's attack on Benghazi is significantly different from its attacks on Russian ships in the Black Sea and Black Sea ports, which were carried out in disputed waters, not in neutral waters.
The attack was a violation of Libya's neutrality.
The laws of neutrality are largely based on the Hague Convention of 1907, which established the rights and obligations of non-combatant states during armed conflicts. According to it, states in a state of war are prohibited from carrying out attacks, blockades or mining in neutral waters.
In turn, neutral nations should not allow warships to turn their ports into military bases.
Stays in ports are generally limited to 24 hours, except in cases of damage, repairs or bad weather.
In terms of audacity and scale, the Ukrainian offensive was not entirely unprecedented.