Even experts are barely able to predict all conceivable attack scenarios to a web application. If you were to attempt to exclude these risks step by step, it’s almost certain that significant weak spots would remain.
It’s therefore strongly advisable to take the opposite approach: Don’t prohibit specific actions, but instead permit specific actions. The basic principle for working with Stingray Application Firewall should always be: Everything that’s not explicitly permitted, is forbidden. This results in the following procedure, which ensures a high degree of security:
Step 1:
Create a list of everything that’s explicitly permitted.
Step2:
Configure Stingray Application Firewall using the wizards and handlers provided so that only the things specified on your list in step 1 are possible. Carry out this work using paths so that specific actions are only permitted where absolutely necessary.
Step 3:
Test your web application and expand the scope of the permitted actions as required so that all functions of your web application work as intended. Always keep all the rules as tight as possible.
Step 4:
Check the log files in Stingray Application Firewall at regular intervals to ensure that no requests were denied where this wasn’t necessary (see Log Files).
Expand your list from step 1 as required.
Tip: Stingray Application Firewall provides a powerful function that tells you why a certain handler became active and how you can modify your configuration to avoid this in the future. See Log Files for details.
Repeat steps 2 to 4 until your web application functions correctly works for all legitimate users in all possible scenarios. Then switch from detection mode to protection mode (see Version Control and Editing Applications).
|