NetBSD Problem Report #31813

From nocturne@ablative.andor.org  Fri Oct 14 15:04:40 2005
Return-Path: <nocturne@ablative.andor.org>
Received: from ablative.andor.org (ablative.andor.org [66.92.72.56])
	by narn.netbsd.org (Postfix) with ESMTP id DF52D63B850
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 14 Oct 2005 15:04:39 +0000 (UTC)
Message-Id: <200510141504.j9EF4cBN007845@ablative.andor.org>
Date: Fri, 14 Oct 2005 11:04:38 -0400 (EDT)
From: nocturne@mit.edu
Reply-To: nocturne@mit.edu
To: gnats-bugs@netbsd.org
Subject: pkgsrc chkrootkit reports login INFECTED
X-Send-Pr-Version: 3.95

>Number:         31813
>Category:       pkg
>Synopsis:       chkrootkit reports login INFECTED
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    adrianp
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 14 15:09:10 +0000 2005
>Closed-Date:    Wed Jul 11 20:23:08 +0000 2007
>Last-Modified:  Wed Jul 11 20:23:08 +0000 2007
>Originator:     Eric Mumpower
>Release:        NetBSD 2.0.2 / pkgsrc -current
>Organization:
MIT CSAIL
>Environment:


System: NetBSD ablative 2.0.2 NetBSD 2.0.2 (ABLATIVE) #7: Mon Jul 11 16:23:34 EDT 2005 root@new-ablative:/usr/src/sys/arch/i386/compile/ABLATIVE i386
Architecture: i386
Machine: i386

>Description:

The latest version of chkrootkit in pkgsrc reports that 'login' is
INFECTED on NetBSD 2.0.2. The sha1 signature of the binary in question:
  SHA1 (/usr/bin/login) = e77134fd6b8d8d133a4a5732795829ce3d74521f

I retreived ftp.netbsd.org:/pub/NetBSD/NetBSD-2.0.2/i386/binary/sets/base.tgz
onto an unrelated system and confirmed on that system: both that the
sha1 sum of the stock login binary matches mine, and that the
triggering string is present.

Rather than assume NetBSD is distributing infected binaries, I'm going
to assume chkrootkit is reporting a false positive, and report it
here. :-)

In particular, this command finds a match using either system:

  $ strings ./usr/bin/login | egrep -c "^root$"
  1

This test occurs in the following line of chkrootkit:chk_login():
  ret=`${strings} -a ${CMD} | ${egrep} -c "${GENERAL}"`

>How-To-Repeat:

