After years of talks about the need for public-private partnerships to combat cyberattacks, the war in Ukraine is stress-testing the system.