Part 1 – Preconfiguring an Anomaly Shield application
To protect back-end groups and applications using Airlock Anomaly Shield, one or more Anomaly Shield applications must be configured and training data collection must be enabled.
Preconfigure an Anomaly Shield application and assign it to a mapping
- Go to:
Application Firewall >> Anomaly Shield >> tab Applications - Select the ON radio button to activate Airlock Anomaly Shield.
- Click the + button to add a new Anomaly Shield Application.
- The Anomaly Shield Application page opens up.
- Set an Application Name.
- Assign the new Anomaly Shield application to a mapping so that the Anomaly Shield application processes traffic that is handled by the mapping.
Go to:
Application Firewall >> Reverse Proxy - Assign the Anomaly Shield application to each mapping that should be included in the same Anomaly Shield application. Select the corresponding Anomaly Shield application on the Basic tab of the mapping detail page.
- Info
Best practice is to configure one Anomaly Shield application per mapping and to observe the production traffic patterns. This approach helps to isolate anomalous behaviors and ensures better model accuracy.
- If a mapping handles several thousand sessions per week, continue using one Anomaly Shield application per mapping.
- If a mapping handles a few hundred sessions per day or week, consider combining similar mappings into a shared Anomaly Shield application to accumulate sufficient data.
- Proceed with enabling training data collection.
Enable training data collection
Collecting realistic training data is required as input for the Anomaly Shield machine learning model. As a rule, a minimum of 3000 sessions—including atypical and suspicious ones—provides a solid foundation for training the machine learning models. The most effective way to achieve this is by enabling data collection and using the automatic retrain and enforce feature.
Note the following when collecting training data:
- Model training requires production data.
- If required, filter out internal vulnerability scans using Traffic Matchers as Training Data Collection Exclusion.
- 35 days of training data are ideal for model training. This time period contains an equal amount of weekdays and weekends and it covers all the monthly fluctuations (e.g. salary payment day).
- Anomaly Shield works with session data but does not require authenticated sessions. Continue collecting session data until at least 3000 sessions have been saved.
The training data is stored under the ML application name in the database. Changing the ML application name requires collecting new training data!
- Go to:
Application Firewall >> Anomaly Shield >> Tab Applications >> {{ML Application}} - Set Training Data Collectionto On.
- If the option Client Behavior is enabled, Anomaly Shield will inject JavaScript code to collect data about mouse, keyboard and touchscreen usage. Disable this option if client behavior is not desired or JS injection causes problems.
- Proceed with Part 2 – Training and model enforcement to configure the model training strategy.
Further information and links
Internal links: