Aide pour lynis

Bonjour
Suite à un problème d’accès à Internet sous Ubuntu, Je suis venu sous Debian pour voir si, d’ici, je pourrai résoudre le problème. Or J’ai su qu’il y a un programme qui scan les disques- Lynis.
Je l’ai fait courir, mais maintenant je demande de l’aide pour corriger ce qu’il y a à corriger. Voilà le résultat du scan:

[quote][/quote]root@nexus:/home/carlos# lynis --check-all

[ Lynis 1.2.9 ]

################################################################################
Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under the terms of the GNU General Public License.
See LICENSE file for details about using this software.

Copyright 2007-2009 - Michael Boelen, rootkit.nl/
################################################################################

Et le log en /var/

Si l’on peut m’aider, Je remercie

[+] Initializing program

  • Detecting OS… [ DONE ]
  • Clearing log file (/var/log/lynis.log)… [ DONE ]

Program version: 1.2.9
Operating system: Linux
Operating system name: Linux
Operating system version: 2.6.32-5-686
Kernel version: 2.6.32-5-686
Hardware platform: i686
Hostname: nexus
Auditor: [Unknown]
Profile: /etc/lynis/default.prf
Log file: /var/log/lynis.log
Report file: /var/log/lynis-report.dat
Report version: 1.0

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

  • Checking profile file (/etc/lynis/default.prf)…
  • Program update status… [ NO UPDATE ]

