Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-03-30Fix PKGS-7301 message nitBrian Ginsbach
The comment is correct. It is FreeBSD pkg not NetBSD pkg.
2020-03-20Updated date/yearMichael Boelen
2020-03-19[PKGS-7388] Only perform test when all conditions are correctMichael Boelen
2020-03-17[PKGS-7388] only perform check for Debian, Mint, UbuntuMichael Boelen
2020-02-24Update tests_ports_packagesSkactor
Incorrect constant name spelling
2019-12-18Code style improvement: quote argumentMichael Boelen
2019-12-17[PKGS-7410] Use multiple package managers when they are available on system. ↵Michael Boelen
Also added support for Zypper for this test
2019-10-20KRNL-5840: add detection for proxmox and raspi kernelKristian Schuster
2019-10-08Additional check to ensure pacman package manager is used instead of pacman gameMichael Boelen
2019-09-21Fixed a typoMichael Boelen
2019-07-16Use -n instead of ! -zMichael Boelen
2019-07-10Use exit code instead of ITEM_FOUND valueMichael Boelen
2019-05-16Move state recording to report sectionMichael Boelen
2019-04-20[PKGS-7386] Removed suggestion as a warning is already displayed when ↵Michael Boelen
vulnerable packages were discovered
2019-04-17[PKGS-7392] - Skip test for Zypper-based systemsMichael Boelen
2019-04-17Non-interactive mode for zypperMichael Boelen
2019-04-15[PKGS-7328/PKGS-7330] added non-interactive global optionMichael Boelen
2019-03-30[PKGS-7420] corrected typoMichael Boelen
2019-03-30[PKGS-7420] limit test to specific OS, add dnf-automatic support, extend loggingMichael Boelen
2019-03-29[PKGS-7420] Detect toolkit to automatically download and apply upgradesMichael Boelen
2019-03-29[PKGS-7410] add support for DPKG-based systems to gather installed kernel ↵Michael Boelen
packages
2019-03-07[PKGS-7388] Fix false positive warning on missing security archive (#651)silentcreek
Currently the check for the security archive in Debian/Ubuntu fails, if the archive is not hosted on security.{debian,ubuntu}.org and the URL does have trailing slash, such as this: deb http://deb.debian.org/debian-security/ stretch/updates main Change the regular expression to allow for a trailing slash in the URL when filtering the package sources lists. Signed-off-by: Timo Sigurdsson <public_timo.s@silentcreek.de>
2019-01-31Changed year and preparing for new releaseMichael Boelen
2018-10-05Update tests_ports_packages (#586)Jesus Christian Cruz Acono
change " " <- space for [[:blank:]] (to clean all pausible spaces)
2018-09-17[PKGS-7322] Updated solution textMichael Boelen
2018-02-19[PKGS-7384] changes to detect yum-utils package and related toolingMichael Boelen
2018-01-11Changed yearMichael Boelen
2017-11-08fixing "Repository listed more than once" issue (#449) (#490)wschaft
2017-09-04Do not limit debsums to Debian systems (#457)Tom Reynolds
Debsums is supported on Debian and other systems as per GitHub issue #446. Undo commit d1969001c6df84ea58c7913140a7a03f6b2486a1.
2017-08-19[PKGS-7380] Fix NetBSD packages vulnerabilities file name (#443)Brian Ginsbach
* [PKGS-7380] Fix NetBSD packages vulnerabilities file name * OS Detection: Add early Mac OS X releases
2017-08-19Preparations for APTMichael Boelen
2017-07-10[PKGS-7370] only use debsums test for Debian systemsMichael Boelen
2017-06-14Fix pkg audit option (#403)Jose Luis Duran
-F, --fetch Fetch the database before checking. [ci skip]
2017-04-30[bulk change] cleaning up, code enhancements, initialization of variables, ↵Michael Boelen
and new tests
2017-04-23Code enhancementsMichael Boelen
2017-03-17Fixed detection of security repositories (#370)Yaisel Hurtado
2017-03-13Added missing pipeMichael Boelen
2017-03-13Added more loggingMichael Boelen
2017-03-13[PKGS-7387] check all repositories for usage of gpg signingMichael Boelen
2017-03-12CleanupMichael Boelen
2017-03-09Improve message2.4.5Michael Boelen
2017-03-09[PKGS-7381] Enhanced FreeBSD pkg audit testingMichael Boelen
2017-03-08A bunch of Solaris compatibility tweaks (#367)hlein
* Work around Solaris' /bin/sh not being POSIX. If /usr/xpg4/bin/sh is present, we are (definitely?) on Solaris or a derivative, and /bin/sh cannot be trusted to support POSIX, but /usr/xpg4/bin/sh can be. Exec it right away. * Work around Solaris 'which' command oddity. Solaris' (at least) 'which' command outputs not-found errors to STDOUT instead of STDERR. This makes "did we get any output from which" checks insufficient; piping to grep -v the "no foo in ..." message should work. Note that this patch set includes all such uses of which that I could find, including ones that should never be reached on Solaris (i.e. only executed on some other OS) just for consistency. * Improved alternate-sh exec to avoid looping. * Solaris' /usr/ucb/echo supports -n. * Check for the best hash type that openssl supports. When using openssl to generate hashes, do not assume it supports sha256; try that, then sha1, then give up and use md5. * Solaris does not support sed -i; use a tempfile. * Use the full path for modinfo. When running as non-root, /usr/sbin/ might not be in PATH. include/tests_accounting already calls modinfo by full path, but include/tests_kernel did not. * Solaris find does not support -maxdepth. This mirrors the logic already in tests_homedirs. * Use PSBINARY instead of ps. * Work around Solaris' date not supporting +%s. Printing nawk's srand value is a bizarre but apparently once popular workaround for there being no normal userland command to print UNIX epoch seconds. A perl one-liner is the other common approach, but nawk may be more reliably present on Solaris than perl. * Revert to using sha1 for HOSTID. * Whitespace cleanup for openssl hash tests.
2017-03-07Lots of cleanups (#366)hlein
* Description fix: SafePerms works on files not dirs. All uses of SafePerms are on files (and indeed, it would reject directories which would have +x set). * Lots of whitespace cleanups. Enforce everywhere(?) the same indentations for if/fi blocks. The standard for the Lynis codebase is 4 spaces. But sometimes it's 1, sometimes 3, sometimes 8. These patches standardize all(?) if blocks but _not_ else's (which are usually indented 2, but sometimes zero); I was too lazy to identify those (see below). This diff is giant, but should not change code behavior at all; diff -w shows no changes apart from whitespace. FWIW I identified instances to check by using: perl -ne 'if ($oldfile ne $ARGV) { $.=1; $oldfile=$ARGV; }; chomp; if ($spaces) { next unless /^( *)([^ ]+)/; $newspaces=length($1); $firsttok = $2; next unless defined($firsttok); $offset = ($firsttok eq "elif" ? 0 : 4); if ($newspaces != $spaces + $offset) { print "$ARGV:$ifline\n$ARGV:$.:$_\n\n" }; $ifline=""; $spaces=""; } if (/^( *)if (?!.*[; ]fi)/) { $ifline = "$.:$_"; $spaces = length($1); }' $(find . -type f -print0 | xargs -0 file | egrep shell | cut -d: -f1) Which produced output like: ./extras/build-lynis.sh:217: if [ ${VERSION_IN_SPECFILE} = "" -o ! "${VERSION_IN_SPECFILE}" = "${LYNIS_VERSION}" ]; then ./extras/build-lynis.sh:218: echo "[X] Version in specfile is outdated" ./plugins/plugin_pam_phase1:69: if [ -d ${PAM_DIRECTORY} ]; then ./plugins/plugin_pam_phase1:70: LogText "Result: /etc/pam.d exists" ...There's probably formal shellscript-beautification tools that I'm oblivious about. * More whitespace standardization. * Fix a syntax error. This looks like an if [ foo -o bar ]; was converted to if .. elif, but incompletely. * Add whitespace before closing ]. Without it, the shell thinks the ] is part of the last string, and emits warnings like: .../lynis/include/tests_authentication: line 1028: [: missing `]'
2017-03-06Various cleanups (#363)hlein
* Typo fix. * Style change: always use $(), never ``. The Lynis code already mostly used $(), but backticks were sprinkled around. Converted all of them. * Lots of minor spelling/typo fixes. FWIW these were found with: find . -type f -print0 | xargs -0 cat | aspell list | sort -u | egrep '^[a-z]+$' | less And then reviewing the list to pick out things that looked like misspelled words as opposed to variables, etc., and then manual inspection of context to determine the intention.
2017-02-09Changed date and preparing for release2.4.1Michael Boelen
2016-10-15Enhance pkg support on FreeBSDMichael Boelen
2016-10-15Corrected error redirectionMichael Boelen
2016-10-15Use rootdir and proper error redirectionMichael Boelen
2016-10-15[PKGS-7381] bugfix at detection of pkg toolMichael Boelen