store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Tue Jun 18, 2013 2:57 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 10 posts ] 
Author Message
 Post subject: rkhunter warnings on fresh ASL install Centos 6.2
Unread postPosted: Mon Feb 13, 2012 11:05 am 
Offline
New Forum User
New Forum User

Joined: Tue Nov 15, 2011 10:57 am
Posts: 3
Location: Columbus, OH
Ever since I installed asl on Centos 6.2, rkhunter has been sending me warning messages. I finally got around to digging through the logs, and one of the things that it's warning about is a "hidden" port:


[09:54:10] Checking for hidden ports [ Warning ]
[09:54:11] Warning: Hidden ports found:
[09:54:11] Port number: 631

I've googled, and run this:
netstat -anp |grep 631
udp 0 0 0.0.0.0:631 0.0.0.0:* 1063/portreserve

Someone wrote that in Centos when you disable cups, it still does a portreserve. I'm not sure what that is - but is there a way to tell rkhunter to ignore that (if it's a false positive)?

Second warning pertains to a hidden file:
[09:54:23] Checking for hidden files and directories [ Warning ]
[09:54:23] Warning: Hidden file found: /sbin/.cryptsetup.hmac: ASCII text

Again, should I do a custom ignore for this? I just wanted to mention it since this was a fresh installation and maybe the Atomic team wants to build in suppression if these are false positives. Thanks in advance.


Top
 Profile  
 
 Post subject: Re: rkhunter warnings on fresh ASL install Centos 6.2
Unread postPosted: Mon Feb 13, 2012 12:48 pm 
Offline
Forum Regular
Forum Regular

Joined: Wed Jan 02, 2008 3:21 pm
Posts: 515
Location: United Kingdom
Seeing a very similar issue, also running CentOS 6:
Code:
---------------------- Start Rootkit Hunter Scan ----------------------
Warning: Hidden ports found:
        Port number: 783
----------------------- End Rootkit Hunter Scan -----------------------

Code:
netstat -anp |grep 783
udp        0      0 0.0.0.0:783                 0.0.0.0:*                               1449/portreserve

After Googling port 783, turns out it is sometimes used by the spamd daemon or hp-alarm-mgr and harmless.

Had similar issue with hidden file, added it to the rkhunter files whitelist after checking it was harmless/FP.


Top
 Profile  
 
 Post subject: Re: rkhunter warnings on fresh ASL install Centos 6.2
Unread postPosted: Mon Feb 13, 2012 4:51 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
User avatar

Joined: Thu Feb 07, 2008 7:49 pm
Posts: 3263
Location: Chantilly, VA
Its actually not a false positive, portreserve is actually hiding the port. And the mechanisms rkhunter has to "detect" that this is legitimate are limited. If you allow this currently then you open the possibility of a piece of malware calling itself "portreserve" to hide ports (and to do so without any warning to the user).

With that said, unless you are using portmap (and unless you are using NFS or some other RPC services then you probably are not), you don't need portreserve. Disable the service (and portmap).

chkconfig portreserve off

chkconfig portmap off

_________________
Michael Shinn
Atomicorp - Security For Everyone

Co-Author of Troubleshooting Linux Firewalls.


Top
 Profile  
 
 Post subject: Re: rkhunter warnings on fresh ASL install Centos 6.2
Unread postPosted: Mon Feb 13, 2012 5:27 pm 
Offline
Forum Regular
Forum Regular

Joined: Wed Jan 02, 2008 3:21 pm
Posts: 515
Location: United Kingdom
Thanks for input Mike, really useful.
I should have been clearer, that port is blocked in/out via iptables. Edit: service portreserve stop + chkconfig portreserve off does the job even better.
Whitelisting only applied to .cryptsetup.hmac


Top
 Profile  
 
 Post subject: Re: rkhunter warnings on fresh ASL install Centos 6.2
Unread postPosted: Mon Feb 13, 2012 5:54 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
User avatar

Joined: Thu Feb 07, 2008 7:49 pm
Posts: 3263
Location: Chantilly, VA
Quote:
Whitelisting only applied to .cryptsetup.hmac


Ah, my mistake for missing that. Sure we can add that in.

_________________
Michael Shinn
Atomicorp - Security For Everyone

Co-Author of Troubleshooting Linux Firewalls.


Top
 Profile  
 
 Post subject: Re: rkhunter warnings on fresh ASL install Centos 6.2
Unread postPosted: Sun Jun 24, 2012 2:57 pm 
Offline
Forum Regular
Forum Regular

Joined: Tue Jun 09, 2009 12:57 pm
Posts: 134
mikeshinn wrote:
Quote:
Whitelisting only applied to .cryptsetup.hmac


Ah, my mistake for missing that. Sure we can add that in.


I also see this warning, so +1 for getting it added in.

Thanks

_________________
CentOS 6.3 (2.6.32.60-40.art.x86_64)
ASL 3.2.13-30.el6.art
Webmin 1.6.2
Virtualmin 3.99.gpl
Apache 2.2.15
PHP 5.3.3 (mod_fcgid/2.3.7)


Top
 Profile  
 
 Post subject: Re: rkhunter warnings on fresh ASL install Centos 6.2
Unread postPosted: Mon Jun 25, 2012 6:30 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
User avatar

Joined: Thu Feb 07, 2008 7:49 pm
Posts: 3263
Location: Chantilly, VA
Done. Please upgrade rkhunter from the asl respository.

_________________
Michael Shinn
Atomicorp - Security For Everyone

Co-Author of Troubleshooting Linux Firewalls.


Top
 Profile  
 
 Post subject: Re: rkhunter warnings on fresh ASL install Centos 6.2
Unread postPosted: Tue Jun 26, 2012 1:38 pm 
Offline
Forum Regular
Forum Regular

Joined: Tue Jun 09, 2009 12:57 pm
Posts: 134
mikeshinn wrote:
Done. Please upgrade rkhunter from the asl respository.


I ran a yum update and got a 404 on https://www.atomicorp.com/channels/asl- ... x86_64.rpm, which yum says I should update.

_________________
CentOS 6.3 (2.6.32.60-40.art.x86_64)
ASL 3.2.13-30.el6.art
Webmin 1.6.2
Virtualmin 3.99.gpl
Apache 2.2.15
PHP 5.3.3 (mod_fcgid/2.3.7)


Top
 Profile  
 
 Post subject: Re: rkhunter warnings on fresh ASL install Centos 6.2
Unread postPosted: Tue Jun 26, 2012 1:47 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
User avatar

Joined: Thu Feb 07, 2008 7:49 pm
Posts: 3263
Location: Chantilly, VA
Clean your yum cache. Run this as root:

yum clean all

_________________
Michael Shinn
Atomicorp - Security For Everyone

Co-Author of Troubleshooting Linux Firewalls.


Top
 Profile  
 
 Post subject: Re: rkhunter warnings on fresh ASL install Centos 6.2
Unread postPosted: Wed Jun 27, 2012 10:44 am 
Offline
Forum Regular
Forum Regular

Joined: Tue Jun 09, 2009 12:57 pm
Posts: 134
mikeshinn wrote:
Clean your yum cache. Run this as root:

yum clean all


that worked, thanks

_________________
CentOS 6.3 (2.6.32.60-40.art.x86_64)
ASL 3.2.13-30.el6.art
Webmin 1.6.2
Virtualmin 3.99.gpl
Apache 2.2.15
PHP 5.3.3 (mod_fcgid/2.3.7)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 10 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group