Modeling and Analysis of Advanced Persistent Threats in Cyber Space