https://github.com/chen-keinan/openshift-ordeal
Open Source runtime scanner for OpenShift cluster and perform security audit checks based on CIS RedHat OpenShift Benchmark specification
https://github.com/chen-keinan/openshift-ordeal
audit-checks cis-benchmark cis-security kube kubernetes linux openshift openshift-ordeal openshift-scrutiny redhat scan security
Last synced: about 1 month ago
JSON representation
Open Source runtime scanner for OpenShift cluster and perform security audit checks based on CIS RedHat OpenShift Benchmark specification
- Host: GitHub
- URL: https://github.com/chen-keinan/openshift-ordeal
- Owner: chen-keinan
- License: apache-2.0
- Created: 2021-09-11T14:34:12.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-21T05:47:07.000Z (about 3 years ago)
- Last Synced: 2025-03-25T07:04:59.067Z (about 2 months ago)
- Topics: audit-checks, cis-benchmark, cis-security, kube, kubernetes, linux, openshift, openshift-ordeal, openshift-scrutiny, redhat, scan, security
- Language: Go
- Homepage:
- Size: 342 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://github.com/chen-keinan/openshift-ordeal/blob/main/LICENSE)
![]()
[](https://gitter.im/beacon-sec/openshift-ordeal?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
# OpenShift-Ordeal### Scan your Openshift cluster
OpenShift-Ordeal is an open source audit scanner who perform audit check on OpenShift Cluster and output it security reportThe audit tests are the full implementation of [CIS openshift Benchmark specification](https://www.cisecurity.org/benchmark/openshift/)
audit result now can be leveraged as webhook via user plugin(using go plugin)
#### Audit checks are performed on OpenShift cluster, and output audit report include :
1. root cause of the security issue.
2. proposed remediation for security issue.#### Openshift cluster scan output:
# Under Construction - in Progress :)
--------------------------------------------------------------------------------------------------------
* [Installation](#installation)
* [Quick Start](#quick-start)
* [User Plugin Usage](#user-plugin-usage)
* [Supported Specs](#supported-specs)
* [Contribution](#Contribution)## Installation
```
git clone https://github.com/chen-keinan/openshift-ordeal
cd openshift-ordeal
make build
./openshift-ordeal
```## Quick Start
```
Usage: openshift-ordeal [--version] [--help] []Available commands are:
-r , --report : run audit tests and generate failure and warn report
-i , --include: execute only specific audit test, example -i=1.2.3,1.4.5
-e , --exclude: ignore specific audit tests, example -e=1.2.3,1.4.5
-c , --classic: test report in classic view, example -c```
## User Plugin Usage
The openshift-ordeal expose hook for user plugins [Example](https://github.com/chen-keinan/openshift-ordeal/tree/master/examples/plugins) :
- **openshiftBenchAuditResultHook** - this hook accepts audit benchmark results as found by audit test##### Compile user plugin
```
go build -buildmode=plugin -o=~//bench_plugin.so //bench_plugin.go
```
##### Copy plugin to folder (.openshift-ordeal folder is created on the 1st startup)
```
cp //bench_plugin.so ~/.openshift-ordeal/plugins/compile/bench_plugin.so
```
Note: Plugin and binary must compile with the same linux env
## Supported Specs
The openshift-ordeal support cis specs and can be easily extended:
- master config file change spec [CIS openshift Benchmark specification](https://www.cisecurity.org/benchmark/openshift/)
both specs can be easily extended by amended the spec files under ```~/.openshift-ordeal/benchmarks/openshift/v1.0.0``` folder## Contribution
- code contribution is welcome !! , contribution with tests and passing linter is more than welcome
- /.dev folder include vagrantfile to be used for development : [Dev Instruction](https://github.com/chen-keinan/openshift-ordeal/tree/master/.dev)