OVH Community, your new community space.

Please inspect this machine, because it may be infected. Scan log ...


lovendo
13/06/2013, 11:38
Buenas, ha pasado un tiempo, he intentado seguir por mi cuenta pero vamos, mejor vuelvo al foro que no la quiero liar.

Ya he hecho varios yum update pero httpd no se me actualiza. Podría forzar a que se use algún repo distinto al de ovh? O quizás precisamente por seguridad es mejor dejarlo así?

Como veis ando un poco (bastante) perdido con esto de las versiones de OVH, sus releases, etc. Yo en mi dedicado elegí una distro CentOS + Plesk lista para su uso, y ahora no sé si hice bien

davidlig
10/04/2013, 10:11
Es lo que te dice bz2.

Mira si hay versión nueva del Apache en tu distribución.
Código:
[01:02:19] Checking version of Apache [ Warning ]
[01:02:19] Warning: Application 'httpd', version '2.2.15', is out of date, and possibly a security risk.

Un saludo.

bz2
10/04/2013, 08:34
Cita Publicado inicialmente por lovendo
el correo me ha llegado desde watchdog@nsXXXXXX.net. Entonces no tengo que preocuparme? Porque lo de

[01:02:18] Checking /dev for suspicious file types [ Warning ]
[01:02:19] Checking for hidden files and directories [ Warning ]

no me deja muy tranquilo
Si nsXXXX es tu servidor, es que tienes rkhunter instalado en él y te avisa de las cosas "raras" que vea.

Mira el log completo y verás que no hay nada raro, en /dev por ejemplo se queja de que hay un archivo /dev/md/autorebuild.pid que es ASCII.

lovendo
09/04/2013, 19:06
el correo me ha llegado desde watchdog@nsXXXXXX.net. Entonces no tengo que preocuparme? Porque lo de

[01:02:18] Checking /dev for suspicious file types [ Warning ]
[01:02:19] Checking for hidden files and directories [ Warning ]

no me deja muy tranquilo

bz2
09/04/2013, 18:39
¿De dónde has recibido el correo?

Tiene pinta de ser simplemente un aviso de rkhunter de tu servidor (no de OVH), y mirándolo parece que se queja de que alguna no es la más actualizada, pero todo parece que está con normalidad.

lovendo
09/04/2013, 18:17
Llevaba unos días sin poder entrar al mail y PAM sorpresa joder

Esto es el aviso anti-hack que se comenta por ahí??? Lo recorto un poco que es larguísimo

