|
|||||||||||
|
Re: ping22: can not kill this process
From: Mike Wang <comritesecurity(at)gmail.com>
Date: Sun Dec 30 2007 - 16:45:17 EST
Sorry I forget to reply-all. thanks a lot for the detailed information. chkrootkit/rkhunter seems ok, only three of them not ok:
shopping:/proc# chkrootkit
the ping22 came after I reboot the machine, enabled SELinux. I only enable apache.pp mysql.pp, my locale.pp at this time. shopping:/proc# semodule -l
apache 1.4.0
local 1.0
mysql 1.3.0
my locale.te may not be good, I rushed to enable SELinux only at
yesterday. I guess with a good SELinux rules it should be able to constrain
the ping22 even to run.
allow fsadm_t self:process execmem;
allow httpd_t dict_port_t:tcp_socket name_connect;
allow httpd_t http_cache_port_t:tcp_socket name_connect;
allow httpd_t http_port_t:tcp_socket name_connect;
allow httpd_t httpd_sys_content_t:file { setattr write };
allow httpd_t httpd_sys_script_exec_t:dir { getattr read search };
allow httpd_t httpd_sys_script_exec_t:file { execute execute_no_trans
getattr ioctl read };
allow httpd_t self:process { execmem execstack };
allow httpd_t lib_t:file execute_no_trans;
allow httpd_t man_t:dir { getattr search };
allow httpd_t man_t:file { getattr lock read };
allow httpd_t man_t:lnk_file read;
allow httpd_t port_t:tcp_socket { name_bind name_connect };
allow httpd_t proc_net_t:dir search;
allow httpd_t proc_net_t:file { getattr read };
allow httpd_t shell_exec_t:file { execute execute_no_trans getattr read };
allow httpd_t smtp_port_t:tcp_socket name_connect;
allow httpd_t unlabeled_t:dir { getattr search };
allow httpd_t unlabeled_t:file { getattr read };
allow httpd_t var_lib_t:dir setattr;
allow httpd_t var_log_t:file { append getattr };
allow httpd_t var_spool_t:dir { add_name remove_name write };
allow httpd_t var_spool_t:file { append create getattr lock read rename
setattr unlink write };
allow httpd_t var_t:dir read; allow httpd_t var_t:file { getattr read }; allow hwclock_t tmpfs_t:dir search; allow iptables_t self:process { execmem execstack }; allow iptables_t var_lib_t:dir search; allow mount_t initrc_var_run_t:dir { getattr mounton };
allow mysqld_t default_t:dir { add_name getattr read search write };
allow mysqld_t default_t:file { create getattr read write };
allow mysqld_t httpd_sys_script_exec_t:dir { getattr search };
allow syslogd_t device_t:fifo_file { ioctl read write };
allow syslogd_t self:process { execmem execstack };
allow syslogd_t var_lib_t:dir search;
68.87.64.146 is not my ip. since I killed that ping22, I can not do the coredump at this time. I remembered I check the proc/<PID>/fd, there is nothing ping22, and also did lsof, could not find ping22. For now I will keep the SELinux locale.t as it is, hope ping22 will exploit my machine again, then I will try to get something as you suggested, and keep it posted on the mailing list. regards. Mike On Dec 30, 2007 3:54 PM, Török Edwin <edwintorok@gmail.com> wrote: > Mike Wang wrote: -- To UNSUBSCRIBE, email to debian-security-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.orgReceived on Sun Dec 30 16:46:13 2007 This archive was generated by hypermail 2.1.8 : Wed Mar 19 2008 - 06:54:47 EDT |
||||||||||
|
|||||||||||