CentSecure is a tool for automating parts of CyberCenturion. We are focusing on tasks which are easy (e.g. running a single command) and/or time consumung (e.g. removing backdoors).
⚠️ Warning: Use of this tool when it is open source is against CyberCenturion and CyberPatriot rules. However, you may still use it for inspiration for your own tools.
CyberCenturion is a blue-teaming exercise run by Cyber Security Challenge UK which involves securing 3 virtual machines. See more about how it works here.
CentSecure fixes security holes automatically which gets some of the 'lower hanging fruits' leaving us to focus on some of the harder things. It is designed to work on all platforms and adapt to the platform that it is being run on. Instead of having a bash script for Linux based systems and a batch script for Windows based systems, it makes sense to keep everything in one place.
Run CentSecure with Python: python centsecure.py
$ python centsecure.py --help
[#] Searching for plugins...
usage: centsecure.py [-h] [--list-plugins] [--run-plugin N [N ...]]
[--run-all] [--disable-root-check]
[--disable-python-check]
Automatically fixes common security vulnerabilities.
optional arguments:
-h, --help show this help message and exit
--list-plugins, -l Lists all plugins
--run-plugin N [N ...], -r N [N ...], -p N [N ...]
Run specific plugins
--run-all, -R Run all available plugins
--disable-root-check, --no-root, -d
Disable root check
--disable-python-check
Disable Python version check
Default behaviour is to attempt to run all plugins
These are the most common parameters:
python centsecure.py
- Run with all of the 'default' plugins. This will run all of the plugins except some of the more destructive ones.python centsecure.py -R
- Run all of the plugins.python centsecure.py -r ssh -r pam
- Run just the SSH and PAM plugins.python centsecure.py -l
- List all of CentSecure's plugins.
We have installation scripts for both Ubuntu and Windows which are in the scripts
folder. Simply clone the repository (or download as a ZIP from GitHub) and run one of the scripts from this folder to install Python and CentSecure dependencies.
If you don't want to use the installation scripts, you can manually install CentSecure. Read our Installation Guide for more information on manually installing dependencies.