-------Please inspect this machine, because it may be infected. Scan log:
[01:01:31] Running Rootkit Hunter version 1.3.4 on ns313233
[01:01:31]
[01:01:31] Info: Start date is lun abr 8 01:01:31 CEST 2013
[01:01:31]
[01:01:31] Checking configuration file and command-line options...
[01:01:31] Info: Detected operating system is 'Linux'
[01:01:31] Info: Found O/S name: CentOS release 6.4 (Final)
[01:01:31] Info: Command line is /usr/local/psa/admin/sbin/modules//watchdog/rkhunter -c --configfile /usr/local/psa/etc/modules/watchdog/rkhunter.conf --cronjob --propupd --createlogfile
[01:01:31] Info: Environment shell is /bin/sh; rkhunter is using bash
[01:01:31] Info: Using configuration file '/usr/local/psa/etc/modules/watchdog/rkhunter.conf'
[01:01:31] Info: Installation directory is '/usr/local/psa'
[01:01:31] Info: Using language 'en'
[01:01:31] Info: Using '/usr/local/psa/var/modules/watchdog/lib/rkhunter/lib/rkhunter/db' as the database directory
[01:01:31] Info: Using '/usr/local/psa/var/modules/watchdog/lib/rkhunter/rkhunter/scripts' as the support script directory
[01:01:31] Info: Using '/usr/local/psa/admin/bin/modules/watchdog /usr/local/bin /usr/local/sbin /bin /sbin /usr/bin /usr/sbin /bin /usr/bin /sbin /usr/sbin /usr/local/bin /usr/local/sbin /usr/libexec /usr/local/libexec' as the command directories
[01:01:31] Info: Using '/' as the root directory by default
[01:01:31] Info: Using '/usr/local/psa/var/modules/watchdog/lib/rkhunter/lib/rkhunter/tmp' as the temporary directory
[01:01:31] Info: Emailing warnings to 'lovendo@todo.xxx' using command '/usr/local/psa/admin/bin/modules/watchdog/send-mail'
[01:01:31] Info: X will be automatically detected
[01:01:31] Info: Found the 'diff' command: /usr/bin/diff
[01:01:31] Info: Found the 'file' command: /usr/bin/file
[01:01:31] Info: Found the 'find' command: /bin/find
[01:01:31] Info: Found the 'ifconfig' command: /sbin/ifconfig
[01:01:31] Info: Found the 'ip' command: /sbin/ip
[01:01:31] Info: Found the 'ldd' command: /usr/bin/ldd
[01:01:31] Info: Found the 'lsattr' command: /usr/bin/lsattr
[01:01:31] Info: Found the 'lsmod' command: /sbin/lsmod
[01:01:31] Info: Found the 'lsof' command: /usr/sbin/lsof
[01:01:31] Info: Found the 'mktemp' command: /bin/mktemp
[01:01:31] Info: Found the 'netstat' command: /bin/netstat
[01:01:31] Info: Found the 'perl' command: /usr/bin/perl
[01:01:31] Info: Found the 'ps' command: /bin/ps
[01:01:31] Info: Found the 'pwd' command: /bin/pwd
[01:01:31] Info: Found the 'readlink' command: /bin/readlink
[01:01:31] Info: Found the 'sort' command: /bin/sort
[01:01:31] Info: Found the 'stat' command: /usr/bin/stat
[01:01:31] Info: Found the 'strings' command: /usr/bin/strings
[01:01:31] Info: Found the 'uniq' command: /usr/bin/uniq
[01:01:31] Info: System is not using prelinking
[01:01:32] Info: Using the '/usr/bin/sha1sum' command for the file hash checks
[01:01:32] Info: Stored hash values used hash function '/usr/bin/sha1sum'
[01:01:32] Info: Stored hash values used package manager 'RPM' (md5 function)
[01:01:32] Info: The hash function field index is set to 1
[01:01:32] Info: Using package manager 'RPM' to update the file hash values
[01:01:32] Info: Found the 'rpm' command: /bin/rpm
[01:01:32] Info: Using package manager 'RPM' for file property checks
[01:01:32] Info: Found the 'rpm' command: /bin/rpm
[01:01:32] Info: Previous file attributes were stored
[01:01:32] Info: Current file attributes will be stored
[01:01:32] Info: Enabled tests are: all
[01:01:32] Info: Disabled tests are: suspscan hidden_procs deleted_files packet_cap_apps
[01:01:32] Info: Found ksym file '/proc/kallsyms'
[01:01:32]
[01:01:32] Checking if the O/S has changed since last time...
[01:01:32] Info: Nothing seems to have changed
[01:01:32]
[01:01:32] Info: Starting file properties data update...
[01:01:32] Info: Created temporary file '/usr/local/psa/var/modules/watchdog/lib/rkhunter/lib/rkhunter/tmp/rkhunter.dat.YtYrCNuRHm'
[01:01:32] Collecting O/S info...
[01:01:32] Info: Found system architecture: i686
[01:01:32] Info: Found release file: /etc/centos-release
[01:01:32] Info: Found O/S name: CentOS release 6.4 (Final)
[01:01:32] Getting file properties...
[01:01:34] Info: Found 41 files in /bin
[01:01:37] Info: Found 55 files in /usr/bin
[01:01:38] Info: Found 18 files in /sbin
[01:01:38] Info: Found 15 files in /usr/sbin
[01:01:38] Info: Found 0 files in /usr/local/bin
[01:01:38] Info: Found 0 files in /usr/local/sbin
[01:01:38] Info: Found 0 files in /usr/libexec
[01:01:38] Info: Found 0 files in /usr/local/libexec
[01:01:38] Info: File updated: searched for 151 files, found 129
[01:01:39] Info: New rkhunter.dat file installed in '/usr/local/psa/var/modules/watchdog/lib/rkhunter/lib/rkhunter/db'
[01:01:39]
[01:01:39] Starting system checks...
[01:01:39]
[01:01:39] Checking system commands...
[01:01:39] Info: Starting test name 'system_commands'
[01:01:39]
[01:01:39] Performing 'strings' command checks
[01:01:39] Info: Starting test name 'strings'
[01:01:39] Scanning for string /usr/sbin/ntpsx [ OK ]
[01:01:39] Scanning for string /usr/lib/.../ls [ OK ]
MUCHOS OKs ...
[01:01:40] Scanning for string /usr/man/man1/man1/lib/.lib [ OK ]
[01:01:40] Scanning for string /usr/man/man1/man1/lib/.lib/.backup [ OK ]
[01:01:40]
[01:01:40] Performing 'shared libraries' checks
[01:01:40] Info: Starting test name 'shared_libs'
[01:01:40] Checking for preloading variables [ None found ]
[01:01:40] Checking for preload file [ Not found ]
[01:01:40] Info: Starting test name 'shared_libs_path'
[01:01:40] Checking LD_LIBRARY_PATH variable [ Not found ]
[01:01:40]
[01:01:40] Performing file properties checks
[01:01:40] Info: Starting test name 'properties'
[01:01:40] Checking for prerequisites [ OK ]
[01:01:40] /bin/awk [ OK ]
[01:01:41] /bin/basename [ OK ]
MUCHOS OKs ...
[01:01:52] /usr/bin/lsattr [ OK ]
[01:01:52] /usr/bin/md5sum [ OK ]
[01:01:52] /usr/bin/newgrp [ OK ]
[01:01:53] /usr/bin/passwd [ OK ]
[01:01:53] Info: Found file '/usr/bin/passwd': it is whitelisted for the 'file immutable-bit' check.
[01:01:54] /usr/bin/perl [ OK ]
[01:01:54] /usr/bin/pstree [ OK ]
[01:01:54] /usr/bin/readlink [ OK ]
MUCHOS OKs ...
[01:01:58] /sbin/ifconfig [ OK ]
[01:01:58] /sbin/ifdown [ OK ]
[01:01:59] /sbin/ifup [ OK ]
[01:01:59] /sbin/init [ OK ]
[01:01:59] Info: Found file '/sbin/init': it is whitelisted for the 'file immutable-bit' check.
[01:01:59] /sbin/insmod [ OK ]
[01:01:59] /sbin/ip [ OK ]
[01:01:59] /sbin/lsmod [ OK ]
[01:01:59] /sbin/modinfo [ OK ]
MUCHOS OKs ...
[01:02:05] /usr/sbin/usermod [ OK ]
[01:02:05] /usr/sbin/vipw [ OK ]
[01:02:05] /usr/sbin/xinetd [ OK ]
[01:02:07]
[01:02:07] Checking for rootkits...
[01:02:07] Info: Starting test name 'rootkits'
[01:02:07]
[01:02:07] Performing check of known rootkit files and directories
[01:02:07] Info: Starting test name 'known_rkts'
[01:02:07]
NINGUNO ENCONTRADO
[01:02:14]
[01:02:14] Performing additional rootkit checks
[01:02:14] Info: Starting test name 'additional_rkts'
[01:02:14]
[01:02:14] Performing Suckit Rookit additional checks
[01:02:14] Checking hard link count on '/sbin/init' [ OK ]
[01:02:14] Checking for hidden file extensions [ None found ]
[01:02:14] Running skdet command [ Skipped ]
[01:02:14] Info: Unable to find the 'skdet' command
[01:02:14] Suckit Rookit additional checks [ OK ]
[01:02:14]
[01:02:14] Performing check of possible rootkit files and directories
[01:02:14] Info: Starting test name 'possible_rkt_files'
NINGUNO ENCONTRADO
[01:02:15]
[01:02:15] Performing check for possible rootkit strings
[01:02:15] Info: Starting test name 'possible_rkt_strings'
NINGUNO ENCONTRADO
[01:02:16]
[01:02:16] Performing malware checks
[01:02:16] Info: Starting test name 'malware'
[01:02:16]
[01:02:16] Info: Test 'deleted_files' disabled at users request.
[01:02:16] Info: Starting test name 'running_procs'
[01:02:16] Checking running processes for suspicious files [ None found ]
[01:02:16]
[01:02:16] Info: Test 'hidden_procs' disabled at users request.
[01:02:16]
[01:02:16] Info: Test 'suspscan' disabled at users request.
[01:02:16]
[01:02:16] Performing check for login backdoors
[01:02:16] Info: Starting test name 'other_malware'
[01:02:16] Checking for '/bin/.login' [ Not found ]
[01:02:16] Checking for '/sbin/.login' [ Not found ]
[01:02:16] Checking for login backdoors [ None found ]
[01:02:16]
[01:02:16] Performing check for suspicious directories
[01:02:16] Checking for directory '/usr/X11R6/bin/.,/copy' [ Not found ]
[01:02:16] Checking for directory '/dev/rd/cdb' [ Not found ]
[01:02:16] Checking for suspicious directories [ None found ]
[01:02:16]
[01:02:16] Checking for software intrusions [ Skipped ]
[01:02:16] Info: Check skipped - tripwire not installed
[01:02:16]
[01:02:16] Performing check for sniffer log files
[01:02:16] Checking for file '/usr/lib/libice.log' [ Not found ]
[01:02:16] Checking for sniffer log files [ None found ]
[01:02:16]
[01:02:16] Performing trojan specific checks
[01:02:16] Info: Starting test name 'trojans'
[01:02:16] Checking for enabled inetd services [ Skipped ]
[01:02:16] Info: Check skipped - file '/etc/inetd.conf' does not exist.
[01:02:16]
[01:02:16] Performing check for enabled xinetd services
[01:02:16] Info: Using xinetd configuration file '/etc/xinetd.conf'
[01:02:16] Checking '/etc/xinetd.conf' for enabled services [ None found ]
[01:02:16] Found 'includedir /etc/xinetd.d' directive
[01:02:16] Checking '/etc/xinetd.d/chargen-dgram' for enabled services [ None found ]
[01:02:16] Checking '/etc/xinetd.d/chargen-stream' for enabled services [ None found ]
[01:02:16] Checking '/etc/xinetd.d/daytime-dgram' for enabled services [ None found ]
[01:02:16] Checking '/etc/xinetd.d/daytime-stream' for enabled services [ None found ]
[01:02:16] Checking '/etc/xinetd.d/discard-dgram' for enabled services [ None found ]
[01:02:16] Checking '/etc/xinetd.d/discard-stream' for enabled services [ None found ]
[01:02:16] Checking '/etc/xinetd.d/echo-dgram' for enabled services [ None found ]
[01:02:16] Checking '/etc/xinetd.d/echo-stream' for enabled services [ None found ]
[01:02:16] Checking '/etc/xinetd.d/ftp_psa' for enabled services [ Warning ]
[01:02:16] Checking '/etc/xinetd.d/poppassd_psa' for enabled services [ Warning ]
[01:02:17] Checking '/etc/xinetd.d/rsync' for enabled services [ None found ]
[01:02:17] Checking '/etc/xinetd.d/smtp_psa' for enabled services [ Warning ]
[01:02:17] Checking '/etc/xinetd.d/smtps_psa' for enabled services [ Warning ]
[01:02:17] Checking '/etc/xinetd.d/tcpmux-server' for enabled services [ None found ]
[01:02:17] Checking '/etc/xinetd.d/time-dgram' for enabled services [ None found ]
[01:02:17] Checking '/etc/xinetd.d/time-stream' for enabled services [ None found ]
[01:02:17] Checking for enabled xinetd services [ Warning ]
[01:02:17] Warning: Found enabled xinetd service: /etc/xinetd.d/ftp_psa
[01:02:17] Warning: Found enabled xinetd service: /etc/xinetd.d/poppassd_psa
[01:02:17] Warning: Found enabled xinetd service: /etc/xinetd.d/smtp_psa
[01:02:17] Warning: Found enabled xinetd service: /etc/xinetd.d/smtps_psa
[01:02:17] Checking for Apache backdoor [ Not found ]
[01:02:17]
[01:02:17] Performing Linux specific checks
[01:02:17] Info: Starting test name 'os_specific'
[01:02:17] Checking loaded kernel modules [ Warning ]
[01:02:17] Warning: The modules file '/proc/modules' is missing.
[01:02:17] Info: Using modules pathname of '/lib/modules'
[01:02:17] Checking kernel module names [ Skipped ]
[01:02:17] Warning: The kernel modules directory '/lib/modules' is missing or empty.
[01:02:17]
[01:02:17] Checking the network...
[01:02:17] Info: Starting test name 'network'
[01:02:17] Info: Starting test name 'ports'
[01:02:17]
[01:02:17] Performing check for backdoor ports
NINGUNO ENCONTRADO
[01:02:18]
[01:02:18] Performing checks on the network interfaces
[01:02:18] Info: Starting test name 'promisc'
[01:02:18] Checking for promiscuous interfaces [ None found ]
[01:02:18]
[01:02:18] Info: Test 'packet_cap_apps' disabled at users request.
[01:02:18]
[01:02:18] Checking the local host...
[01:02:18] Info: Starting test name 'local_host'
[01:02:18]
[01:02:18] Performing system boot checks
[01:02:18] Info: Starting test name 'startup_files'
[01:02:18] Checking for local host name [ Found ]
[01:02:18] Info: Starting test name 'startup_malware'
[01:02:18] Checking for system startup files [ Found ]
[01:02:18] Checking system startup files for malware [ None found ]
[01:02:18]
[01:02:18] Performing group and account checks
[01:02:18] Info: Starting test name 'group_accounts'
[01:02:18] Checking for passwd file [ Found ]
[01:02:18] Info: Found password file: /etc/passwd
[01:02:18] Checking for root equivalent (UID 0) accounts [ None found ]
[01:02:18] Info: Found shadow file: /etc/shadow
[01:02:18] Checking for passwordless accounts [ None found ]
[01:02:18] Info: Starting test name 'passwd_changes'
[01:02:18] Checking for passwd file changes [ Warning ]
[01:02:18] Warning: Users have been removed from the passwd file:
[01:02:18] pepetoni:x:10000:505::/var/www/vhosts/pepetoni.es:/bin/false
ESTO LO HICE YO A TRAVÉS DEL PLESK
[01:02:18] Info: Starting test name 'group_changes'
[01:02:18] Checking for group file changes [ None found ]
[01:02:18] Checking root account shell history files [ OK ]
[01:02:18]
[01:02:18] Performing system configuration file checks
[01:02:18] Info: Starting test name 'system_configs'
[01:02:18] Checking for SSH configuration file [ Found ]
[01:02:18] Info: Found SSH configuration file: /etc/ssh/sshd_config
[01:02:18] Info: Rkhunter option ALLOW_SSH_ROOT_USER set to 'unset'.
[01:02:18] Info: Rkhunter option ALLOW_SSH_PROT_V1 set to '2'.
[01:02:18] Checking if SSH root access is allowed [ Not set ]
[01:02:18] Checking if SSH protocol v1 is allowed [ Not allowed ]
[01:02:18] Checking for running syslog daemon [ Found ]
[01:02:18] Checking for syslog configuration file [ Found ]
[01:02:18] Info: Found syslog configuration file: /etc/rsyslog.conf
[01:02:18] Checking if syslog remote logging is allowed [ Not allowed ]
[01:02:18]
[01:02:18] Performing filesystem checks
[01:02:18] Info: Starting test name 'filesystem'
[01:02:18] Info: SCAN_MODE_DEV set to 'THOROUGH'
[01:02:18] Checking /dev for suspicious file types [ Warning ]
[01:02:18] Warning: Suspicious file types found in /dev:
[01:02:18] /dev/md/autorebuild.pid: ASCII text
[01:02:18] /dev/md/md-device-map: ASCII text
[01:02:19] Checking for hidden files and directories [ Warning ]
[01:02:19] Warning: Hidden directory found: /dev/.udev
[01:02:19] Warning: Hidden file found: /usr/share/man/man1/..1.gz: gzip compressed data, from Unix, max compression
[01:02:19] Warning: Hidden file found: /usr/share/man/man5/.k5login.5.gz: gzip compressed data, from Unix, max compression
[01:02:19] Warning: Hidden file found: /usr/share/man/man5/.k5identity.5.gz: gzip compressed data, from Unix, max compression
[01:02:19] Warning: Hidden file found: /usr/bin/.fipscheck.hmac: ASCII text
[01:02:19] Warning: Hidden file found: /usr/bin/.ssh.hmac: ASCII text
[01:02:19] Warning: Hidden file found: /usr/sbin/.sshd.hmac: ASCII text
[01:02:19]
[01:02:19] Checking application versions...
[01:02:19] Info: Starting test name 'apps'
[01:02:19] Info: Application 'exim' not found.
[01:02:19] Checking version of GnuPG [ OK ]
[01:02:19] Info: Application 'gpg' version '2.0.14' found.
[01:02:19] Checking version of Apache [ Warning ]
[01:02:19] Warning: Application 'httpd', version '2.2.15', is out of date, and possibly a security risk.
[01:02:19] Checking version of Bind DNS [ OK ]
[01:02:19] Info: Application 'named' version '9.8.2rc1' found.
[01:02:19] Checking version of OpenSSL [ OK ]
[01:02:19] Info: Application 'openssl' version '1.0.0-fips' found.
[01:02:19] Checking version of PHP [ OK ]
[01:02:19] Info: Application 'php' version '5.3.3' found.
[01:02:19] Checking version of Procmail MTA [ OK ]
[01:02:19] Info: Application 'procmail' version '3.22' found.
[01:02:19] Checking version of ProFTPd [ Skipped ]
[01:02:19] Info: Unable to obtain version number for 'proftpd': version option gives: ProFTPD Version 1.3.4a
[01:02:19] Checking version of OpenSSH [ OK ]
[01:02:19] Info: Application 'sshd' version '5.3p1' found.
[01:02:19] Info: Applications checked: 8 out of 9
[01:02:19]
[01:02:19] System checks summary
[01:02:19] =====================
[01:02:19]
[01:02:19] File properties checks...
[01:02:19] Files checked: 129
[01:02:19] Suspect files: 0
[01:02:19]
[01:02:19] Rootkit checks...
[01:02:19] Rootkits checked : 112
[01:02:19] Possible rootkits: 0
[01:02:19]
[01:02:19] Applications checks...
[01:02:19] Applications checked: 8
[01:02:19] Suspect applications: 1
[01:02:19]
[01:02:19] The system checks took: 40 seconds