mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-31 01:34:23 +02:00
Created _Development (markdown)
parent
955d2f04be
commit
2fc93013df
21
_Development.md
Normal file
21
_Development.md
Normal file
@ -0,0 +1,21 @@
|
||||
# Creating your own tests and plugins
|
||||
|
||||
Extending Lynis with your own custom tests is easy.
|
||||
|
||||
## Tests
|
||||
|
||||
|
||||
|
||||
## Plugins
|
||||
|
||||
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.
|
||||
|
||||
1. To start, copy the plugin template or an existing plugin.
|
||||
2. Define all plugins with an unique identifier, starting with CUST, followed by an unique number. This way Lynis knows it is a custom plugin.
|
||||
3. Create the related code of your plugin
|
||||
4. Enable the plugin in your profile
|
||||
5. Set file permissions (as strict as possible)
|
||||
6. Run Lynis
|
||||
|
||||
If your plugin is not started, then usually file permissions are not correct.
|
||||
|
Loading…
x
Reference in New Issue
Block a user