To thwart malware planted by Russia’s Fancy Bear hacker group on an estimated 250,000 routers in Ukraine, the F.B.I. recommends: Turn off the router, then turn it back on. Rebooting the device will temporarily disrupt the malware. Users also are advised to upgrade the router’s firmware and to select a new password. If remote-management settings are in place, disable them.