Commit Graph

19 Commits

Author SHA1 Message Date
Peter Müller
310ad69dc1 lynis: Update to 3.0.8
Full changelog as retrived from https://cisofy.com/changelog/lynis/#308:

- MALW-3274 - Detect McAfee VirusScan Command Line Scanner
- PKGS-7346 Check Alpine Package Keeper (apk)
- PKGS-7395 Check Alpine upgradeable packages
- EOL for Alpine Linux 3.14 and 3.15

- AUTH-9408 - Check for pam_faillock as well (replacement for pam_tally2)
- FILE-7524 - Test enhanced to support symlinks
- HTTP-6643 - Support ModSecurity version 2 and 3
- KRNL-5788 - Only run relevant tests and improved logging
- KRNL-5820 - Additional path for security/limits.conf
- KRNL-5830 - Check for /var/run/needs_restarting (Slackware)
- KRNL-5830 - Add a presence check for /boot/vmlinuz
- PRNT-2308 - Bugfix that prevented test from storing values correctly
- Extended location of PAM files for AARCH64
- Some messages in log improved

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-06-13 20:46:58 +00:00
Peter Müller
420e8a85d0 lynis: Update to 3.0.7
Full changelog as retrieved from https://cisofy.com/changelog/lynis/#307:

- MALW-3290 - Show status of malware components
- OS detection for RHEL 6 and Funtoo Linux
- Added service manager openrc

- DBS-1804 - Added alias for MariaDB
- FINT-4316 - Support for newer Ubuntu versions
- MALW-3280 - Added Trend Micro malware agent
- NETW-3200 - Allow unknown number of spaces in modprobe blacklists
- PKGS-7320 - Support for Garuda Linux and arch-audit
- Several improvements for busybox shell
- Russian translation of Lynis extended

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>
2022-04-23 14:27:38 +00:00
Peter Müller
9a7e4d8506 Switch checksums from MD5 to BLAKE2
Historically, the MD5 checksums in our LFS files serve as a protection
against broken downloads, or accidentally corrupted source files.

While the sources are nowadays downloaded via HTTPS, it make sense to
beef up integrity protection for them, since transparently intercepting
TLS is believed to be feasible for more powerful actors, and the state
of the public PKI ecosystem is clearly not helping.

Therefore, this patch switches from MD5 to BLAKE2, updating all LFS
files as well as make.sh to deal with this checksum algorithm. BLAKE2 is
notably faster (and more secure) than SHA2, so the performance penalty
introduced by this patch is negligible, if noticeable at all.

In preparation of this patch, the toolchain files currently used have
been supplied with BLAKE2 checksums as well on
https://source.ipfire.org/.

Cc: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Acked-by: Michael Tremer <michael.tremeripfire.org>
2022-04-02 14:19:25 +00:00
Robin Roevens
f15707c78c buildprocess: Add extra metadata to pak lfs files
* Add a Summary and Services field to all pak lfs files
* Replace occurances of INSTALL_INITSCRIPT with new INSTALL_INITSCRIPTS
  macro in all pak lfs files.

Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
2022-02-11 15:13:15 +00:00
Adolf Belka
b2bf01ef97 lynis: Update to version 3.0.6
- Update from 3.0.3 to 3.0.6
- Communication had with cisofy about the website and github versions of lynis and the
   lack of a signature file on github. Following response received from Michael Boelen
   of cisofy.
   "GitHub releases are different as they (the tarballs) are created by GitHub itself. So
    yes, the hashes will differ. In fact, the contents of the files will be different as
    well. These files are not signed by GitHub or us. We consider GitHub the work version.
    When we release a new version, we tag them on GitHub with a version as well. For the
    stable releases, use the version on the website."
- Based on the above the version used in this build is from the website. The signature
   file for version 3.0.6 on the website is now available.
- The lynis-3.0.6.tar.gz in the IPFire Source location will probably need to be removed
   as it is from the Github location and running ./make.sh uploadsrc will probably not
   upload the correct version because the filenames are the same. The tarball used in this
   patch was from https://cisofy.com/downloads/lynis/
- The lfs file modified to take account of the tarball expanding to just lynis without
   any version number. Also the rm -rf line has been modified due to the file differences
   with the previous Github versions.
- Update rootfile to take account of the plugin_pam_phase1 and plugin_systemd_phase1
   plugins not being included in the cisofy website version of the tarball. If these two
   plugins that are available for community users are needed then they have to be
   downloaded separately from cisofy via an email subscription to the notification test.
   All other plugins are only available for paying customers.
