Bonjour, j'ai récemment fait un audit de sécurité via le script Lynis qui me trouve plusieurs possible faille de sécurité sur le noyau, j'ai donc modifier les valeurs de certains problèmes via la commande sysctl mais après chaque redémarrage les valeurs se remettent par défaut.
Je vous envoie le résultat de la commande;
si je prend la premier problème il me semble que la commande adéquate est la suivante : sudo sysctl dev.tty.ldisc_autoload=0, je vérifie par la suite avec la même commande si la valeur à bien changer ce qui est le cas mais après un reboot le problème est toujours présent.
Avez vous déjà eu ce genre de problèmes où est-ce moi qui utilise la mauvaise commande ?
Merci pour vos réponses !
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 [+] Kernel Hardening ------------------------------------ - Comparing sysctl key pairs with scan profile - dev.tty.ldisc_autoload (exp: 0) [ DIFFÉRENT ] - fs.protected_fifos (exp: 2) [ DIFFÉRENT ] - fs.protected_hardlinks (exp: 1) [ OK ] - fs.protected_regular (exp: 2) [ OK ] - fs.protected_symlinks (exp: 1) [ OK ] - fs.suid_dumpable (exp: 0) [ DIFFÉRENT ] - kernel.core_uses_pid (exp: 1) [ DIFFÉRENT ] - kernel.ctrl-alt-del (exp: 0) [ OK ] - kernel.dmesg_restrict (exp: 1) [ DIFFÉRENT ] - kernel.kptr_restrict (exp: 2) [ DIFFÉRENT ] - kernel.modules_disabled (exp: 1) [ DIFFÉRENT ] - kernel.perf_event_paranoid (exp: 3) [ DIFFÉRENT ] - kernel.randomize_va_space (exp: 2) [ OK ] - kernel.sysrq (exp: 0) [ DIFFÉRENT ] - kernel.unprivileged_bpf_disabled (exp: 1) [ DIFFÉRENT ] - kernel.yama.ptrace_scope (exp: 1 2 3) [ OK ] - net.core.bpf_jit_harden (exp: 2) [ DIFFÉRENT ] - net.ipv4.conf.all.accept_redirects (exp: 0) [ DIFFÉRENT ] - net.ipv4.conf.all.accept_source_route (exp: 0) [ OK ] - net.ipv4.conf.all.bootp_relay (exp: 0) [ OK ] - net.ipv4.conf.all.forwarding (exp: 0) [ OK ] - net.ipv4.conf.all.log_martians (exp: 1) [ DIFFÉRENT ] - net.ipv4.conf.all.mc_forwarding (exp: 0) [ OK ] - net.ipv4.conf.all.proxy_arp (exp: 0) [ OK ] - net.ipv4.conf.all.rp_filter (exp: 1) [ DIFFÉRENT ] - net.ipv4.conf.all.send_redirects (exp: 0) [ DIFFÉRENT ] - net.ipv4.conf.default.accept_redirects (exp: 0) [ DIFFÉRENT ] - net.ipv4.conf.default.accept_source_route (exp: 0) [ DIFFÉRENT ] - net.ipv4.conf.default.log_martians (exp: 1) [ DIFFÉRENT ] - net.ipv4.icmp_echo_ignore_broadcasts (exp: 1) [ OK ] - net.ipv4.icmp_ignore_bogus_error_responses (exp: 1) [ OK ] - net.ipv4.tcp_syncookies (exp: 1) [ OK ] - net.ipv4.tcp_timestamps (exp: 0 1) [ OK ] - net.ipv6.conf.all.accept_redirects (exp: 0) [ DIFFÉRENT ] - net.ipv6.conf.all.accept_source_route (exp: 0) [ OK ] - net.ipv6.conf.default.accept_redirects (exp: 0) [ DIFFÉRENT ] - net.ipv6.conf.default.accept_source_route (exp: 0) [ OK ]







Répondre avec citation
Partager