Developments in technology increased the internet connected devices day by day. Today, the usage of these devices in many areas such as personal, social and health is directly proportional to the security and privacy capabilities of them. The things that connected to the Internet and do not have strong hardware like computers, servers etc. and have limited memory and processor are called the internet of things (IoT). Furthermore, classical methods for intrusion detection cannot be used within these devices. Moreover, in recent years, the increasing number of vulnerability and the number of potential victims has led the attackers to turn to the Internet of things. In this study, we presented a detail literature survey of IoT architecture.