In recent decades, blockchain is a leading central concept similar to the internet's growth in 1990. However, it has some drawbacks, particularly in the security area. In this paper, the blockchain security structure had been summarized by conducting a detailed survey. The discussion on how to defend against particular security threats and challenges with blockchain technology's security mechanism has been analyzed and presented. Moreover, the applications of blockchain system and their different security problems are also presented in this paper. Even though the blockchain technology concept is more consistent and provides trusted services, this novel approach regarding security and challenges plays a significant role.