A Silicon Valley entrepreneur and author has been selected to run a new government organization whose mission is to protect the computer networks of federal agencies from attack, his former company announced on Thursday.