[+] System Tools

  • Scanning available tools…
  • Checking system binaries…
    • Checking /bin… [ FOUND ]
    • Checking /sbin… [ FOUND ]
    • Checking /usr/bin… [ FOUND ]
    • Checking /usr/sbin… [ FOUND ]
    • Checking /usr/local/bin… [ FOUND ]
    • Checking /usr/local/sbin… [ FOUND ]
    • Checking /usr/local/libexec… [ NOT FOUND ]
    • Checking /usr/libexec… [ NOT FOUND ]
    • Checking /usr/sfw/bin… [ NOT FOUND ]
    • Checking /usr/sfw/sbin… [ NOT FOUND ]
    • Checking /usr/sfw/libexec… [ NOT FOUND ]
    • Checking /opt/sfw/bin… [ NOT FOUND ]
    • Checking /opt/sfw/sbin… [ NOT FOUND ]
    • Checking /opt/sfw/libexec… [ NOT FOUND ]
    • Checking /usr/xpg4/bin… [ NOT FOUND ]
    • Checking /usr/css/bin… [ NOT FOUND ]
    • Checking /usr/ucb… [ NOT FOUND ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Boot and services

  • Checking boot loaders
    • Checking presence GRUB2… [ OK ]
    • Checking presence LILO… [ NOT FOUND ]
    • Checking presence YABOOT… [ NOT FOUND ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Kernel

  • Checking default run level… [ 2 ]
  • Checking CPU support (NX/PAE)
    CPU supports PAE and NoeXecute [ YES ]
  • Checking kernel version [ DONE ]
  • Checking kernel type [ DONE ]
  • Checking loaded kernel modules [ DONE ]
    Found 63 active modules
  • Checking Linux kernel configuration file… [ FOUND ]
  • Checking core dumps configuration… [ ENABLED ]
    • Checking setuid core dumps configuration… [ DISABLED ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Memory and processes

  • Checking /proc/meminfo… [ FOUND ]
  • Searching for dead/zombie processes… [ OK ]
  • Searching for IO waiting processes… [ OK ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Users, Groups and Authentication

  • Search administrator accounts… [ OK ]
  • Checking consistency of group files (grpck)… [ OK ]
  • Checking non unique group ID’s… [ OK ]
  • Checking non unique group names… [ OK ]
  • Checking password file consistency… [ OK ]
  • Query system users (non daemons)… [ DONE ]
  • Checking NIS+ authentication support [ NOT ENABLED ]
  • Checking NIS authentication support [ NOT ENABLED ]
  • Checking sudoers file [ FOUND ]
    • Check sudoers file permissions [ OK ]
  • Checking PAM password strength tools [ SUGGESTION ]
  • Checking PAM configuration files (pam.conf) [ FOUND ]
  • Checking PAM configuration files (pam.d) [ FOUND ]
  • Checking PAM modules [ FOUND ]
  • Checking LDAP module in PAM [ NOT FOUND ]
  • Checking accounts without expire date [ SUGGESTION ]
  • Checking user password aging [ DISABLED ]
  • Checking Linux single user mode authentication [ WARNING ]
  • Determining default umask
    • Checking umask (/etc/profile) [ SUGGESTION ]
    • Checking umask (/etc/login.defs) [ SUGGESTION ]
    • Checking umask (/etc/init.d/rc) [ SUGGESTION ]
  • Checking LDAP authentication support [ NOT ENABLED ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Shells

  • Checking shells from /etc/shells…
    Result: found 12 shells (valid shells: 4).

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] File systems

  • Checking mount points
    • Checking /home mount point… [ SUGGESTION ]
    • Checking /tmp mount point… [ SUGGESTION ]
  • Checking for old files in /tmp… [ OK ]
  • Checking /tmp sticky bit… [ OK ]
  • ACL support root file system… [ DISABLED ]
  • Checking Locate database… [ FOUND ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Storage

  • Checking usb-storage driver (modprobe config)… [ NOT DISABLED ]
  • Checking firewire ohci driver (modprobe config)… [ NOT DISABLED ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

  • Check running NFS daemon… [ NOT FOUND ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Software: name services

  • Checking default DNS search domain… [ NONE ]
  • Checking /etc/resolv.conf options… [ NONE ]
  • Searching DNS domain name… [ UNKNOWN ]
  • Checking nscd status… [ NOT FOUND ]
  • Checking BIND status… [ NOT FOUND ]
  • Checking PowerDNS status… [ NOT FOUND ]
  • Checking ypbind status… [ NOT FOUND ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Ports and packages

  • Searching package managers…
    • Searching RPM package manager… [ FOUND ]
      • Querying RPM package manager…
    • Searching dpkg package manager… [ FOUND ]
      • Querying package manager…

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Networking

  • Checking configured nameservers…
    • Testing nameservers…
      Nameserver: 192.168.1.1… [ OK ]
    • Minimal of 2 responsive nameservers… [ WARNING ]
  • Checking default gateway… [ DONE ]
  • Checking promiscuous interfaces… [ OK ]
  • Checking waiting connections… [ OK ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Printers and Spools

  • Checking cups daemon… [ RUNNING ]
  • Checking cups configuration file… [ OK ]
  • Checking cups addresses/sockets… [ FOUND ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Software: e-mail and messaging

  • Checking Exim status… [ RUNNING ]
  • Checking Postfix status… [ NOT FOUND ]
  • Checking Qmail smtpd status… [ NOT FOUND ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Software: firewalls

  • Checking iptables kernel module… [ NOT FOUND ]
  • Checking pf configuration… [ NOT FOUND ]
  • Checking host based firewall [ NOT ACTIVE ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Software: webserver

  • Checking Apache… [ NOT FOUND ]
  • Searching nginx process… [ NOT FOUND ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] SSH Support

  • Checking running SSH daemon… [ NOT FOUND ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] SNMP Support

  • Checking running SNMP daemon… [ NOT FOUND ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Databases

  • MySQL process status… [ NOT FOUND ]
  • PostgreSQL processes status… [ NOT FOUND ]
  • Oracle processes status… [ NOT FOUND ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] LDAP Services

  • Checking OpenLDAP instance… [ NOT FOUND ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Software: PHP

  • Checking PHP… [ NOT FOUND ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Squid Support

  • Checking running Squid daemon… [ NOT FOUND ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Logging and files

  • Checking for a running syslog daemon… [ OK ]

    • Checking Syslog-NG status [ NOT FOUND ]
    • Checking Metalog status [ NOT FOUND ]
    • Checking RSyslog status [ FOUND ]
    • Checking RFC 3195 daemon status [ NOT FOUND ]
  • Checking minilogd instances [ NONE ]

  • Checking logrotate presence [ OK ]

  • Checking log directories (static list) [ DONE ]

  • Checking open log files [ DONE ]

  • Checking deleted files in use [ FILES FOUND ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Insecure services

  • Checking inetd status… [ NOT ACTIVE ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Banners and identification

  • Checking banners…
  • /etc/motd… [ FOUND ]
  • /etc/issue… [ FOUND ]
    • /etc/issue contents… [ WEAK ]
  • /etc/issue.net… [ FOUND ]
    • /etc/issue.net contents… [ WEAK ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Scheduled tasks

  • Checking crontab/cronjob [ DONE ]
  • Checking atd status [ RUNNING ]
    • Checking at users [ DONE ]
    • Checking at jobs [ NONE ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Accounting

  • Checking accounting information… [ NOT FOUND ]
  • Checking auditd [ NOT FOUND ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Time and Synchronization

  • Checking running NTP daemon… [ NOT FOUND ]
  • Checking NTP client in crontab file… [ NOT FOUND ]
  • Checking NTP client in cron.d files… [ NOT FOUND ]
  • Checking for a running NTP daemon or client… [ WARNING ]
  • Checking NTP daemon… [ NOT FOUND ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Cryptography

  • Checking SSL certificate expiration… [ OK ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Virtualization

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Security frameworks

  • Checking presence AppArmor [ NOT FOUND ]
  • Checking presence SELinux [ NOT FOUND ]
  • Checking presence grsecurity [ NOT FOUND ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Software: file integrity

  • Checking AFICK… [ NOT FOUND ]
  • Checking AIDE… [ NOT FOUND ]
  • Checking Osiris… [ NOT FOUND ]
  • Checking Samhain… [ NOT FOUND ]
  • Checking Tripwire… [ NOT FOUND ]
  • Checking presence integrity tool… [ NOT FOUND ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Software: Malware scanners

  • Checking chkrootkit… [ FOUND ]
  • Checking Rootkit Hunter… [ FOUND ]
  • Checking ClamAV scanner… [ FOUND ]
  • Checking ClamAV daemon… [ FOUND ]
    • Checking freshclam… [ FOUND ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] System Tools

  • Starting file permissions check…
    /etc/lilo.conf [ NOT FOUND ]
    /root/.ssh [ NOT FOUND ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Home directories

  • Checking shell history files… [ OK ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Kernel Hardening

  • Comparing sysctl key pairs with scan profile…
    • kernel.core_uses_pid (1) [ DIFFERENT ]
    • kernel.ctrl-alt-del (0) [ OK ]
    • kernel.sysrq (0) [ DIFFERENT ]
    • net.ipv4.conf.all.accept_redirects (0) [ DIFFERENT ]
    • net.ipv4.conf.all.accept_source_route (0) [ OK ]
    • net.ipv4.conf.all.bootp_relay (0) [ OK ]
    • net.ipv4.conf.all.forwarding (0) [ OK ]
    • net.ipv4.conf.all.log_martians (1) [ DIFFERENT ]
    • net.ipv4.conf.all.mc_forwarding (0) [ OK ]
    • net.ipv4.conf.all.proxy_arp (0) [ OK ]
    • net.ipv4.conf.all.rp_filter (1) [ DIFFERENT ]
    • net.ipv4.conf.all.send_redirects (0) [ DIFFERENT ]
    • net.ipv4.conf.default.accept_redirects (0) [ DIFFERENT ]
    • net.ipv4.conf.default.accept_source_route (0) [ DIFFERENT ]
    • net.ipv4.conf.default.log_martians (1) [ DIFFERENT ]
    • net.ipv4.icmp_echo_ignore_broadcasts (1) [ OK ]
    • net.ipv4.icmp_ignore_bogus_error_responses (1) [ OK ]
    • net.ipv4.tcp_syncookies (1) [ DIFFERENT ]
    • net.ipv4.tcp_timestamps (0) [ DIFFERENT ]
    • net.ipv6.conf.all.accept_redirects (0) [ DIFFERENT ]
    • net.ipv6.conf.all.accept_source_route (0) [ OK ]
    • net.ipv6.conf.default.accept_redirects (0) [ DIFFERENT ]
    • net.ipv6.conf.default.accept_source_route (0) [ OK ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

[+] Hardening

- Installed compiler(s)...                                [ FOUND ]
- Installed malware scanner...                            [ FOUND ]

[ Press [ENTER] to continue, or [CTRL]+C to stop ]

================================================================================

-[ Lynis 1.2.9 Results ]-

Tests performed: 133
Warnings:

  • [09:01:11] Warning: No password set for single mode [test:AUTH-9308] [impact:L]
  • [09:01:40] Warning: Couldn’t find 2 responsive nameservers [test:NETW-2705] [impact:L]
  • [09:02:22] Warning: No running NTP daemon or available client found [test:TIME-3104] [impact:M]

Suggestions:

  • [09:01:11] Suggestion: Install a PAM module for password strength testing like pam_cracklib or pam_passwdqc [test:AUTH-9262]
  • [09:01:11] Suggestion: When possible set expire dates for all password protected accounts [test:AUTH-9282]
  • [09:01:11] Suggestion: Configure password aging limits to enforce password changing on a regular base [test:AUTH-9286]
  • [09:01:11] Suggestion: Set password for single user mode to minimize physical access attack surface [test:AUTH-9308]
  • [09:01:11] Suggestion: Default umask in /etc/profile could be more strict like 027 [test:AUTH-9328]
  • [09:01:11] Suggestion: Default umask in /etc/login.defs could be more strict like 027 [test:AUTH-9328]
  • [09:01:11] Suggestion: Default umask in /etc/init.d/rc could be more strict like 027 [test:AUTH-9328]
  • [09:01:31] Suggestion: To decrease the impact of a full /home file system, place /home on a separated partition [test:FILE-6310]
  • [09:01:31] Suggestion: To decrease the impact of a full /tmp file system, place /tmp on a separated partition [test:FILE-6310]
  • [09:01:34] Suggestion: Disable drivers like USB storage when not used, to prevent unauthorized storage or data theft [test:STRG-1840]
  • [09:01:34] Suggestion: Disable drivers like firewire storage when not used, to prevent unauthorized storage or data theft [test:STRG-1846]
  • [09:01:40] Suggestion: Check your resolv.conf file and fill in a backup nameserver if possible [test:NETW-2705]
  • [09:01:46] Suggestion: Configure a firewall/packet filter to filter incoming and outgoing traffic [test:FIRE-4590]
  • [09:02:22] Suggestion: Add legal banner to /etc/issue, to warn unauthorized users [test:BANN-7126]
  • [09:02:22] Suggestion: Add legal banner to /etc/issue.net, to warn unauthorized users [test:BANN-7130]
  • [09:02:22] Suggestion: Enable auditd to collect audit information [test:ACCT-9628]
  • [09:02:22] Suggestion: Check if any NTP daemon is running or a NTP client gets executed daily, to prevent big time differences and avoid problems with services like kerberos, authentication or logging differences. [test:TIME-3104]
  • [09:08:28] Suggestion: Harden the system by removing unneeded compilers. This can decrease the chance of customized trojans, backdoors and rootkits to be compiled and installed [test:HRDN-7220]
    ================================================================================
    Files:
  • Test and debug information : /var/log/lynis.log
  • Report data : /var/log/lynis-report.dat
    ================================================================================
    Hardening index : [40] [######## ]
    ================================================================================
    Lynis 1.2.9
    Copyright 2007-2009 - Michael Boelen, rootkit.nl/
    ================================================================================

Salut,

Est-ce que ton problème d’accès à Internet persiste ? Et si NON que veux tu que l’on trouve dans un scan où la panne est disparue ?

Bonjour
Le problème était sur Ubuntu, pas sous Debian. Ma demande n’a donc pas à voir avec ce problème -là, d’ailleurs outrepassé déjà, mais avec Lynis, un programme que Je ne connaissait pas et qui a detecté, sous Debian, des erreurs, à ce qu’il paraît, avec ses “Warning”.

En tous les cas, je viens de tester, pas inintéressant ce petit soft, un coup d’œil rapide sur sa sécurité et des idées faciles pour nettoyer tout ça, pas mal :wink: