The U.S. Department of Defense has banned USB drives and other removable media after a worm hit military networks.