Image copyright EPA Image caption The sanctions follow Russian cyber-attacks against the US

The US has slapped sanctions on five Russian companies and three Russian individuals for allegedly aiding Russia's main intelligence agency.

Treasury Secretary Steven Mnuchin said the measures were to counter "malicious actors" working to "increase Russia's offensive cyber-capabilities".

The sanctioned entities and individuals are prohibited from any transactions involving the US financial system.

The move is in response to alleged Russian cyber-attacks on the US.

In addition to being barred from the US financial system, the measures mean American citizens and companies cannot do business with the Russian entities.

"The entities designated today have directly contributed to improving Russia's cyber and underwater capabilities through their work with the FSB [Federal Security Service] and therefore jeopardise the safety and security of the United States and our allies," Mr Mnuchin said in a statement on Monday.

The three people named - Aleksandr Tribun, Oleg Chirikov and Vladimir Kaganskiy - reportedly have ties to Divetechnoservices, a company that allegedly specialises in hacking into undersea communications cables.

The Treasury statement cited the NotPetya cyber-attack as well as intrusions into the US energy grid as examples of Russia's "malign and destabilising cyber activities".

Media playback is unsupported on your device Media caption Putin laughs at political chaos in US

In February, the White House said the NotPetya attack in June 2017 caused billions of dollars in damage across Europe, Asia and the Americas.

Congress passed the Countering America's Adversaries Through Sanctions Act last year, which has allowed these sanctions to be passed.

The new sanctions also target Russian underwater capabilities.

According to the Treasury Department, "Russia has been active in tracking undersea communication cables" which carry global telecommunications data.

The Treasury slapped sanctions on the FSB in March for alleged cyber-attacks on behalf of the Kremlin.

President Barack Obama also sanctioned the FSB in 2016 over alleged hacking of Democratic political organisations during the presidential race that year.