Introduction

Intelligent firewall at the web application level iBatyr WAF is a specialized solution designed to protect critical web resources from external attacks and control the use of applications in various scenarios.

The solution has a number of advantages that allow it to provide high protection efficiency with minimal cost of ownership. Among the functionality of the system:

  • protection against the main types of attacks on web applications from the OWASP Top-10 list, against logical attacks on applications, including attacks on authentication and session control mechanisms, as well as attacks on business logic;

  • full-featured API protection (API Gateway functionality) with the ability to create, download and adjust models, manually or automatically, including defining data formats and interaction methods not supported by the Open API standard;

  • reflection of brute force attacks and bots, combining a positive model, rate limiting, analysis of user behavior;

  • counteraction to “smart DoS” (targeted attacks at the application level (L7) to exhaust resources), taking into account the specifics of the business logic of the service;

  • control of user actions based on the analysis and storage of legitimate transactions, as well as the use of business logic control mechanisms (analysis of business process execution, UBA, etc.);

  • combination of various protection mechanisms - detailed positive models of the operation of protected applications with signature and semantic methods of anomaly detection;

  • interpretable machine learning mechanisms with the ability to analyze and manually adjust the resulting models, allowing to minimize resource costs for setting up WAF;

  • control of logical actions, their parameters, sequence of actions and their success provides fine-tuning of protection and the ability to export events to external systems in the context of business logic;

  • mechanisms for quick decision-making that allow you to increase the performance of the solution and resist massive attacks of the same type, many times larger than the load capacity of the WAF;

  • customization of blocking pages (fake response), making it difficult for bots to detect blocking.

Functionality of iBatyr WAF

Main functions of the system

  • Protection against the main types of attacks on web applications from the OWASP Top-10 list, from logical attacks on applications, including attacks on authentication and session control mechanisms, as well as attacks on business logic.

  • Full-featured API protection (API Gateway functionality) with the ability to create and adjust models, manually or automatically, including the definition of data formats and interaction methods not supported by the Open API standard.

  • Reflecting brute force attacks and bots, combining a positive model, rate limiting, and analysis of user behavior.

  • Countering “smart DoS” (targeted attacks at the application level (L7) to exhaust resources), taking into account the specifics of the service’s business logic.

  • Control of user actions based on the analysis and storage of legitimate transactions, as well as the use of business logic control mechanisms (analysis of business process execution, UBA, etc.).

Control Interface

  • Management is carried out via the HTTP protocol using a specialized web interface.

  • For the purpose of integration with other solutions, management can also be carried out using the REST API.

  • Support for asynchronous interaction technology with the control system (imitation

“fat client”)

  • Provides the ability to monitor and manage configurations for multiple protected applications from a common interface.

  • Editing the configuration of the traffic capture subsystem (reverse proxy) using the graphical interface.

  • Ability to download SSL certificates in the graphical interface of the System.

  • Support for regular expressions (wildcard) for domain names of protected applications in the protection settings.

  • Limiting user access to only certain groups of applications (Multitenancy mode).

  • Support for graphical display and editing of models of normal functioning of protected applications.

  • The web interface provides versioning for each of the system configuration settings: incl. basic configuration settings, settings of analysis modules, models of normal operation of applications, decision-making rules.

  • The interface supports user authentication and authorization mechanisms. The role model provides for access control for three groups: administrators (you can perform any actions), analysts (you can only change security settings), and operators (only monitoring and working with security events).

  • Actions of web interface users, including changes made, are saved in the internal system audit log.

Working Using Negative Anomaly Detection Techniques

  • Availability of a set of built-in signatures included in the delivery set.

  • Support for the popular open web signature format ModSecurity.

  • Creation of anomalous sequences (chains) of actions to model unwanted behavior.

Resistance to brute force attacks and duplicate requests

  • The ability to limit the number of requests sent to the application per unit of time.

  • The ability to individually configure parameters for countering brute-force attacks for individual logical actions in the application and arbitrary action parameters.

  • Detecting bot activity by abnormally exceeding the median response time of a web application compared to historical data.

  • The ability to block periodic requests of the same type directly in the traffic capture subsystem, without transferring it to the traffic analysis subsystem (anti-bots).

  • Ability to block explicit searches of any query parameters.

