lynis README

The project's README from github.com/CISOfy/lynis. As one markdown file: README.md.

Linux Security Expert badge Build Status CII Best Practices Documentation

Do you like this software? Star the project and become a stargazer.


lynis

Lynis - Security auditing and hardening tool, for UNIX-based systems.

Lynis is a security auditing tool for systems based on UNIX like Linux, macOS, BSD, and others. It performs an in-depth security scan and runs on the system itself. The primary goal is to test security defenses and provide tips for further system hardening. It will also scan for general system information, vulnerable software packages, and possible configuration issues. Lynis was commonly used by system administrators and auditors to assess the security defenses of their systems. Besides the "blue team," nowadays penetration testers also have Lynis in their toolkit.

We believe software should be simple, updated on a regular basis, and open. You should be able to trust, understand, and have the option to change the software. Many agree with us, as the software is being used by thousands every day to protect their systems.

Goals

The main goals of Lynis include:

The software (also) assists with:

Audience

Typical users of the software:

Installation

There are multiple options available to install Lynis.

Software package

For systems running Linux, BSD, and macOS, there is typically a package available. This is the preferred method of obtaining Lynis, as it is quick to install and easy to update. The Lynis project itself also provides packages in RPM or DEB format suitable for systems systems running: CentOS, Debian, Fedora, OEL, openSUSE, RHEL, Ubuntu, and others.

Some distributions may also have Lynis in their software repository: Repology

Note: Some distributions don't provide an up-to-date version. In that case it is better to use the CISOfy software repository, download the tarball from the website, or download the latest GitHub release.

Git

The very latest developments can be obtained via git.

  1. Clone or download the project files (no compilation nor installation is required) ;

     git clone https://github.com/CISOfy/lynis
    
  2. Execute:

     cd lynis && ./lynis audit system
    

If you want to run the software as root (or sudo), we suggest changing the ownership of the files. Use chown -R 0:0 to recursively alter the owner and group and set it to user ID 0 (root). Otherwise Lynis will warn you about the file permissions. After all, you are executing files owned by a non-privileged user.

Documentation

Have a look at the Lynis documentation to learn more about the configuration and usage of Lynis. When you are interested in reading more articles about Linux security, then check out the Linux security blog named Linux Audit. For some suggestions by Lynis, this is also the source used to learn more about specific findings.

Customization

If you want to create your own tests, have a look at the Lynis software development kit.

Security

We participate in the CII best practices badge program of the Linux Foundation.

Media and Awards

Lynis is collecting some awards along the way and we are proud of that.

Contribute

We love contributors.

Do you have something to share? Want to help out with translating Lynis into your own language? Create an issue or pull request on GitHub, or send us an e-mail: [email protected].

More details can be found in the Contributors Guide.

You can also simply contribute to the project by starring the project and show your appreciation that way.

Thanks!

License

GPLv3

Enterprise version for companies

This software component is also part of an enterprise solution and focuses on companies. Same quality, yet with more functionality.

Focus areas include compliance (PCI DSS, HIPAA, ISO27001, and others). The Enterprise version comes with:

lynis (CISOfy/lynis)

Searching Database…

16.5K ·GitHub
这是什么?Lynis 是一款面向 Linux、macOS、BSD 及其他类 Unix 系统的安全审计与加固工具。它会扫描运行所在的主机,查找存在漏洞的软件、错误配置和薄弱设置,并给出加固建议;同时也能协助进行合规性测试(HIPAA、ISO27001、PCI DSS)。
这是后台代理,还是需要我手动运行的脚本?它是无代理的:一个 shell 脚本,你克隆或下载后按需运行,不需要守护进程,也不需要编译或安装。
我该怎么让它跑起来?可以从操作系统的软件包仓库安装(如 CentOS、Debian、Fedora、Ubuntu 等),也可以用 git 获取最新版本,然后直接在目录中运行:'cd lynis && ./lynis audit system'。
我需要以 root 身份运行吗?并非严格要求,但以非 root 用户运行会限制 Lynis 能执行的检查项,并且会对文件权限发出警告。如果要以 root 身份运行,需要先将文件的属主改为 root(chown)。
Lynis 会自动修复它发现的问题吗?不会,它只负责审计和报告——它会测试你的安全防护,并提供加固建议,但不会替你修改系统配置。
Lynis 完全免费吗?还有付费版本吗?该工具本身是遵循 GPLv3 协议的开源软件。CISOfy 另外提供企业版,面向需要 Web 界面、仪表板/报表、加固代码片段和商业支持的公司。
它可以帮助测试哪些合规标准?除了常规的漏洞检测外,Lynis 还能协助进行 HIPAA、ISO27001、PCI DSS 和 GDPR 等标准的合规性测试。
我能编写自己的自定义检查吗?可以,Lynis 提供了自己的软件开发工具包(SDK),让你可以在现有扫描引擎之上构建自定义测试。
到底谁在用这个工具?它历来被系统管理员、审计人员和安全负责人等“蓝队”一方使用;如今,渗透测试人员也会在权限提升和入侵检测相关工作中使用它。
Creator
CISOfy
Size
8.9 MB
Stars
16.5K
Age
12y
Commits · 90 Days