Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package: chkrootkit #285643

Open
i-am-logger opened this issue Feb 1, 2024 · 2 comments
Open

package: chkrootkit #285643

i-am-logger opened this issue Feb 1, 2024 · 2 comments
Labels
9.needs: upstream fix This PR needs upstream to change something

Comments

@i-am-logger
Copy link
Contributor

i-am-logger commented Feb 1, 2024

Describe the bug

some linux commands are found INFECTED,

/usr/lib and /sbin are not available in nixos

Steps To Reproduce

Steps to reproduce the behavior:
on nixos:

  1. nix-shell -p chkrootkit
  2. sudo chkrootkit -q

Expected behavior

  1. not sure why i get INFECTED
  2. no /usr/lib or /sbin in nixOS

Screenshots

image

Notify maintainers

Metadata

sudo chkrootkit -q -n
Checking `basename'... INFECTED
/bin/sh
Checking `date'... INFECTED
Checking `dirname'... INFECTED
Checking `echo'... INFECTED
Checking `env'... INFECTED
/nix/store/01znf87kiw5xx1dj0f7djrnrbg84ij28-findutils-4.9.0/bin/find: ‘/usr/lib’: No such file or directory
/nix/store/01znf87kiw5xx1dj0f7djrnrbg84ij28-findutils-4.9.0/bin/find: ‘/usr/lib’: No such file or directory
/nix/store/01znf87kiw5xx1dj0f7djrnrbg84ij28-findutils-4.9.0/bin/find: ‘/sbin’: No such file or directory

Add a 👍 reaction to issues you find important.

@i-am-logger i-am-logger added the 0.kind: bug Something is broken label Feb 1, 2024
@i-am-logger i-am-logger changed the title nixos support package: chkrootkit Feb 1, 2024
@i-am-logger i-am-logger changed the title package: chkrootkit package: chkrootkit Feb 1, 2024
@fin444
Copy link
Contributor

fin444 commented Feb 2, 2024

As was explained in the issue you linked:

This is a false-positive

Chkrootkit is designed to work on a normal Linux system, which NixOS is not. Thus, it interprets normal behavior (like the lack of /usr/lib and /sbin) to be a virus.

@i-am-logger
Copy link
Contributor Author

Thanks, I'll follow up with chkrootkit

@eclairevoyant eclairevoyant added 9.needs: upstream fix This PR needs upstream to change something and removed 0.kind: bug Something is broken labels Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
9.needs: upstream fix This PR needs upstream to change something
Projects
None yet
Development

No branches or pull requests

3 participants