- Changelog
   Version 3.0.6 (2021-07-22)
    ### Added
     - OS detection: Artix Linux, macOS Monterey, NethServer, openSUSE MicroOS
     - Check for outdated translation files
    ### Changed
     - DBS-1826 - Check if PostgreSQL is being used
     - DBS-1828 - Test multiple PostgreSQL configuration file(s)
     - KRNL-5830 - Sort kernels by version instead of modification date
     - PKGS-7410 - Don't show exception for systems using LXC
     - GetHostID function: fallback options added for Linux systems
     - Fix: macOS Big Sur detection
     - Fix: show correct text when egrep is missing
     - Fix: variable name for PostgreSQL
     - German and Spanish translations extended
   Version 3.0.5 (2021-07-02)
    ### Added
     - OS detection of Arch Linux 32, BunsenLabs Linux, and Rocky Linux
     - CRYP-8006 - Check MemoryOverwriteRequest bit to protect against cold-boot attacks (Linux)
    ### Changed
     - ACCT-9622 - Corrected typo
     - HRDN-7231 - When calling wc, use the short -l flag instead of --lines (Busybox compatibility)
     - PKGS-7320 - extended to Arch Linux 32
     - Generation of host identifiers (hostid/hostid2) extended
     - Linux host identifiers are now using ip as preferred input source
     - Improved logging in several areas
   Version 3.0.4 (2021-05-11)
    ### Added
     - ACCT-9670 - Detection of cmd tooling
     - ACCT-9672 - Test cmd configuration file
     - BOOT-5140 - Check for ELILO boot loader presence
     - OS detection of AlmaLinux, Garuda Linux, Manjaro (ARM), and others
    ### Changed
     - BOOT-5104 - Add service manager detection support for runit
     - FILE-6430 - Report suggestion only when at least one kernel module is not in the blacklist
     - FIRE-4540 - Corrected nftables empy ruleset test
     - LOGG-2138 - Do not check for klogd when metalog is being used
     - TIME-3185 - Improved support for Debian stretch
     - Corrected issue when Lynis is not executed directly from lynis directory

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
2022-01-04 18:27:09 +01:00
Arne Fitzenreiter
55cb5e9324 Revert "lynis: Update to version 3.0.6"
This reverts commit d78fd31bb3.
downloads gives every time a different checksum
lookls like packetstorm never send the same file.

[root@helena cache]# wget https://packetstormsecurity.com/files/download/163629/lynis-3.0.6.tar.gz
--2021-09-05 18:29:39--  https://packetstormsecurity.com/files/download/163629/lynis-3.0.6.tar.gz
Resolving packetstormsecurity.com... 198.84.60.198
Connecting to packetstormsecurity.com|198.84.60.198|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'lynis-3.0.6.tar.gz.1'

lynis-3.0.6.tar.gz.     [ <=>                ]  20.27K  --.-KB/s    in 0s

2021-09-05 18:29:40 (164 MB/s) - 'lynis-3.0.6.tar.gz.1' saved [20753]

[root@helena cache]# wget https://packetstormsecurity.com/files/download/163629/lynis-3.0.6.tar.gz
--2021-09-05 18:29:43--  https://packetstormsecurity.com/files/download/163629/lynis-3.0.6.tar.gz
Resolving packetstormsecurity.com... 198.84.60.198
Connecting to packetstormsecurity.com|198.84.60.198|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'lynis-3.0.6.tar.gz.2'

lynis-3.0.6.tar.gz.     [ <=>                ]  20.27K  --.-KB/s    in 0s

2021-09-05 18:29:44 (177 MB/s) - 'lynis-3.0.6.tar.gz.2' saved [20753]

[root@helena cache]# md5sum lynis-3.0.6.tar.gz*
a13bad1e6ef81708a86f65d0f317eef6  lynis-3.0.6.tar.gz
841d1f2004220f78a13a702835c906fc  lynis-3.0.6.tar.gz.1
3d6435e94955da9f14d824a1618038c1  lynis-3.0.6.tar.gz.2
[root@helena cache]#
2021-09-05 18:32:50 +00:00
Adolf Belka
d78fd31bb3 lynis: Update to version 3.0.6
- Update from 3.0.3 to 3.0.6
- Update of rootfile carried out
- Changelog
   ## Lynis 3.0.6 (2021-07-22)
     ### Added
       - OS detection: Artix Linux, macOS Monterey, NethServer, openSUSE MicroOS
       - Check for outdated translation files
     ### Changed
       - DBS-1826 - Check if PostgreSQL is being used
       - DBS-1828 - Test multiple PostgreSQL configuration file(s)
       - KRNL-5830 - Sort kernels by version instead of modification date
       - PKGS-7410 - Don't show exception for systems using LXC
       - GetHostID function: fallback options added for Linux systems
       - Fix: macOS Big Sur detection
       - Fix: show correct text when egrep is missing
       - Fix: variable name for PostgreSQL
       - German and Spanish translations extended
   ## Lynis 3.0.5 (2021-07-02)
     ### Added
       - OS detection of Arch Linux 32, BunsenLabs Linux, and Rocky Linux
       - CRYP-8006 - Check MemoryOverwriteRequest bit to protect against cold-boot attacks (Linux)
     ### Changed
       - ACCT-9622 - Corrected typo
       - HRDN-7231 - When calling wc, use the short -l flag instead of --lines (Busybox compatibility)
       - PKGS-7320 - extended to Arch Linux 32
       - Generation of host identifiers (hostid/hostid2) extended
       - Linux host identifiers are now using ip as preferred input source
       - Improved logging in several areas
   ## Lynis 3.0.4 (2021-05-11)
     ### Added
       - ACCT-9670 - Detection of cmd tooling
       - ACCT-9672 - Test cmd configuration file
       - BOOT-5140 - Check for ELILO boot loader presence
       - OS detection of AlmaLinux, Garuda Linux, Manjaro (ARM), and others
     ### Changed
       - BOOT-5104 - Add service manager detection support for runit
       - FILE-6430 - Report suggestion only when at least one kernel module is not in the blacklist
       - FIRE-4540 - Corrected nftables empy ruleset test
       - LOGG-2138 - Do not check for klogd when metalog is being used
       - TIME-3185 - Improved support for Debian stretch
       - Corrected issue when Lynis is not executed directly from lynis directory

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-05 17:45:47 +00:00
Peter Müller
f1f2a8dbef lynis: update to 3.0.3
The changelog of lynis 3.0.3 is available at
https://github.com/CISOfy/lynis/releases/tag/3.0.3; all changes since
lynis 3.0.1 can be inspected at https://github.com/CISOfy/lynis/releases.