Work based on positive application models

  • Possibility of flexible configuration of various types of models for each of the protected applications, including:

    • HTTP protocol validation models;

    • models for parsing requests and responses with support for various types of compression, encoding and methods of data transmission with various levels of nesting (in particular, XML, JSON, BASE64, GZIP, SOAP, Zstd, Brotli, Protocol Buffers);

    • models for checking the compliance of XML-like data formats with specified XSD schemas loaded as files in the WAF interface;

    • source models – determining source characteristics based on query parameters;

    • models for defining logical actions (business actions) in the application, parameters of logical actions and their values, sequences of actions (chains), checking the success of actions;

    • models of protection against brute-force attacks and smart DoS attacks at the level of individual logical actions and arbitrary action parameters;

    • user models, their identification, authentication and session control.

  • Availability of ready-made HTTP protocol validation models and request parsing for a typical web application included in the delivery set.

  • The ability to separate requests for static and dynamic content based on header analysis and statistical models to minimize processing time for static content, as well as saving the resources required by the analyst to analyze events (requests for static resources are not displayed in the monitoring console).

  • Availability of an automatic algorithm for recursive parsing of query parameters.

  • Availability of an automatic algorithm for constructing a request routing model for a Web application.

  • Availability of an automatic algorithm for constructing syntactic models of Web application action parameters.

  • Availability of an automatic algorithm for assessing the deviation of Web application action parameters from the statistical norm.

Detection of anomalies and significant events

  • Ability to detect anomalies or significant data in both HTTP requests and HTTP responses.

  • The ability to detect application operation anomalies based on comparing the parameter values of HTTP requests/responses with attack signatures.

  • The ability to detect anomalies or significant data in the operation of the application based on configured positive application models (match with the model or vice versa - deviation from it).

  • Detection of anomalies and significant parameters directly inside nested data transmitted via HTTP without restrictions on the number of nesting levels.

  • The ability to detect anomalies indicating possible attempts at brute force attacks (bruteforce).

  • The ability to detect anomalies or significant data during the operation of mechanisms for identification, authentication, authorization of users and control of user sessions.

  • The ability to detect anomalies of violation of the business logic of the application or control the execution of business logic by using an appropriate positive model of the application.

  • Control of the country of the source in accordance with the automatically updated GeoIP database.

False positive suppression

  • The presence of a mechanism for preliminary (“early”) suppression of false positives to exclude the possibility of their influence on the formed decision-making rules.

  • The presence of a simplified (“fast”) suppression function for false positives by the iBatyr WAF operator directly when viewing the description of the detected anomaly.

  • The ability to fine-tune the suppression of false positives of various anomaly detection mechanisms in relation to individual request/response parameters or business actions.

Decision making

  • Availability of a custom decision-making module that allows you to highlight significant information security events and make decisions regarding further actions regarding HTTP transactions (request/response).

  • Manage decision-making rules based on data about the source (IP address, user, session ID) and purpose of an HTTP transaction (application, business action), as well as anomalies or significant data detected in it.

  • The following possible solutions are supported: block the HTTP transaction, skip the HTTP transaction, mark the HTTP transaction, modify the response, add the source value to the list (black, white or gray, depending on the specified policy).

  • Management of decision rules (creation, deletion, regrouping) using a graphical configurator through the management interface.

Machine learning

  • Automatic detection and description of static content based on analysis of request statistics for protected applications.

  • Automatic construction of a recursive model for parsing request and response data with support for various types of compression, encoding and data transfer methods with an arbitrary level of nesting (in particular, XML, JSON, BASE64, GZIP, SOAP, Zstd, Brotli, Protocol Buffers).

  • Automatic construction of models of logical actions in the application and models of parameters of these actions, as well as sequences (chains) of logical actions.

  • Assessment of deviation of parameters of logical actions in a web application from the statistical norm.

  • Automatic adjustment of response thresholds for a module to counter brute-force attacks and slow bots, analyzing the frequency of requests to a specific URL or to a specific function of a web application.

  • Possibility of performing automatic learning in the following modes:

    • continuous learning during operation;

    • periodically launching training tasks according to a set schedule;

    • manual one-time launch of training tasks.

  • The results of automatic learning are fully interpretable and adjustable by the operator (settings made based on the results of automatic learning appear in the control interface similar to settings made manually).

  • The possibility of incremental training (only for changes that have occurred since the previous training), as well as partial manual adjustment of training results for individual static resources, elements of the parsing model, logical actions, etc. without having to do the full training all over again.

