A lawyer specializing in data security has been appointed chief privacy officer at the U.S. Department of Homeland Security.