The invention discloses a Linux process layered monitoring method and
system based on a dynamic decision engine, and belongs to the technical field of
operating system security monitoring. The method comprises the following steps: sensing a
system environment, and detecting the support capability of the
system to a monitoring technology; capturing a process creation event through a lightweight trigger, extracting a
process identifier, predicting survival time and a security risk
score feature; dynamically selecting an optimal monitoring channel for the process by a dynamic decision engine according to the characteristics and the system load: distributing a short-life-cycle or low-risk process to a high-performance eBPF channel, distributing a high-risk or key process to an auditd channel with complete functions, and automatically degrading to an inotify-based standby channel when the eBPF is unavailable; and uniformly
processing and outputting the heterogeneous
monitoring data. According to the method, static configuration is replaced by
intelligent decision, and the problem that an existing monitoring scheme cannot consider high performance,
low overhead, completeness and environment universality at the same time is solved.