Skip to content

Checks whether a Linux server according to security best practices as defined in the CIS Distribution-Independent Linux Benchmark

License

Notifications You must be signed in to change notification settings

aquasecurity/linux-bench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ce03975 · Jan 29, 2024
Jan 29, 2024
Mar 14, 2021
Dec 21, 2020
Jan 8, 2020
Jan 29, 2024
Feb 10, 2019
Feb 10, 2019
Dec 17, 2020
Feb 6, 2023
Dec 21, 2020
Jan 29, 2024
Jan 29, 2024
Jan 30, 2019
Aug 7, 2019
Apr 16, 2020
Dec 2, 2020

Repository files navigation

GitHub Release License Coverage Status GitHub Build Actions GitHub Release Actions

Linux-bench is a Go application that checks whether the Linux operating system is configured securely by running the checks documented in the CIS Distribution Independent Linux Benchmark.

Tests are configured with YAML files, making this tool easy to update as test specifications evolve.

CIS Linux Benchmark support

linux-bench currently supports tests for benchmark version 1.1.0 only.

linux-bench will determine the test set to run on the host machine based on the following:

  • Operating system platform - ubuntu/debian/rhel/coreos
  • Boot loader - grub/grub2
  • System logging tool - rsyslog/syslog-ng
  • Lsm - selinux/apparmor

Installation

Installing from sources

Install Go, then clone this repository and run as follows (assuming your $GOPATH is set):

go get github.com/aquasecurity/linux-bench
cd $GOPATH/src/github.com/aquasecurity/linux-bench
go build -o linux-bench .

# See all supported options
./linux-bench --help

# Run checks
./linux-bench

# Run checks for specified linux cis version
./linux-bench --version <version>

Tests

Tests are specified in definition files cfg/<version>/definitions.yaml.

Where <version> is the version of linux cis for which the test applies.

Contributing

We welcome PRs and issue reports.

About

Checks whether a Linux server according to security best practices as defined in the CIS Distribution-Independent Linux Benchmark

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published