-
Notifications
You must be signed in to change notification settings - Fork 266
/
baseline-lynis-audit-system-nocolors-Tumbleweed-x86_64-gnome
824 lines (667 loc) · 31.9 KB
/
baseline-lynis-audit-system-nocolors-Tumbleweed-x86_64-gnome
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
[ Lynis 3.0.3 ]
################################################################################
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 the LICENSE file for details about using this software.
2007-2021, CISOfy - https://cisofy.com/lynis/
Enterprise support available (compliance, plugins, interface and tools)
################################################################################
[+] Initializing program
------------------------------------
[2C- Detecting OS... [41C [ DONE ]
[2C- Checking profiles...[37C [ DONE ]
---------------------------------------------------
Program version: 3.0.3
Operating system: Linux
Operating system name: openSUSE
Operating system version: 20210222
Kernel version: 5.10.16
Hardware platform: x86_64
Hostname: susetest
---------------------------------------------------
Profiles: /etc/lynis/default.prf
Log file: /var/log/lynis.log
Report file: /var/log/lynis-report.dat
Report version: 1.0
Plugin directory: /usr/share/lynis/plugins
---------------------------------------------------
Auditor: [Not Specified]
Language: en
Test category: all
Test group: all
---------------------------------------------------
[2C- Program update status... [32C [ NO UPDATE ]
[+] System tools
------------------------------------
[2C- Scanning available tools...[30C
[2C- Checking system binaries...[30C
[+] Plugins (phase 1)
------------------------------------
[0CNote: plugins have more extensive tests and may take several minutes to complete[0C
[0C [0C
[2C- Plugins enabled[42C [ NONE ]
[+] Boot and services
------------------------------------
[2C- Service Manager[42C [ systemd ]
[2C- Checking UEFI boot[39C [ DISABLED ]
[2C- Checking presence GRUB2[34C [ FOUND ]
[4C- Checking for password protection[23C [ NONE ]
[2C- Check running services (systemctl)[23C [ DONE ]
[8CResult: found 32 running services[20C
[2C- Check enabled services at boot (systemctl)[15C [ DONE ]
[8CResult: found 26 enabled services[20C
[2C- Check startup files (permissions)[24C [ OK ]
[2C- Running 'systemd-analyze security'[23C
[8C- ModemManager.service:[30C [ MEDIUM ]
[8C- NetworkManager.service:[28C [ EXPOSED ]
[8C- accounts-daemon.service:[27C [ UNSAFE ]
[8C- after-local.service:[31C [ UNSAFE ]
[8C- alsa-state.service:[32C [ UNSAFE ]
[8C- appstream-sync-cache.service:[22C [ UNSAFE ]
[8C- auditd.service:[36C [ UNSAFE ]
[8C- avahi-daemon.service:[30C [ UNSAFE ]
[8C- chronyd.service:[35C [ EXPOSED ]
[8C- colord.service:[36C [ EXPOSED ]
[8C- cron.service:[38C [ UNSAFE ]
[8C- cups.service:[38C [ UNSAFE ]
[8C- dbus.service:[38C [ UNSAFE ]
[8C- display-manager.service:[27C [ UNSAFE ]
[8C- dm-event.service:[34C [ UNSAFE ]
[8C- emergency.service:[33C [ UNSAFE ]
[8C- firewalld.service:[33C [ UNSAFE ]
[8C- fwupd.service:[37C [ MEDIUM ]
[8C- getty@tty1.service:[32C [ UNSAFE ]
[8C- getty@tty6.service:[32C [ UNSAFE ]
[8C- getty@tty7.service:[32C [ UNSAFE ]
[8C- gpm.service:[39C [ UNSAFE ]
[8C- haveged.service:[35C [ MEDIUM ]
[8C- irqbalance.service:[32C [ MEDIUM ]
[8C- mcelog.service:[36C [ UNSAFE ]
[8C- nscd.service:[38C [ UNSAFE ]
[8C- pcscd.service:[37C [ UNSAFE ]
[8C- plymouth-start.service:[28C [ UNSAFE ]
[8C- polkit.service:[36C [ UNSAFE ]
[8C- postfix.service:[35C [ UNSAFE ]
[8C- rc-local.service:[34C [ UNSAFE ]
[8C- rescue.service:[36C [ UNSAFE ]
[8C- rtkit-daemon.service:[30C [ MEDIUM ]
[8C- serial-getty@hvc0.service:[25C [ UNSAFE ]
[8C- serial-getty@ttyAMA0.service:[22C [ UNSAFE ]
[8C- serial-getty@ttyS0.service:[24C [ UNSAFE ]
[8C- serial-getty@ttyS1.service:[24C [ UNSAFE ]
[8C- serial-getty@ttyS2.service:[24C [ UNSAFE ]
[8C- smartd.service:[36C [ UNSAFE ]
[8C- snapperd.service:[34C [ UNSAFE ]
[8C- sshd.service:[38C [ UNSAFE ]
[8C- systemd-ask-password-console.service:[14C [ UNSAFE ]
[8C- systemd-ask-password-plymouth.service:[13C [ UNSAFE ]
[8C- systemd-initctl.service:[27C [ UNSAFE ]
[8C- systemd-journald.service:[26C [ OK ]
[8C- systemd-logind.service:[28C [ OK ]
[8C- systemd-rfkill.service:[28C [ UNSAFE ]
[8C- systemd-timesyncd.service:[25C [ OK ]
[8C- systemd-udevd.service:[29C [ MEDIUM ]
[8C- udisks2.service:[35C [ UNSAFE ]
[8C- upower.service:[36C [ OK ]
[8C- user@0.service:[36C [ UNSAFE ]
[8C- user@1000.service:[33C [ UNSAFE ]
[8C- wpa_supplicant.service:[28C [ UNSAFE ]
[+] Kernel
------------------------------------
[2C- Checking default runlevel[32C [ runlevel 5 ]
[2C- Checking CPU support (NX/PAE)[28C
[4CCPU support: PAE and/or NoeXecute supported[14C [ FOUND ]
[2C- Checking kernel version and release[22C [ DONE ]
[2C- Checking kernel type[37C [ DONE ]
[2C- Checking loaded kernel modules[27C [ DONE ]
[6CFound 106 active modules[31C
[2C- Checking Linux kernel configuration file[17C [ FOUND ]
[2C- Checking default I/O kernel scheduler[20C [ NOT FOUND ]
[2C- Checking core dumps configuration[24C
[4C- configuration in systemd conf files[20C [ DEFAULT ]
[4C- configuration in etc/profile[27C [ DEFAULT ]
[4C- 'hard' configuration in security/limits.conf[11C [ DEFAULT ]
[4C- 'soft' configuration in security/limits.conf[11C [ DEFAULT ]
[4C- Checking setuid core dumps configuration[15C [ DISABLED ]
[2C- Check if reboot is needed[32C [ NO ]
[+] Memory and Processes
------------------------------------
[2C- Checking /proc/meminfo[35C [ FOUND ]
[2C- Searching for dead/zombie processes[22C [ NOT FOUND ]
[2C- Searching for IO waiting processes[23C [ NOT FOUND ]
[2C- Search prelink tooling[35C [ NOT FOUND ]
[+] Users, Groups and Authentication
------------------------------------
[2C- Administrator accounts[35C [ OK ]
[2C- Unique UIDs[46C [ OK ]
[2C- Consistency of group files (grpck)[23C [ OK ]
[2C- Unique group IDs[41C [ OK ]
[2C- Unique group names[39C [ OK ]
[2C- Password file consistency[32C [ OK ]
[2C- Password hashing methods[33C [ SUGGESTION ]
[2C- Query system users (non daemons)[25C [ DONE ]
[2C- NIS+ authentication support[30C [ NOT ENABLED ]
[2C- NIS authentication support[31C [ NOT ENABLED ]
[2C- Sudoers file(s)[42C [ FOUND ]
[4C- Permissions for directory: /etc/sudoers.d[14C [ OK ]
[4C- Permissions for: /etc/sudoers[26C [ OK ]
[2C- PAM password strength tools[30C [ OK ]
[2C- PAM configuration file (pam.conf)[24C [ NOT FOUND ]
[2C- PAM configuration files (pam.d)[26C [ FOUND ]
[2C- PAM modules[46C [ FOUND ]
[2C- LDAP module in PAM[39C [ NOT FOUND ]
[2C- Accounts without expire date[29C [ SUGGESTION ]
[2C- Accounts without password[32C [ OK ]
[2C- Locked accounts[42C [ OK ]
[2C- Checking expired passwords[31C [ OK ]
[2C- Determining default umask[32C
[4C- umask (/etc/profile)[35C [ NOT FOUND ]
[2C- LDAP authentication support[30C [ NOT ENABLED ]
[+] Shells
------------------------------------
[2C- Checking shells from /etc/shells[25C
[4CResult: found 26 shells (valid shells: 6).[15C
[4C- Session timeout settings/tools[25C [ NONE ]
[2C- Checking default umask values[28C
[4C- Checking default umask in /etc/bash.bashrc[13C [ NONE ]
[4C- Checking default umask in /etc/bash.bashrc.local[7C [ NONE ]
[4C- Checking default umask in /etc/csh.cshrc[15C [ NONE ]
[4C- Checking default umask in /etc/profile[17C [ NONE ]
[+] File systems
------------------------------------
[2C- Checking mount points[36C
[4C- Checking /home mount point[29C [ OK ]
[4C- Checking /tmp mount point[30C [ OK ]
[4C- Checking /var mount point[30C [ OK ]
[2C- Query swap partitions (fstab)[28C [ OK ]
[2C- Testing swap partitions[34C [ OK ]
[2C- Testing /proc mount (hidepid)[28C [ SUGGESTION ]
[2C- Checking for old files in /tmp[27C [ OK ]
[2C- Checking /tmp sticky bit[33C [ OK ]
[2C- Checking /var/tmp sticky bit[29C [ OK ]
[2C- ACL support root file system[29C [ ENABLED ]
[2C- Mount options of /[39C [ OK ]
[2C- Mount options of /dev[36C [ HARDENED ]
[2C- Mount options of /dev/shm[32C [ PARTIALLY HARDENED ]
[2C- Mount options of /home[35C [ NON DEFAULT ]
[2C- Mount options of /run[36C [ HARDENED ]
[2C- Mount options of /tmp[36C [ PARTIALLY HARDENED ]
[2C- Mount options of /var[36C [ NON DEFAULT ]
[2C- Total without nodev:14 noexec:18 nosuid:12 ro or noexec (W^X): 18 of total 45[0C
[2C- Disable kernel support of some filesystems[15C
[4C- Module cramfs is blacklisted[27C [ OK ]
[4C- Module freevxfs is blacklisted[25C [ OK ]
[4C- Module hfs is blacklisted[30C [ OK ]
[4C- Discovered kernel modules: cramfs freevxfs hfsplus jffs2 squashfs udf [0C
[+] USB Devices
------------------------------------
[2C- Checking usb-storage driver (modprobe config)[12C [ NOT DISABLED ]
[2C- Checking USB devices authorization[23C [ ENABLED ]
[2C- Checking USBGuard[40C [ NOT FOUND ]
[+] Storage
------------------------------------
[2C- Checking firewire ohci driver (modprobe config)[10C [ NOT DISABLED ]
[+] NFS
------------------------------------
[2C- Query rpc registered programs[28C [ DONE ]
[2C- Query NFS versions[39C [ DONE ]
[2C- Query NFS protocols[38C [ DONE ]
[2C- Check running NFS daemon[33C [ NOT FOUND ]
[+] Name services
------------------------------------
[2C- Searching DNS domain name[32C [ UNKNOWN ]
[2C- Checking nscd status[37C [ RUNNING ]
[2C- Checking /etc/hosts[38C
[4C- Duplicate entries in hosts file[24C [ NONE ]
[4C- Presence of configured hostname in /etc/hosts[10C [ NOT FOUND ]
[4C- Hostname mapped to localhost[27C [ NOT FOUND ]
[4C- Localhost mapping to IP address[24C [ OK ]
[+] Ports and packages
------------------------------------
[2C- Searching package managers[31C
[4C- Searching RPM package manager[26C [ FOUND ]
[6C- Querying RPM package manager[25C
[WARNING]: Test PKGS-7308 had a long execution: 16.369354 seconds
[2C- Using Zypper to find vulnerable packages[17C [ NONE ]
[2C- Checking package audit tool[30C [ INSTALLED ]
[4CFound: zypper[44C
[+] Networking
------------------------------------
[2C- Checking IPv6 configuration[30C [ ENABLED ]
[6CConfiguration method[35C [ AUTO ]
[6CIPv6 only[46C [ NO ]
[2C- Checking configured nameservers[26C
[4C- Testing nameservers[36C
[8CNameserver: 10.0.2.3[33C [ OK ]
[4C- Minimal of 2 responsive nameservers[20C [ WARNING ]
[2C- Checking default gateway[33C [ DONE ]
[2C- Getting listening ports (TCP/UDP)[24C [ DONE ]
[2C- Checking promiscuous interfaces[26C [ OK ]
[2C- Checking waiting connections[29C [ OK ]
[2C- Checking status DHCP client[30C
[2C- Checking for ARP monitoring software[21C [ NOT FOUND ]
[2C- Uncommon network protocols[31C [ 0 ]
[+] Printers and Spools
------------------------------------
[2C- Checking cups daemon[37C [ RUNNING ]
[2C- Checking CUPS configuration file[25C [ OK ]
[4C- File permissions[39C [ OK ]
[2C- Checking CUPS addresses/sockets[26C [ FOUND ]
[2C- Checking lp daemon[39C [ NOT RUNNING ]
[+] Software: e-mail and messaging
------------------------------------
[2C- Postfix status[43C [ RUNNING ]
[4C- Postfix configuration[34C [ FOUND ]
[+] Software: firewalls
------------------------------------
[2C- Checking iptables kernel module[26C [ FOUND ]
[4C- Checking iptables policies of chains[19C [ FOUND ]
[4C- Checking for empty ruleset[29C [ WARNING ]
[4C- Checking for unused rules[30C [ OK ]
[2C- Checking host based firewall[29C [ ACTIVE ]
[+] Software: webserver
------------------------------------
[2C- Checking Apache (binary /usr/sbin/httpd)[17C [ FOUND ]
[6CInfo: Configuration file found (/etc/apache2/httpd.conf)[0C
[6CInfo: No virtual hosts found[27C
[4C* Loadable modules[39C [ FOUND (119) ]
[8C- Found 119 loadable modules[25C
[10Cmod_evasive: anti-DoS/brute force[18C [ NOT FOUND ]
[10Cmod_reqtimeout/mod_qos[29C [ FOUND ]
[10CModSecurity: web application firewall[14C [ NOT FOUND ]
[2C- Checking nginx[43C [ NOT FOUND ]
[+] SSH Support
------------------------------------
[2C- Checking running SSH daemon[30C [ FOUND ]
[4C- Searching SSH configuration[28C [ FOUND ]
[4C- OpenSSH option: AllowTcpForwarding[21C [ SUGGESTION ]
[4C- OpenSSH option: ClientAliveCountMax[20C [ SUGGESTION ]
[4C- OpenSSH option: ClientAliveInterval[20C [ OK ]
[4C- OpenSSH option: Compression[28C [ SUGGESTION ]
[4C- OpenSSH option: FingerprintHash[24C [ OK ]
[4C- OpenSSH option: GatewayPorts[27C [ OK ]
[4C- OpenSSH option: IgnoreRhosts[27C [ OK ]
[4C- OpenSSH option: LoginGraceTime[25C [ OK ]
[4C- OpenSSH option: LogLevel[31C [ SUGGESTION ]
[4C- OpenSSH option: MaxAuthTries[27C [ SUGGESTION ]
[4C- OpenSSH option: MaxSessions[28C [ SUGGESTION ]
[4C- OpenSSH option: PermitRootLogin[24C [ SUGGESTION ]
[4C- OpenSSH option: PermitUserEnvironment[18C [ OK ]
[4C- OpenSSH option: PermitTunnel[27C [ OK ]
[4C- OpenSSH option: Port[35C [ SUGGESTION ]
[4C- OpenSSH option: PrintLastLog[27C [ OK ]
[4C- OpenSSH option: StrictModes[28C [ OK ]
[4C- OpenSSH option: TCPKeepAlive[27C [ SUGGESTION ]
[4C- OpenSSH option: UseDNS[33C [ OK ]
[4C- OpenSSH option: X11Forwarding[26C [ SUGGESTION ]
[4C- OpenSSH option: AllowAgentForwarding[19C [ SUGGESTION ]
[4C- OpenSSH option: AllowUsers[29C [ NOT FOUND ]
[4C- OpenSSH option: AllowGroups[28C [ NOT FOUND ]
[+] SNMP Support
------------------------------------
[2C- Checking running SNMP daemon[29C [ NOT FOUND ]
[+] Databases
------------------------------------
[4CNo database engines found[32C
[+] LDAP Services
------------------------------------
[2C- Checking OpenLDAP instance[31C [ NOT FOUND ]
[+] PHP
------------------------------------
[2C- Checking PHP[45C [ NOT FOUND ]
[+] Squid Support
------------------------------------
[2C- Checking running Squid daemon[28C [ NOT FOUND ]
[+] Logging and files
------------------------------------
[2C- Checking for a running log daemon[24C [ OK ]
[4C- Checking Syslog-NG status[30C [ NOT FOUND ]
[4C- Checking systemd journal status[24C [ FOUND ]
[4C- Checking Metalog status[32C [ NOT FOUND ]
[4C- Checking RSyslog status[32C [ NOT FOUND ]
[4C- Checking RFC 3195 daemon status[24C [ NOT FOUND ]
[4C- Checking minilogd instances[28C [ NOT FOUND ]
[2C- Checking logrotate presence[30C [ OK ]
[2C- Checking remote logging[34C [ NOT ENABLED ]
[2C- Checking log directories (static list)[19C [ DONE ]
[2C- Checking open log files[34C [ DONE ]
[2C- Checking deleted files in use[28C [ FILES FOUND ]
[+] Insecure services
------------------------------------
[2C- Installed inetd package[34C [ NOT FOUND ]
[2C- Installed xinetd package[33C [ OK ]
[4C- xinetd status[42C
[2C- Installed rsh client package[29C [ OK ]
[2C- Installed rsh server package[29C [ OK ]
[2C- Installed telnet client package[26C [ OK ]
[2C- Installed telnet server package[26C [ NOT FOUND ]
[2C- Checking NIS client installation[25C [ OK ]
[2C- Checking NIS server installation[25C [ OK ]
[2C- Checking TFTP client installation[24C [ OK ]
[2C- Checking TFTP server installation[24C [ OK ]
[+] Banners and identification
------------------------------------
[2C- /etc/issue[47C [ SYMLINK ]
[4C- /etc/issue contents[36C [ WEAK ]
[2C- /etc/issue.net[43C [ FOUND ]
[4C- /etc/issue.net contents[32C [ WEAK ]
[+] Scheduled tasks
------------------------------------
[2C- Checking crontab and cronjob files[23C [ DONE ]
[+] Accounting
------------------------------------
[2C- Checking accounting information[26C [ NOT FOUND ]
[2C- Checking sysstat accounting data[25C [ NOT FOUND ]
[2C- Checking auditd[42C [ ENABLED ]
[4C- Checking audit rules[35C [ OK ]
[4C- Checking audit configuration file[22C [ OK ]
[4C- Checking auditd log file[31C [ FOUND ]
[+] Time and Synchronization
------------------------------------
[2C- NTP daemon found: chronyd[32C [ FOUND ]
[2C- Checking for a running NTP daemon or client[14C [ OK ]
[+] Cryptography
------------------------------------
[2C- Checking for expired SSL certificates [0/3][14C [ NONE ]
[2C- Found 0 encrypted and 1 unencrypted swap devices in use.[1C [ OK ]
[2C- Kernel entropy is sufficient[29C [ YES ]
[2C- HW RNG & rngd[44C [ NO ]
[2C- SW prng[50C [ YES ]
[+] Virtualization
------------------------------------
[+] Containers
------------------------------------
[+] Security frameworks
------------------------------------
[2C- Checking presence AppArmor[31C [ FOUND ]
[4C- Checking AppArmor status[31C [ ENABLED ]
[8CFound 94 unconfined processes[24C
[2C- Checking presence SELinux[32C [ FOUND ]
[4C- Checking SELinux status[32C [ DISABLED ]
[2C- Checking presence TOMOYO Linux[27C [ NOT FOUND ]
[2C- Checking presence grsecurity[29C [ NOT FOUND ]
[2C- Checking for implemented MAC framework[19C [ OK ]
[+] Software: file integrity
------------------------------------
[2C- Checking file integrity tools[28C
[2C- dm-integrity (status)[36C [ DISABLED ]
[2C- dm-verity (status)[39C [ DISABLED ]
[2C- Checking presence integrity tool[25C [ NOT FOUND ]
[+] Software: System tooling
------------------------------------
[2C- Checking automation tooling[30C
[2C- Automation tooling[39C [ NOT FOUND ]
[2C- Checking for IDS/IPS tooling[29C [ NONE ]
[+] Software: Malware
------------------------------------
[+] File Permissions
------------------------------------
[2C- Starting file permissions check[26C
[4CFile: /boot/grub2/grub.cfg[31C [ OK ]
[4CFile: /etc/cron.deny[37C [ OK ]
[4CFile: /etc/crontab[39C [ OK ]
[4CFile: /etc/group[41C [ OK ]
[4CFile: /etc/group-[40C [ OK ]
[4CFile: /etc/hosts.allow[35C [ OK ]
[4CFile: /etc/hosts.deny[36C [ OK ]
[4CFile: /etc/issue[41C [ SUGGESTION ]
[4CFile: /etc/issue.net[37C [ OK ]
[4CFile: /etc/motd[42C [ OK ]
[4CFile: /etc/passwd[40C [ OK ]
[4CFile: /etc/passwd-[39C [ OK ]
[4CFile: /etc/ssh/sshd_config[31C [ SUGGESTION ]
[4CFile: /etc/hosts.equiv[35C [ OK ]
[4CDirectory: /root/.ssh[36C [ OK ]
[4CDirectory: /etc/cron.d[35C [ SUGGESTION ]
[4CDirectory: /etc/cron.daily[31C [ SUGGESTION ]
[4CDirectory: /etc/cron.hourly[30C [ SUGGESTION ]
[4CDirectory: /etc/cron.weekly[30C [ SUGGESTION ]
[4CDirectory: /etc/cron.monthly[29C [ SUGGESTION ]
[+] Home directories
------------------------------------
[2C- Permissions of home directories[26C [ WARNING ]
[2C- Ownership of home directories[28C [ OK ]
[2C- Checking shell history files[29C [ OK ]
[+] Kernel Hardening
------------------------------------
[2C- Comparing sysctl key pairs with scan profile[13C
[4C- dev.tty.ldisc_autoload (exp: 0)[24C [ DIFFERENT ]
[4C- fs.protected_fifos (exp: 2)[28C [ DIFFERENT ]
[4C- fs.protected_hardlinks (exp: 1)[24C [ OK ]
[4C- fs.protected_regular (exp: 2)[26C [ DIFFERENT ]
[4C- fs.protected_symlinks (exp: 1)[25C [ OK ]
[4C- fs.suid_dumpable (exp: 0)[30C [ OK ]
[4C- kernel.core_uses_pid (exp: 1)[26C [ DIFFERENT ]
[4C- kernel.ctrl-alt-del (exp: 0)[27C [ OK ]
[4C- kernel.dmesg_restrict (exp: 1)[25C [ DIFFERENT ]
[4C- kernel.kptr_restrict (exp: 2)[26C [ DIFFERENT ]
[4C- kernel.modules_disabled (exp: 1)[23C [ DIFFERENT ]
[4C- kernel.perf_event_paranoid (exp: 3)[20C [ DIFFERENT ]
[4C- kernel.randomize_va_space (exp: 2)[21C [ OK ]
[4C- kernel.suid_dumpable (exp: 0)[26C [ OK ]
[4C- kernel.sysrq (exp: 0)[34C [ DIFFERENT ]
[4C- kernel.unprivileged_bpf_disabled (exp: 1)[14C [ DIFFERENT ]
[4C- net.core.bpf_jit_harden (exp: 2)[23C [ DIFFERENT ]
[4C- net.ipv4.conf.all.accept_redirects (exp: 0)[12C [ OK ]
[4C- net.ipv4.conf.all.accept_source_route (exp: 0)[9C [ OK ]
[4C- net.ipv4.conf.all.bootp_relay (exp: 0)[17C [ OK ]
[4C- net.ipv4.conf.all.forwarding (exp: 0)[18C [ OK ]
[4C- net.ipv4.conf.all.log_martians (exp: 1)[16C [ DIFFERENT ]
[4C- net.ipv4.conf.all.mc_forwarding (exp: 0)[15C [ OK ]
[4C- net.ipv4.conf.all.proxy_arp (exp: 0)[19C [ OK ]
[4C- net.ipv4.conf.all.rp_filter (exp: 1)[19C [ DIFFERENT ]
[4C- net.ipv4.conf.all.send_redirects (exp: 0)[14C [ DIFFERENT ]
[4C- net.ipv4.conf.default.accept_redirects (exp: 0)[8C [ OK ]
[4C- net.ipv4.conf.default.accept_source_route (exp: 0)[5C [ OK ]
[4C- net.ipv4.conf.default.log_martians (exp: 1)[12C [ DIFFERENT ]
[4C- net.ipv4.icmp_echo_ignore_broadcasts (exp: 1)[10C [ OK ]
[4C- net.ipv4.icmp_ignore_bogus_error_responses (exp: 1)[4C [ OK ]
[4C- net.ipv4.tcp_syncookies (exp: 1)[23C [ OK ]
[4C- net.ipv4.tcp_timestamps (exp: 0 1)[21C [ OK ]
[4C- net.ipv6.conf.all.accept_redirects (exp: 0)[12C [ OK ]
[4C- net.ipv6.conf.all.accept_source_route (exp: 0)[9C [ OK ]
[4C- net.ipv6.conf.default.accept_redirects (exp: 0)[8C [ OK ]
[4C- net.ipv6.conf.default.accept_source_route (exp: 0)[5C [ OK ]
[+] Hardening
------------------------------------
[4C- Installed compiler(s)[34C [ FOUND ]
[4C- Installed malware scanner[30C [ NOT FOUND ]
[4C- Non-native binary formats[30C [ NOT FOUND ]
[+] System Tools
------------------------------------
[WARNING]: Deprecated function used (report)
[2C- Starting dbus policy check...[28C
[WARNING]: Deprecated function used (logtext)
[4CWarning: Package iio-sensor-proxy-3.0-1.3.x86_64 installs an unknown D-BUS autostart/system service: net.hadess.SensorProxy.conf[0C [ WARNING ]
[4CWarning: Package bluez-5.55-3.3.x86_64 installs an unknown D-BUS autostart/system service: org.bluez.service[0C [ WARNING ]
[4CWarning: Package flatpak-1.10.1-1.2.x86_64 installs an unknown D-BUS autostart/system service: org.freedesktop.Flatpak.SystemHelper.service[0C [ WARNING ]
[4CWarning: Package bolt-0.9-1.4.x86_64 installs an unknown D-BUS autostart/system service: org.freedesktop.bolt.service[0C [ WARNING ]
[4CWarning: Package fwupd-1.5.6-1.1.x86_64 installs an unknown D-BUS autostart/system service: org.freedesktop.fwupd.service[0C [ WARNING ]
[4CWarning: Package systemd-246.10-2.1.x86_64 installs an unknown D-BUS autostart/system service: org.freedesktop.timesync1.service[0C [ WARNING ]
[4CWarning: Package snapper-0.8.15-2.2.x86_64 installs an unknown D-BUS autostart/system service: org.opensuse.Snapper.service[0C [ WARNING ]
[WARNING]: Deprecated function used (wait_for_keypress)
[+] Users, Groups and Authentication
------------------------------------
[WARNING]: Deprecated function used (report)
[2C- Starting password check for users...[21C
[WARNING]: Deprecated function used (logtext)
[WARNING]: Deprecated function used (wait_for_keypress)
[+] Binary integrity
------------------------------------
[WARNING]: Deprecated function used (report)
[2C- Starting binary RPATH check...[27C
[WARNING]: Deprecated function used (logtext)
[4CRPATH "//usr/lib64/bash" on /usr/bin/bash is not allowed[1C [ WARNING ]
[WARNING]: Deprecated function used (wait_for_keypress)
[+] File systems
------------------------------------
[WARNING]: Test BINARY-1000 had a long execution: 85.246075 seconds
[2C- Starting look-up of symlinks in /tmp...[18C
[WARNING]: Deprecated function used (logtext)
[WARNING]: Deprecated function used (wait_for_keypress)
[+] File systems
------------------------------------
[2C- Starting file permissions check for world-writeable files...[0C
[WARNING]: Deprecated function used (logtext)
[4C/tmp is world-writeable[34C [ WARNING ]
[WARNING]: Deprecated function used (wait_for_keypress)
[+] Memory and processes
------------------------------------
[2C- Starting look-up of 'nobody' processes...[16C
[WARNING]: Deprecated function used (logtext)
[WARNING]: Deprecated function used (wait_for_keypress)
[+] Networking
------------------------------------
[2C- Starting verifying open network ports (22 25 80 111 443)...[0C
[WARNING]: Deprecated function used (logtext)
[WARNING]: Deprecated function used (logtext)
[4COpen port 631 not allowed[32C [ WARNING ]
[WARNING]: Deprecated function used (wait_for_keypress)
[+] Custom tests
------------------------------------
[2C- Running custom tests... [33C [ NONE ]
[+] Plugins (phase 2)
------------------------------------
================================================================================
-[ Lynis 3.0.3 Results ]-
Warnings (2):
----------------------------
! Couldn't find 2 responsive nameservers [NETW-2705]
https://cisofy.com/lynis/controls/NETW-2705/
! iptables module(s) loaded, but no rules active [FIRE-4512]
https://cisofy.com/lynis/controls/FIRE-4512/
Suggestions (42):
----------------------------
* Set a password on GRUB boot loader to prevent altering boot configuration (e.g. boot in single user mode without password) [BOOT-5122]
https://cisofy.com/lynis/controls/BOOT-5122/
* Consider hardening system services [BOOT-5264]
- Details : Run '/usr/bin/systemd-analyze security SERVICE' for each service
https://cisofy.com/lynis/controls/BOOT-5264/
* If not required, consider explicit disabling of core dump in /etc/security/limits.conf file [KRNL-5820]
https://cisofy.com/lynis/controls/KRNL-5820/
* Check PAM configuration, add rounds if applicable and expire passwords to encrypt with new values [AUTH-9229]
https://cisofy.com/lynis/controls/AUTH-9229/
* When possible set expire dates for all password protected accounts [AUTH-9282]
https://cisofy.com/lynis/controls/AUTH-9282/
* Consider disabling unused kernel modules [FILE-6430]
- Details : /etc/modprobe.d/blacklist.conf
- Solution : Add 'install MODULENAME /bin/true' (without quotes)
https://cisofy.com/lynis/controls/FILE-6430/
* Disable drivers like USB storage when not used, to prevent unauthorized storage or data theft [USB-1000]
https://cisofy.com/lynis/controls/USB-1000/
* Disable drivers like firewire storage when not used, to prevent unauthorized storage or data theft [STRG-1846]
https://cisofy.com/lynis/controls/STRG-1846/
* Check DNS configuration for the dns domain name [NAME-4028]
https://cisofy.com/lynis/controls/NAME-4028/
* Add the IP name and FQDN to /etc/hosts for proper name resolving [NAME-4404]
https://cisofy.com/lynis/controls/NAME-4404/
* Check your resolv.conf file and fill in a backup nameserver if possible [NETW-2705]
https://cisofy.com/lynis/controls/NETW-2705/
* Determine if protocol 'dccp' is really needed on this system [NETW-3200]
https://cisofy.com/lynis/controls/NETW-3200/
* Determine if protocol 'sctp' is really needed on this system [NETW-3200]
https://cisofy.com/lynis/controls/NETW-3200/
* Determine if protocol 'rds' is really needed on this system [NETW-3200]
https://cisofy.com/lynis/controls/NETW-3200/
* Determine if protocol 'tipc' is really needed on this system [NETW-3200]
https://cisofy.com/lynis/controls/NETW-3200/
* Check CUPS configuration if it really needs to listen on the network [PRNT-2308]
https://cisofy.com/lynis/controls/PRNT-2308/
* Install Apache mod_evasive to guard webserver against DoS/brute force attempts [HTTP-6640]
https://cisofy.com/lynis/controls/HTTP-6640/
* Install Apache modsecurity to guard webserver against web application attacks [HTTP-6643]
https://cisofy.com/lynis/controls/HTTP-6643/
* Consider hardening SSH configuration [SSH-7408]
- Details : AllowTcpForwarding (set YES to NO)
https://cisofy.com/lynis/controls/SSH-7408/
* Consider hardening SSH configuration [SSH-7408]
- Details : ClientAliveCountMax (set 3 to 2)
https://cisofy.com/lynis/controls/SSH-7408/
* Consider hardening SSH configuration [SSH-7408]
- Details : Compression (set YES to NO)
https://cisofy.com/lynis/controls/SSH-7408/
* Consider hardening SSH configuration [SSH-7408]
- Details : LogLevel (set INFO to VERBOSE)
https://cisofy.com/lynis/controls/SSH-7408/
* Consider hardening SSH configuration [SSH-7408]
- Details : MaxAuthTries (set 6 to 3)
https://cisofy.com/lynis/controls/SSH-7408/
* Consider hardening SSH configuration [SSH-7408]
- Details : MaxSessions (set 10 to 2)
https://cisofy.com/lynis/controls/SSH-7408/
* Consider hardening SSH configuration [SSH-7408]
- Details : PermitRootLogin (set YES to (FORCED-COMMANDS-ONLY|NO|PROHIBIT-PASSWORD|WITHOUT-PASSWORD))
https://cisofy.com/lynis/controls/SSH-7408/
* Consider hardening SSH configuration [SSH-7408]
- Details : Port (set 22 to )
https://cisofy.com/lynis/controls/SSH-7408/
* Consider hardening SSH configuration [SSH-7408]
- Details : TCPKeepAlive (set YES to NO)
https://cisofy.com/lynis/controls/SSH-7408/
* Consider hardening SSH configuration [SSH-7408]
- Details : X11Forwarding (set YES to NO)
https://cisofy.com/lynis/controls/SSH-7408/
* Consider hardening SSH configuration [SSH-7408]
- Details : AllowAgentForwarding (set YES to NO)
https://cisofy.com/lynis/controls/SSH-7408/
* Enable logging to an external logging host for archiving purposes and additional protection [LOGG-2154]
https://cisofy.com/lynis/controls/LOGG-2154/
* Check what deleted files are still in use and why. [LOGG-2190]
https://cisofy.com/lynis/controls/LOGG-2190/
* Add a legal banner to /etc/issue, to warn unauthorized users [BANN-7126]
https://cisofy.com/lynis/controls/BANN-7126/
* Add legal banner to /etc/issue.net, to warn unauthorized users [BANN-7130]
https://cisofy.com/lynis/controls/BANN-7130/
* Enable process accounting [ACCT-9622]
https://cisofy.com/lynis/controls/ACCT-9622/
* Enable sysstat to collect accounting (no results) [ACCT-9626]
https://cisofy.com/lynis/controls/ACCT-9626/
* Install a file integrity tool to monitor changes to critical and sensitive files [FINT-4350]
https://cisofy.com/lynis/controls/FINT-4350/
* Determine if automation tools are present for system management [TOOL-5002]
https://cisofy.com/lynis/controls/TOOL-5002/
* Consider restricting file permissions [FILE-7524]
- Details : See screen output or log file
- Solution : Use chmod to change file permissions
https://cisofy.com/lynis/controls/FILE-7524/
* Double check the permissions of home directories as some might be not strict enough. [HOME-9304]
https://cisofy.com/lynis/controls/HOME-9304/
* One or more sysctl values differ from the scan profile and could be tweaked [KRNL-6000]
- Solution : Change sysctl value or disable test (skip-test=KRNL-6000:<sysctl-key>)
https://cisofy.com/lynis/controls/KRNL-6000/
* Harden compilers like restricting access to root user only [HRDN-7222]
https://cisofy.com/lynis/controls/HRDN-7222/
* Harden the system by installing at least one malware scanner, to perform periodic file system scans [HRDN-7230]
- Solution : Install a tool like rkhunter, chkrootkit, OSSEC
https://cisofy.com/lynis/controls/HRDN-7230/
Follow-up:
----------------------------
- Show details of a test (lynis show details TEST-ID)
- Check the logfile for all details (less /var/log/lynis.log)
- Read security controls texts (https://cisofy.com)
- Use --upload to upload data to central system (Lynis Enterprise users)
================================================================================
Lynis security scan details:
Hardening index : 92 [################## ]
Tests performed : 262
Plugins enabled : 0
Components:
- Firewall [V]
- Malware scanner [X]
Scan mode:
Normal [V] Forensics [ ] Integration [ ] Pentest [ ]
Lynis modules:
- Compliance status [?]
- Security audit [V]
- Vulnerability scan [V]
Files:
- Test and debug information : /var/log/lynis.log
- Report data : /var/log/lynis-report.dat
================================================================================
Lynis 3.0.3
Auditing, system hardening, and compliance for UNIX-based systems
(Linux, macOS, BSD, and others)
2007-2021, CISOfy - https://cisofy.com/lynis/
Enterprise support available (compliance, plugins, interface and tools)
================================================================================
[TIP]: Enhance Lynis audits by adding your settings to custom.prf (see /etc/lynis/default.prf for all settings)