近年来,Linux系统由于其出色的稳定性、灵活性和可扩展性,以及较低廉的成本,受到计算机工业界的广泛关注和应用。但在安全性方面,Linux内核只提供了自主访问控制以及部分安全机制,这对于Linux系统的安全性是不够的,影响了Linux系统的进一步发展和更广泛的应用。文中在深入研究LKM和HOOK技术的基础上,针对目前Linux系统安全审计方面的不足,设计了一个Linux安全日志模块。当入侵者通过某用户账户进入Linux服务器系统并尝试修改文件时,系统会自动生成包含用户信息的日志记录文件。该模块适用于监管长期稳定运行、配置较少需要改动的Linux服务器系统。经系统实测,该安全日志模块能及时有效地记录恶意用户对系统文件的访问或篡改,为系统的安全审计工作提供有用信息。
In recent years, the Linux system has been widely concerned and applied in the computer industry because of its excellent stabil- ity, flexibility and scalability, and low cost. But in terms of security, the Linux kernel only provides access control as well as some security mechanisms. This is not enough for the security of the Linux system, which affects the further development of the Linux system and its wider application. In view of the current problems on security auditing of Linux system, a Linux security log module is designed in this paper on the basis of the research of LKM and HOOK technology. When an intruder enters the Linux server system through a user account and tries to modify the file, the system will generate a log file containing the user' s information automatically. The module is suitable for monitoring the long-term stable operation of the Linux server system,whose configuration is less need to change. By the actual measure- ment, the security log module can record the user' s access or tampering with the system file in time and effectively, and provide useful in- formation for the security auditing of the system.