摘要:According to high development of internet and mobile internet technologies, more and more services and applications are researched and are becoming more and more important in people’s life. At the same time, there are still many risks that virus attack from internet. Network security is facing more challenges than before, such as attack method becoming more diversify, attack times are increasing rapidly, and attack behavior are becoming a system to damage network security. What’s more, application data is more changeable that before, which makes it more difficult to judge which behavior is attack and response to the attack. Current network security system can’t prevent a system level attack, what’s more, can’t response to the attack quickly and effectively. Therefore, this paper designed a new context aware network security model to prevent various attack effectively, present the context declaim algorithm to judge network attack, and then designed a data share mechanism to share attack information with peer machine, which can decrease the response time deeply. Finally, this paper designed a set experiment to validate the quality and performance of context based network security model, the result shows this model can prevent network attack effectively and more memory saving in changeable application.