The user interface is required to configure Shadow Daemon. It can be also used to analyze attacks, learn about attackers and improve the rules based on that new knowledge.
The configuration file is located at app/config/parameters.yml.
The key is used by connectors to authenticate. It should be unique and non-guessable.
This mode should be used in a productive system. Attacks are recorded and threats are removed.
This mode should be used to test new rules. Attacks are recorded but threats are not removed.
This mode disables the protection and every request is recorded, no matter if it contains threats or not. It is used to gather learning data for the rules generator. Be cautious, if there are too many requests that have to be saved this mode could drastically slow down your site!
Min. unique visitors
This setting specifies how many different clients have to request a certain resource, so that it is considered by the generator. This is used to ignore outliers, e.g., non-existent parameters that were only requested by a single client.
Min. filter dominance
This setting defines the required percentage of a filter to be dominant. If there is no dominant filter the all including everything filter is used.
Max. length variance
This setting defines the maximum allowed variance in length in which the length is still considered limited. If the variance is lower than this value the shortest and the longest parameter are used as restrictions. If the variance is higher than this value there is no length restriction for the parameter.
Min. threshold dominance
This setting defines the required percentage of a threshold to be dominant. If there is no dominant threshold no rule is added.
This setting unifies arrays in pathes by replacing the arrays with wildcards, e.g., instead of
GET|foo|1 there will be only
This setting unifies callers by replacing pathes with wildcards.
The user interface provides powerful filters to help you quickly find information you are interested in or hide information you are not interested in.
If you specify an include filter only results are shown that match this filter.
Different include filters are combined with a logical
AND, while include filters of the same type are combined with a logical
If you specify an exclude filter only results are shown that do not match this filter.
Both exclude filters of the same type and different exclude filters are combined with a logical
php app/console swd:register -e prod -A [ --admin ] -N [ --name ] arg -E [ --email ] arg
This command registers a new user. If the admin switch is not set the user is not able to change anything besides his own user settings.
php app/console swd:clean -e prod -t [ --time_frame ] arg (-1 month)
This command deletes all requests and parameters that are older than the time frame. It can be used to automatically clean up the database.
php app/console swd:report -e prod -t [ --time_frame ] arg (-24 hours)
This command sends a report about recent attacks to all users with a valid e-mail address. No e-mails are send if there are no logged attacks in the time frame.