Lynis  is a  security auditing tool  for Unix and Linux based systems. It performs in-depth security scans, with almost no configuration, T...

Lynis – Security Auditing Tool for Unix/Linux

Wednesday, May 06, 2015 Sensei Fedon 0 Comments

Lynis is a security auditing tool for Unix and Linux based systems. It performs in-depth security scans, with almost no configuration, This tool commonly used by network administrator/system admin, security professionals and pentester/auditor to evaluate linux/unix system.
Requirements: Shell and basic utilities
Permissions: Root permissions or normal user
Operating System Supported:
  • AIX
  • FreeBSD
  • HP-UX
  • Linux
  • Mac OS
  • NetBSD
  • OpenBSD
  • Solaris


The new version of Lynis  Security Auditing Tool was already release: Lynis 2.1.0
Changelog:
1. Installation via direct download
Create a Directory
2. Download Lynis here: https://cisofy.com/download/lynis/
3. Unpack the tarball
4. After unpacking, it is time to run Lynis for the first time.
Lynis can run without any preconfiguration. Configuration and fine-tuning is possible though and will be covered in later sections. For now we will run a basic scan:
Common parameters:
Below the most commonly used parameter when running Lynis.

ParameterAbbreviatedDescription
–auditor “Given name Surname”Assign an auditor name to the audit (report)
–checkall-cStart the check
–check-updateCheck if Lynis is up-to-date
–cronjobRun Lynis as cronjob (includes -c -Q)
–help-hShows valid parameters
–manpageView man page
–nocolorsDo not use any colors
–pentestPerform a penetration test scan (non-privileged)
–quick-QDon’t wait for user input, except on errors
–quietOnly show warnings (includes –quick, but doesn’t wait)
–reverse-colorsUse a different color scheme for lighter backgrounds
–version-VCheck program version (and quit)
Tips
  • If Lynis is not installed as package (with included man page), use –man or nroff -man ./lynis.8
  • For systems where the shell background is light, use –nocolors or –reverse-colors
  • Use –dump-options to see all available parameters of Lynis

0 comments: