If the Linux system is compromised, then personal privacy data is likely to leak, and the system is at risk. So how is the system only compromised? Regular inspections are necessary. The following small series will tell you how to check if Linux is compromised.
1. Check account
code is as follows:
# less /etc /passwd "/p" "p" # grep: 0: /etc /passwd (Check if a new user has been created, and the user with UID and GID is 0) "/p" "p"# ls -l /etc/passwd (check the file modification date) "/p" "p"# awk -F: ‘$3= =0 {print $1}& rsquo; /etc/passwd (check for privileged users) "/p" "p"# awk -F: ‘length($2)= =0 {print $1}’ /etc/shadow(Check if there is a blank password account)
2. Check the log
The code is as follows:
#last
(Check under normal circumstances) History of all users logged in to this machine)
Note”entered promiscuous mode”
Note Error Messages
Note Remote Procedure Call (rpc) programs with a log Entry that includes a large number (》 20) strange characters(-^PM-^PM-^PM-^PM-^PM-^PM-^PM-^PM)
3. Check process
>
The code is as follows:
# Ps -aux (note that UID is 0) "/p" "p"# lsof -p pid (see the port and file opened by the process) "/p" "p"# cat /etc/inetd.conf
When CentOS started up, it suddenly showed a GRUB boot error, which caused the system to fail to ent
No computer system is absolutely secure. If there is no system security awareness, it is easy to be
The chkconfig command under Linux is mainly used to query the system services execu
Most Linux systems come with on-screen protection, while a few systems dont. For ex
Linux use pass to manage passwords
How to set up the program to boot from Debian
How to modify the default timeout time of sudo in Ubuntu system?
What can I do if RedHat Linux 5 cannot use ifconfig?
What is the Linux Find File command?
CentOS system installation using Subversion method
How Linux mounts iso yum source in virtual machine
Linux how to use cp command guide
The specific usage of the tee command in Linux system
Linux scp command usage example summary
Ubuntu System Installation Tutorial How to Install Ubuntu System
Linux uses shell scripts to monitor the integrity of rsync file transfers
How to install input method in Win10? Windows10 system installation Sogou input method tutorial
Disable win7 system USB selective pause setting graphic tutorial
Developers look down on Windows8.1
Win10 official version of the Build 10240 multi-language package download (including 111 kinds)
Win10 boot sound is gone? Win10 boot sound setting method
IIS optimization - use eAccelerator to accelerate PHP
Win 7 system screen saver setting method
Win10 can't summon Xiaobing to open, what should I do?
Win10 cancels the wake-up sleep function requires a password method
Windows system desktop rotated 90 degrees or 180 degrees how to fix