Cyber-Physical Systems (CPS) have seen a dramatic increase in research and real-world application in recent years. Many parts of our everyday lives have been affected, including electrical power systems, oil and gas delivery, transportation networks, medical equipment, home appliances, and a host of other areas. For example, many critical infrastructure and life support equipment are relying on these kinds of systems. As a result, they are required to be completely secure and resistant to all forms of assaults, which is almost unachievable for any real-world system. This paper focuses on security analysis in CPSs, whereby security in CPSs, security threats in CPSs, and security challenges in CPSs, have been discussed