-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Custom Tests and Plugins
Michael Boelen edited this page Feb 22, 2016
·
2 revisions
Extending Lynis with your own custom tests is easy.
Another option is creating your own plugin. This is especially useful if you want to do data collection, for later analysis. This data can be stored in the report and then analyzed via Lynis, or an external tool of your choice.
- To start, copy the plugin template or an existing plugin.
- Define all plugins with an unique identifier, starting with CUST, followed by an unique number. This way Lynis knows it is a custom plugin.
- Create the related code of your plugin
- Enable the plugin in your profile
- Set file permissions (as strict as possible)
- Run Lynis
If your plugin is not started, then usually file permissions are not correct.