Usage: lynis command [options]
Command:
audit
audit system : 执行本地安全扫描
audit system remote <host> : 远程安全扫描
audit dockerfile <file> : 分析dockerfile
show
show : 显示所有命令
show version : 显示Lynis版本
show help : 显示帮助
update
update info : 显示更新详细信息
Options:
--no-log : 不创建日志文件
--pentest : 非特权扫描(对pentest有用)
--profile <profile> : 使用给定的配置文件扫描系统
--quick (-Q) : 快速模式,不等待用户输入
Layout options 布局选项
--no-colors : 不在输出中使用颜色
--quiet (-q) : 无输出
--reverse-colors : 优化灯光背景的颜色显示
Misc options
--debug : 调试日志记录到屏幕
--view-manpage (--man) : 查看手册页
--verbose : 在屏幕上显示更多详细信息
--version (-V) : 显示版本号并退出
Enterprise options
--plugindir <path> : 定义可用插件的路径
--upload : 上传数据到中心节点
More options available. Run '/usr/bin/lynis show options', or use the man page. 提供更多选项。运行“/usr/bin/lynis show options”,或使用手册页。
audit configure show update upload-only 用 'lynis show help <command>' 查看详细信息
audit选项
lynis audit <target>
audit dockerfile <file> 对Docker生成文件执行安全审核 Example: lynis audit dockerfile Dockerfile
audit system [options]
执行安全系统审核 Examples: lynis audit system lynis audit system --cronjob lynis audit system --profile developer.prf lynis audit system --quick
audit system remote <target> [options]
对远程目标执行安全系统审核 Examples: lynis audit system remote 192.168.1.100 lynis audit system remote 192.168.1.100 --no-colors
lynis show categories lynis show changelog [version] lynis show commands |
(显示测试类别) (发布详细信息) (所有可用命令) |
lynis show dbdir lynis show details lynis show environment |
(数据库目录) (显示日志文件中的测试详细信息) (硬件、虚拟机或容器类型) |
lynis show groups lynis show help lynis show hostids |
(测试组) (有关参数的详细信息) (此系统的唯一ID) |
lynis show includedir lynis show language lynis show license |
(包括测试和功能目录) (配置或检测到的语言) (许可证详细信息) |
lynis show logfile lynis show man lynis show options |
(日志文件的位置) (显示帮助) (可用标志和选项) |
lynis show os lynis show pidfile lynis show plugindir |
(操作系统和版本) (活动文件到存储进程ID) (带插件的目录) |
lynis show profiles lynis show release lynis show releasedate |
(发现的配置文件) (版本) (发布日期) |
lynis show report lynis show settings lynis show tests [test] lynis show tests skipped lynis show version lynis show workdir |
(报告数据的位置) (显示配置的设置,选项:--brief--nocolors) (显示有关一个或多个测试的信息) (根据配置文件跳过哪些测试) (Lynis版) 工作目录 |