The Internet of Things (IoT) is an emerging paradigm that seamlessly integrates electronic devices with sensing and computing capability into the Internet to achieve intelligent processing and optimized controlling. In a connected world built through IoT, where interconnected devices are extending to every facet of our lives, including our homes, offices, utility infrastructures and even our bodies, we are able to do things in a way that we never before imagined. However, as IoT redefines the possibilities in environment, society and economy, creating tremendous benefits, significant security and privacy concerns arise such as personal information confidentiality, and secure communication and computation. Theoretically, when everything is connected, everything is at risk. The ubiquity of connected things gives adversaries more attack vectors and more possibilities, and thus more catastrophic consequences by cybercrimes. Therefore, it is very critical to move fast to address these rising security and privacy concerns in IoT systems before severe disasters happen. In this dissertation, we mainly address the challenges in two domains: (1) how to protect IoT devices against cyberattacks;(2) how to protect sensitive data during storage, dissemination and utilization for IoT applications.In this section, I would like to express my gratitude to my advisor, my colleagues, my committee members and my family for their guidance, encouragement and support along the road of my PhD study.First of all, I would like to express my deepest gratitude to my advisor, Prof. Fengjun Li, for her tremendous support, guidance, encouragement, patience and contributions to the ideas in this dissertation. I could not have done this without her help. When I began my PhD, she led me to security field and help me grow from an undergraduate to a PhD. I will never forget her patience on guiding me to identify research questions, tackle them and write a research paper. Her patience, enthusiasm, knowledge and insights have been a great source of inspiration and will also benefit my whole life. I will always cherish the time we spent working together.