Monitoring and auditing of information security events

  • Generalized statistics are displayed on the following parameters: status of the server’s HTTP response, current throughput (incoming/outgoing traffic), delay in processing requests by the application, and level of hostility of the environment.

  • Messages about detected and/or blocked attacks on applications are displayed in aggregated form, aggregation occurs by application, type of detected anomalies and time of occurrence of anomalies.

  • For security events, information about the sources of attacks is aggregated, including the geographic distribution of sources by country and by autonomous system numbers.

  • The ability to automatically notify system users about security events using email, flexible configuration of alerts from the Web interface.

  • Ability to configure data uploading based on individual specified logical actions.

  • The ability to automatically generate reports in the “*.PDF” format containing statistics of information security events for specified periods of time, including regular reports with a frequency of “once a day,” “once a week,” “once a month.”

  • The ability to transfer data in real time to the information security event monitoring and correlation system (SIEM).

Architectural features of iBatyr WAF:

Integration into enterprise application delivery infrastructure

  • Support for centralized management of iBatyr WAF nodes.

  • Supports configurations with one or more analysis nodes and management system installed on a single physical or virtual device.

  • Supports distributed, scalable configurations with separate database analysis and management nodes.

  • Ability to operate analysis nodes and control systems simultaneously with several protected applications.

  • Support for integration with corporate application delivery infrastructure: with external balancers, SSL concentrators, etc.

  • The ability to balance traffic and terminate SSL directly on the iBatyr WAF analyzer node.

Operating modes

  • The ability to operate analysis nodes in active mode with the ability to block requests/responses (reverse proxy mode) with the ability to temporarily quickly enable or disable the blocking mode.

  • The ability to operate analysis nodes in passive mode with the ability to monitor without affecting the analyzed traffic.

Fault tolerance

  • The ability to build cluster configurations “Active/active” or “Active/passive” for analysis nodes, “Active/passive” with replication for the control system.

  • Support for software bypass mode and default action without checking in case of local failures or sudden load surges.

Integration with external systems

  • Possibility of integration with SIEM systems.

  • Possibility of integration with other systems using Syslog, SQL, REST API mechanisms.

  • The ability to load OpenAPI specifications as actions in the Business Logic model (in particular, as one of the embedding tools in CI/CD).

  • Integration module with a web application security scanner and API to improve the quality of identifying Data Entry Points during scanning and reduce the impact of the scanner on the analyzed web application.

  • Providing an API for sending data to external systems.

  • Ability to monitor the performance of software and hardware components using Zabbix and Prometheus monitoring systems.

  • Ability to integrate with Threat Intelligence source lists.

  • Ability to load OpenAPI specifications as business logic model actions.

Proposed iBatyr WAF implementation architecture

The iBatyr WAF solution makes it possible to implement two different implementation schemes: cluster

“Active/Active” or “Active/Passive” cluster.

The “Active/Active” implementation scheme involves balancing HTTP traffic between two or more equivalent active analysis nodes, which, after verification, forward the cleaned traffic to the protected applications. Management of the installation, as well as storage of configurations and transaction history, is carried out centrally from the database node, which is additionally backed up according to the scheme

“Active/Passive” (all data is replicated to the backup node, and it takes over if the main node is unavailable). The “Active/Active” cluster diagram is shown in Fig. 1.

image1

Fig. 1 – Active/Active implementation diagram

This scheme is the most preferable from the point of view of fault tolerance, because in the event of a failure of any of the nodes (both hardware and software), the availability of the protected resources will most likely be maintained [1]. This scheme also allows for better performance, because the load is distributed evenly between two or more analysis nodes, and SSL termination can be organized on a balancer.

With the “Active/Passive” implementation scheme traffic analysis and filtering is carried out on only one (active) node, while the second analysis node remains standby and becomes active only if the first node becomes unavailable. The database in this case is also backed up according to the scheme

“Active/Passive”. The “Active/Passive” cluster diagram is shown in Fig. 2.

image2

Fig. 2 – Active/Passive implementation scheme

The main advantages of the “Active/Passive” scheme are simplicity and saving of computing resources, because there is no need to use a separate load balancer, and it is also possible to place the analysis module and the database module on one passive node (in this case, the installation can be deployed on two physical or virtual nodes instead of four).

But this scheme is less reliable in comparison with the “Active/Active” scheme, since there is a non-zero probability that for some reason the cluster will not be able to determine the need for switching, or the backup node will not be able to successfully take over control. This scheme is also less productive, because the entire load is processed by only one analysis node, which will most likely also have to perform SSL termination.