Linux Kernel intrusion detection security enhancement (I)

Source: Internet
Author: User
Linux Kernel intrusion detection security enhancement implementation (I)-Linux general technology-Linux programming and kernel information. The following is a detailed description. In the computer manufacturing industry, as long as it involves a very high level of computer security requirements, it is always necessary to mention intrusion detection and how to deal with hacker intrusion. The main focus of this discussion is to discover and record intrusions after intruders perform intrusions. It is better to discover and prevent them from intruding into the system before they intrude. We can detect every process in the system, so that we can implement intrusion defense when intruders launch intrusion attacks, because this can immediately stop the execution of malicious system commands. In fact, the most serious damage is caused by malicious system calls executed on the attacked system.

This article provides the design and implementation of this monitoring function for sensitive system calls. Our goal is to achieve this function by intercepting system calls on UNIX-like system kernels. The comprehensive functions of this system can be embedded into the System Call code in the kernel. When the system call is referenced, you can check whether the system call conforms to the rules defined by the access control database.

Here, we implement a simple method to intercept system calls and Their parameter values. In this way, you do not need to change the existing data structure and algorithms of the kernel. After all the modifications and changes to the program process, they can continue to run stably without changing the source code or re-compiling the kernel.

Here we also provide a complete code that can detect and prevent buffer overflow attacks. This code can be used as the kernel source code patch for a Linux operating system.

   I. Introduction

It is now recognized that there is no absolute method or absolutely secure system in the world to prevent hacker intrusion: software without vulnerabilities is a dream for us. Even popular programs or operating systems contain vulnerabilities that can be exploited by intruders.

Many software packages interact with components of other operating systems (function libraries or kernels. For this reason, intrusion detection and how to handle intrusions have been extensively discussed and researched in the computer industry. Many existing intrusion detection technologies are based on some analysis of audit and log files. The main idea is to search the entire system file and reference list to find malformed and unexpected system configuration changes. (For example, the user ID of a new user is 0 ). Another method is to periodically execute a program to compare the attributes of system files with the reference list. These processes are mainly used to deal with Trojan Trojans. Such a program seems to be not very dangerous to the system, but can give intruders the permissions needed to control the entire system.

The advantage of this program is that you do not need to enter the kernel part. For example, they do not need to modify system commands. However, they cannot immediately prevent intrusions, because in most cases, these results are generated after intruders attack. All the destructive attacks against the system are implemented through some sensitive system calls. Therefore, real-time intrusion detection can protect your system from being damaged by attackers by monitoring every system call.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.