In a statement, the feared FSB said it had detected malware "intended for use to spy online on some 20 institutions in Russia".
The organisations in question were government, scientific and military institutions, the FSB said.
"The circumstances appear to indicate... a planned attack, designed by professionals," it added.
There was no indication who the Russian intelligence service believed might be behind such a plan.
According to the FSB, the virus was sent as an attachment in an email, allowing the sender to intercept data traffic, listen in on phone calls, take screenshots, switch on microphones and cameras and log keystrokes.
The statement came as US Democrats said Saturday they had been targeted by yet another cyber-attack.
A hack on Democratic National Committee servers resulted in last week's embarrassing leak of emails that revealed how party leaders sought to undermine Clinton's Democratic White House rival Bernie Sanders.
Russia has denied intervening in the US election campaign, though Republican candidate Donald Trump sensationally challenged Moscow to hack into his rival Hillary Clinton's emails.
For the latest tech news and reviews, follow Gadgets 360 on X, Facebook, WhatsApp, Threads and Google News. For the latest videos on gadgets and tech, subscribe to our YouTube channel. If you want to know everything about top influencers, follow our in-house Who'sThat360 on Instagram and YouTube.