-
Notifications
You must be signed in to change notification settings - Fork 13
Configuration Files Structuring
Odinmylord edited this page Mar 8, 2024
·
1 revision
Each config file
- It must
- have a name,
- list all the modules used.
- it can
- have personalized entries,
- import other configurations,
- explicit the args of each module.
For example: Config with include
{
'name':'AGID Compliance',
'include':{
'file':'compliance.json',
'remove':{
'modules':['android'],
'args',
},
'add': {
'modules':['TLS','stix'],
'args':{
'TLS':['d','192.168.1.1','compliance'],
'stix':['c://dkgd/file.out'],
'Compliance': [ 'AGID' ]
}
}
}
#modules is disabled if we are using include.
}
Config generic
{
'name':'Compliance',
'description':'Template for other configuration regarding Compliances',
'modules':['Compliance','TLS'],
'args':{
'TLS':['d','127.0.0.1','compliance'],
'Compliance': [ 'Generic' ]
}
}
-
If
include
is used,modules
and other entries are ignored, except forname
,include
. -
The execution priority is:
include file
include remove
include add
-
Everything inside
add
orremove
is optional and it follows a generic configuration.-
add
: adds the entries to the already included; -
remove
: removes the entries received with theinclude
statement.
-
-
Every other unknown entry can be added in
add
. -
If an unknown entry is added and no modules processes it, nothing happens.