Security scanning¶
Checking your own servers from the outside and the inside: open ports and services, hardening, rootkits and malware, changed system files and vulnerable container images.
Basics: Attack surface, what each tool finds, what to install, and the rules for scanning
From outside¶
Checking the hardening¶
-
Security audit with suggestions.
Intrusions and malware¶
-
Search for rootkits and backdoors.
-
Second opinion on rootkits.
-
Scan files for malware.
Integrity¶
Containers¶
-
Vulnerabilities in images.
From other chapters¶
-
ss -tlnpshows from inside which services listen on which port. Covered in the chapter Network. -
Test a single port by hand, without a full scan. Covered in the chapter Network.
-
See which packets really arrive during a scan. Covered in the chapter Network.
-
Close the ports that a scan shows but nobody needs. Covered in the chapter Network.
-
Block hosts that scan or try passwords. Covered in the chapter SSH.