Skip to content
Snippets Groups Projects

Check Clearpass Compliance

Description

This is a Bash script that checks if a Linux machine is compliant with a ClearPass policy. ClearPass is a network access control solution developed by Aruba Networks that enables organizations to enforce security policies on devices that connect to their networks.

The script performs the following compliance checks:

Operating system version: The script checks if the machine is running an approved version of the Linux operating system.
Patch level: The script checks if the system is up-to-date
Antivirus software: The script checks if approved antivirus software is running 
Firewall: The script checks if the local firewall is enbled
System wide encryption: The script checks if the system has system wide encryption enabled

If the machine passes all checks, the script prints "Machine is in compliance with ClearPass policy." and returns ExitCode "= 0. Otherwise, the script prints an error message indicating which check failed and returns ExitCode := 1.

This script can be used as part of an automated compliance checking process or as a standalone tool to check the compliance of individual machines. It can be easily modified to add or remove compliance checks, and can be integrated into existing automation workflows using Git hooks or other tools.

Approved Linux Versions

  • Alma 8.8, 9.2 
  • Debian 11.7, 12 (we could include 10.13, but just as an exception)
  • Fedora, releases 37 and 38 
  • Oracle 7.9, 8.7. 9.1
  • Pop!_OS 20.04, 22.04 
  • RedHat 7.9, 8.7, 9.1
  • Rocky 8.7, 9.1 
  • Slackware 14.0, 14.1, 14.2, 15.0
  • SuSE SLES 12 SP5, SLES 15 SP4
  • Ubuntu 20.04, 22.04, 23.04

Tests

Badges

Visuals

Nothing to see yet!

Installation

```bash
git clone https://git.unl.edu/itss-public/check_clearpass_compliance.git
mkdir -p ~/bin/
cp  check_clearpass_compliance/check_clearpass_compliance.sh ~/bin/
```

Usage

```bash
./check_compliance.sh 
```

Support

Send a ticket to support@nebraska.edu or create an issue

Roadmap

- [ ] Operating system version: The script checks if the machine is running an approved version of the Linux operating system.
- [ ] Patch level: The script checks if the system is up-to-date
- [ ] Antivirus software: The script checks if approved antivirus software is running 
- [ ] Firewall: The script checks if the local firewall is enbled
- [ ] System wide encryption: The script checks if the system has system wide encryption enabled

Contributing

Please request access to the repo and contribute! :)

Authors and acknowledgment

License

MIT

Project status

Active