lynis 3.0.2 adds detection for IPFire, so we can hope to have those
"unknown operating system" messages omitted in future. :-)

Minor adjustments to LFS and rootfile were necessary to purge unused
CI/CD stuff as well as some markdown files (licence, code of conduct,
etc. pp.) from the extracted archive.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-02-02 10:56:19 +00:00
Peter Müller
1cd27f38e6 lynis: update to 3.0.1
Full changelog obtained from: https://cisofy.com/changelog/lynis/#301

- Detection of Alpine Linux
- Detection of CloudLinux
- Detection of Kali Linux
- Detection of Linux Mint
- Detection of macOS Big Sur (11.0)
- Detection of Pop!_OS
- Detection of PHP 7.4
- Malware detection tool: Microsoft Defender ATP
- New flag: --slow-warning to allow tests more time before showing a
warning
- Test TIME-3185 to check systemd-timesyncd synchronized time
- rsh host file permissions

- AUTH-9229 - Added option for LOCKED accounts and bugfix for older bash
versions
- BOOT-5122 - Presence check for grub.d added
- CRYP-7902 - Added support for certificates in DER format
- CRYP-7931 - Added data to report
- CRYP-7931 - Redirect errors (e.g. when swap is not encrypted)
- FILE-6430 - Don't grep nonexistant modprobe.d files
- FIRE-4535 - Set initial firewall state
- INSE-8312 - Corrected text on screen
- KRNL-5728 - Handle zipped kernel configuration correctly
- KRNL-5830 - Improved version detection for non-symlinked kernel
- MALW-3280 - Extended detection of BitDefender
- TIME-3104 - Find more time synchronization commands
- TIME-3182 - Corrected detection of time peers
- Fix: hostid generation routine would sometimes show too short IDs
- Fix: language detection
- Generic improvements for macOS
- German translation updated
- End-of-life database updated
- Several minor code enhancements

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-05 23:33:14 +00:00
Erik Kapfer
b789edf973 lynis: Update to version 3.0.0
Several Fixes (incl. CVE-2019-13033 and CVE-2020-13882) and features has been added since the last version 2.6.4 .
For a full overview of the changes take a look in here --> https://cisofy.com/changelog/lynis/ .

Signed-off-by: Erik Kapfer <ummeegge@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-02 14:59:09 +00:00
Michael Tremer
2dc2a27803 lfs: Drop quotes in DEPS variable
Not sure why this has ever been there. This simply makes it
nicer to read and edit because we can have line-breaks now.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-03-24 08:57:27 +00:00
Peter Müller
eee037b890 update disclaimer in LFS files
Most of these files still used old dates and/or domain names for contact
mail addresses. This is now replaced by an up-to-date copyright line.

Just some housekeeping... :-)

Signed-off-by: Peter Müller <peter.mueller@link38.eu>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-09-10 19:20:36 +01:00
Peter Müller
352796cad7 lynis: update to 2.6.4
Signed-off-by: Peter Müller <peter.mueller@link38.eu>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-01 12:36:16 +01:00
Erik Kapfer
5ab875af71 lynis: Update to version 1.6.4.
Fix #10715
2015-01-13 11:09:05 +01:00
Christian Schmidt
b7202d9446 Upgdated lynis to current stable. 2010-03-10 22:30:21 +01:00
maniacikarus
3bd0611be6 Upgraded lynis 2009-05-30 01:42:53 +02:00
maniacikarus
208005cf33 Upgraded lynis to current stable 2009-03-04 07:08:18 +01:00
Arne Fitzenreiter
81bac43b4c Fix lynis lfs, fix ipfireseeder rootfile 2008-11-01 21:13:33 +01:00
Maniacikarus
649b209c93 Fixed some rootfiles and added new addon lynis 2008-11-01 14:49:09 +01:00