1 Introduction
With the rapid development of information technology, the Internet has penetrated into all aspects of people's lives. The governments, businesses and individuals can not do without the information services provided by the Internet. But when users enjoy the convenience provided by the Internet, the Internet has become a more and more serious threat to the information security of users. With this in mind, this paper has carried out the research on the file security mechanism based on the kernel of the Windows operating system. With good operating system kernel layer knowledge, we can take more thorough security measures to reduce the file security threat caused by malicious programs.