Tim Cook at MIT

2VGfH.1xwzAofumrAhU7KhED2gGCN86QqiVym8g_MGCVCzT5Pag.1iejSJDwChOI1CDNDXivDzS.camSXtaJAR30qIK.G7pnkx2DIGUfqL.BxBeRl8dwWzxeBbkukm6sk9XBsgA0ZoiEhJbo0WflHFFMnrR7po.rvH1fHG3fpKgXnMlXhLHT8hbJ.jpg

Though Cook helms one of the world's biggest technology companies, he said technology is "not always the solution," and is sometimes part of the problem. He said that shareholders have pushed Apple to focus on return on investment, but that engineers should have the courage to stand by what is right.

"Most of the time [technology] is a force for good," Cook said. "But the potential adverse consequences are spreading faster and cutting deeper than ever before. Threats to our security, threats to our privacy, fake news, and social media that sometimes becomes anti-social."

Technology must be infused with decency and kindness, Cook said.

CNBC Video

US News Video