Build and install chkrootkit package from latest pkgsrc, on NetBSD
2.0.2 system. Then:
  bash-2.05b# /usr/pkg/bin/chkrootkit -q
  Checking `login'... INFECTED

>Fix:

Assuming this is in fact not a problem, I would assume the chkrootkit
script should be patched to not perform that test on NetBSD.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->adrianp
Responsible-Changed-By: adrianp@netbsd.org
Responsible-Changed-When: Fri, 14 Oct 2005 15:12:27 +0000
Responsible-Changed-Why:
I'll grab this - I know this issue


From: Adrian Portelli <adrianp@NetBSD.org>
To: nocturne@mit.edu
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/31813: pkgsrc chkrootkit reports login INFECTED
Date: Fri, 14 Oct 2005 16:29:26 +0100

 nocturne@mit.edu wrote:
 >> Number:         31813
 >> Category:       pkg
 >> Synopsis:       chkrootkit reports login INFECTED

 Hi,

 I'm pretty sure this is a known issue and it's come up before on 
 netbsd-users@ if I'm not mistaken.  I did take this up with the author 
 and sent across all the info he wanted but I never saw a patch or an 
 update.  I'll chase this up again or we may resort to just patching it 
 for NetBSD and push the patch upstream.

 thanks,

 adrian.

From: Adrian Portelli <adrianp@NetBSD.org>
To: nocturne@mit.edu
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/31813
Date: Tue, 01 Nov 2005 16:28:12 +0000

 Hi,

 I've sent off an email to the maintainers of the package with all the 
 debug output and your findings in the PR using the latest version of 
 chkrootkit (0.46a).

 regards,

 adrian.

From: Adrian Portelli <adrianp@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/31813 CVS commit: pkgsrc/security/chkrootkit
Date: Mon,  2 Jan 2006 18:42:18 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	adrianp
 Date:		Mon Jan  2 18:42:18 UTC 2006

 Modified Files:
 	pkgsrc/security/chkrootkit: Makefile distinfo
 Added Files:
 	pkgsrc/security/chkrootkit: MESSAGE
 Removed Files:
 	pkgsrc/security/chkrootkit/patches: patch-ac

 Log Message:
 Update chkrootkit to 0.46a
 Add a MESSAGE about false-positive results on non-supported platforms
 Helps to address PR# 31813 reported by Eric Mumpower
 From the README:
 02/22/2005 - Version 0.45  chkproc.c: better support for Linux
                            threads.  New rootkit detected: Fu,
                            Kenga3, ESRK.  New test: chkutmp.  -n
                            option improvement.  Minor bug fixes.
 10/26/2005 - Version 0.46  chkproc.c: more fixes to better support
                            Linux threads. chkutmp.c: improved
                            execution speed.  chkwtmp.c: segfault
                            fixed.  New rootkit detected: rootedoor.
                            Mac OS X support added.  Minor bug fixes.
 10/28/2005 - Version 0.46a chkproc.c: bug fix for FreeBSD: chkproc
                            was sending a SIGXFSZ (kill -25) to init,
 			   causing a reboot.


 To generate a diff of this commit:
 cvs rdiff -r0 -r1.1 pkgsrc/security/chkrootkit/MESSAGE
 cvs rdiff -r1.9 -r1.10 pkgsrc/security/chkrootkit/Makefile
 cvs rdiff -r1.5 -r1.6 pkgsrc/security/chkrootkit/distinfo
 cvs rdiff -r1.1 -r0 pkgsrc/security/chkrootkit/patches/patch-ac

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Adrian Portelli <adrianp@NetBSD.org>
To: nocturne@mit.edu
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/31813
Date: Mon, 02 Jan 2006 18:55:29 +0000

 Hi,

 I've received a response from upstream on this bug:

 "Great. Notice chkrootkit currently only support NetBSD <= 1.6.
 I will fix it in the next version."

 I've just updated chkrootkit to 0.46a and will keep an eye out for any
 further updates of the package.  I've also added a MESSAGE with a list
 of all the currently supported operating systems and versions and warned
 users about potential false positive results when using chkrootkit on a
 untested OS.

 Currently I know of the following false-positives on NetBSD:

 NetBSD-2.x - /usr/bin/login is reported as infected
 NetBSD-3.x - Files from "OBSD rk v1" are found under /usr/lib/security

 adrian.

From: Adrian Portelli <adrianp@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/31813 CVS commit: pkgsrc/security/chkrootkit
Date: Wed, 11 Jul 2007 20:16:34 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	adrianp
 Date:		Wed Jul 11 20:16:33 UTC 2007

 Modified Files:
 	pkgsrc/security/chkrootkit: Makefile distinfo
 	pkgsrc/security/chkrootkit/patches: patch-aa

 Log Message:
 Update to 0.47
 Mark as not for NetBSD > 1.x
 The false positives on NetBSD 2.x and 3.x have been reported upstream
 to try and address PR #31813


 To generate a diff of this commit:
 cvs rdiff -r1.11 -r1.12 pkgsrc/security/chkrootkit/Makefile
 cvs rdiff -r1.7 -r1.8 pkgsrc/security/chkrootkit/distinfo
 cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/security/chkrootkit/patches/patch-aa

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: adrianp@netbsd.org
State-Changed-When: Wed, 11 Jul 2007 20:23:08 +0000
State-Changed-Why:
NetBSD 2.x and 3.x are not supported, even with the latest version of
chkrootkit.  This has been reported upstream and hopefully the will
eliminate the false postivies and release a version that supports
NetBSD 2.x and 3.x.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.