The president unveiled legislation aimed at boosting cyber security in the wake of the Sony attacks and the takeover of U.S. military social accounts by ISIS supporters.