A government department run by savvy tech “freaks” has become a surprise defense against Russia.