The WAF is dead, long live the WAF!

The web application firewall (WAF) is a security tool used to guard against unwanted access to web applications. It is often a security device that sits on top of a web server and guards against threats from the internet or from beyond the network perimeter.
Unlike Layer 3 (Network) thiab txheej 4 (Transport) firewalls, uas tsis muaj peev xwm txheeb xyuas cov lus nug tsis zoo ntawm daim ntawv thov txheej txheej, WAF yog Txheej 7 firewall uas tuaj yeem pom cov pob ntawv encrypted yav dhau los. Kev siv WAF ua rau cov koom haum tiv thaiv lawv lub xub ntiag online tiv thaiv ntau lub vev xaib tawm tsam hauv internet, suav nrog cov ntawv sau ntoo khaub lig (XSS), SQL txhaj tshuaj, thiab kev thov hla qhov chaw forgery (CSRF). Cov kev tawm tsam no tuaj yeem muab cov neeg tawm tsam muaj peev xwm nyiag cov ntaub ntawv tseem ceeb, coj lub vev xaib servers, lossis tso tawm kev tawm tsam lwm cov kab ke, uas tuaj yeem ua rau muaj kev puas tsuaj rau cov ntawv thov web.
Teeb meem
1. Huab-haiv neeg micro-kev pabcuam thiab WAF
WAFs tsis tshua muaj txiaj ntsig nyob rau hauv huab-haiv neeg web applications thiab sab hauv huab ib puag ncig. Ib qho laj thawj yog tias cov kev cai kev ruaj ntseg uas cov ntawv thov web ib txwm tau khi los ntawm sab hauv qhov chaw tsis siv rau hauv huab.
Hauv cov chaw khaws ntaub ntawv ib txwm muaj, web application firewalls are typically installed at the edge of the network to protect applications running within the perimeter of the internal network. However, in cloud environments, applications are often deployed in virtual machines or containers that are flexible and can be turned on and off as demand changes. This means that traditional perimeter-based approaches to security can be less effective in cloud environments, where applications can reside anywhere on the network and are more difficult to monitor and control.
Another challenge with cloud-native web applications is that they are often more distributed and complex than traditional web applications. Cloud-native applications are typically composed of micro-services that communicate with each other via APIs and may use multiple data stores and third-party services. This can make identifying and mitigating security risks more difficult, as attacks can occur at any point in the application architecture.
2. WAF and API challenges
APIs (application programming interfaces) are the primary methods of connectivity between micro-services and are also used to enable communication between external services and applications. APIs use different communication protocols and traffic patterns than traditional web applications, which makes it more difficult for WAFs to accurately identify and protect API traffic. This can lead to false positives or false negatives, weaken security, or block legitimate traffic unnecessarily.
One of the challenges with API traffic is that it can use different protocols such as HTTP, HTTPS, and Web-Sockets, which can contain different types of payloads and headers that make it difficult for the WAF to accurately identify the traffic. For example, some APIs can use binary payloads or encryption, which is difficult for WAFs to interpret and parse.
Another challenge is that APIs can have different traffic patterns than traditional web applications. APIs typically have a high volume of traffic with many requests per second, making it difficult for the WAF to keep up with the pace of traffic. Additionally, compared to web applications, APIs often have more predictable and consistent traffic patterns, making it easier for attackers to identify vulnerabilities and launch attacks.
Recently, a security research group published a new method for bypassing multiple web application firewalls, including Palo Alto, F5, Amazon Web Services, Cloudflare, and Imperva. The specified vendors acknowledged (according to the researchers) the disclosure and made changes to their products’ SQL inspection processes to support JSON syntax.
Solutions
1. API Specified Anomalies
To overcome the challenges mentioned above, a WAF should be specifically designed to handle API traffic. This may include identifying and protecting API traffic using a variety of techniques, including signature-based analytics or machine learning algorithms that can detect anomalies in traffic patterns. A WAF may also need to integrate with other security tools such as API gateways to provide a more comprehensive security solution.
Overall, securing API traffic with a WAF requires a different approach than traditional web application security. A WAF must be specifically designed to handle API-specific communication protocols and traffic patterns to accurately identify and defend against security threats.
2. Integrated WAFs
To meet these challenges, a WAF should be built specifically for cloud-native web applications. This may involve deploying a WAF as part of your application architecture rather than as a perimeter-based solution. Additionally, WAFs may need to integrate with other cloud-native security tools such as container security platforms and API gateways to provide a more comprehensive security solution.
WAFs can still play an important role in securing cloud-native web applications, tab sis lawv yuav tsum tau hloov kho thiab txhim kho kom daws tau cov teeb meem kev nyab xeeb tshwj xeeb ntawm huab-haiv neeg ib puag ncig.
3. WAF thiab kev tiv thaiv-hauv-qhov tob
WAF yuav tsum raug suav hais tias yog ib txheej ntawm ntau txheej kev ruaj ntseg, nrog rau lwm cov cuab yeej kev ruaj ntseg xws li kev nkag mus nrhiav thiab tiv thaiv kev tiv thaiv, ruaj ntseg API rooj vag, kev tiv thaiv qhov kawg, network firewalls, thiab kev tswj kev nkag mus. Los ntawm kev siv ntau txheej ntawm kev tswj hwm kev ruaj ntseg, Cov koom haum tuaj yeem tsim kom muaj kev ruaj ntseg ntau dua thiab tiv thaiv ntau yam kev hem thawj zoo dua.
Siv WAF ua ib feem ntawm kev tiv thaiv-hauv-tob lub tswv yim tuaj yeem pab tiv thaiv ntau yam kev tawm tsam lub vev xaib thiab txo qhov kev pheej hmoo ntawm cov ntaub ntawv ua txhaum cai thiab lwm yam xwm txheej kev ruaj ntseg. Ib qho WAF pab muab kev pom kev rau hauv lub vev xaib daim ntawv thov tsheb, enabling organizations to monitor and analyze traffic patterns and identify potential security threats. This is especially important in cloud environments where web applications and APIs can become more distributed and complex.
By integrating WAFs with other security tools such as API gateways and Security Information and Event Management (SIEM) systems, organizations can create a more comprehensive security solution that gives them greater visibility and control over their cloud environment.
4. Distributed WAFs
A distributed WAF (web application firewall) is the answer to the challenge of securing distributed cloud-based micro-services. For traditional monolithic applications, a single WAF can be deployed at the network edge to protect the entire application. However, in cloud-based distributed microservices environments, applications are split into smaller, modular components, each with its own API and security requirements. This can make it difficult to protect all components with a single WAF, as each component may require different security policies and configurations.
A distributed WAF was developed to address this challenge by providing a distributed and scalable security solution for cloud-based micro-services. A distributed WAF consists of multiple instances of a WAF deployed in different locations such as data centers and cloud regions. Each WAF instance can be configured with its own security policy and configuration tailored to the specific needs of the micro-services it protects.
By deploying multiple instances of WAF in different locations, organizations can deploy a more comprehensive and scalable security solution that can adapt to the changing needs of micro-services environments. A distributed WAF can also improve resilience and availability, as it can continue to operate even if one or more instances fail.
Additionally, distributed WAFs can be integrated with other security tools such as API gateways and SIEM systems to provide a more comprehensive security solution for cloud-based micro-services. For example, an API gateway can be used to manage access to micro-services, a distributed WAF can be used to protect against web application attacks, and visibility into web application traffic can be achieved.
Conclusion
Web Application Firewalls (WAFs) play a significant role in defending web applications from internet-originating attacks, including SQL injections, cross-site scripting (XSS), thiab kev thov hla qhov chaw forgery (CSRF). However, huab-haiv neeg web applications thiab APIs ua rau muaj kev sib tw tshwj xeeb rau WAFs vim tias lawv qhov nyuaj thiab faib tawm, ua rau nws nyuaj rau WAFs kom pom thiab txo cov kev pheej hmoo kev nyab xeeb kom raug.
Txhawm rau daws cov kev cov nyom no, WAFs yuav tsum tau tsim tshwj xeeb rau huab-haiv neeg web applications thiab koom ua ke nrog lwm cov cuab yeej huab-haiv neeg kev ruaj ntseg, suav nrog cov thawv kev ruaj ntseg platform thiab API gateways. Additionally, WAFs yuav tsum raug suav hais tias yog ib txheej ntawm ntau txheej kev ruaj ntseg, suav nrog lwm cov cuab yeej kev ruaj ntseg xws li kev nkag mus nrhiav thiab tiv thaiv cov kab ke, ruaj ntseg API rooj vag, kev tiv thaiv qhov kawg, network firewalls, thiab kev tswj kev nkag mus.
Los ntawm kev sib koom ua ke WAFs nrog lwm cov cuab yeej kev ruaj ntseg thiab xa ntau txheej ntawm kev tswj kev ruaj ntseg, organizations can create a more comprehensive security solution that provides more visibility and control over their cloud environment.
Post Disclaimer
The views, information, or opinions expressed are solely those of the author and do not necessarily represent those of his employer or the organizations with which he is affiliated.
The information contained in this post is for general information purposes only. The information is provided by Farhad Mofidi and while he strives to keep the information current and accurate, he does not make any representations or warranties of any kind, express or implied, regarding the completeness, accuracy, reliability, suitability or availability of the website. Farhad makes no representations or warranties. or any information, products or related graphics contained in any Post for any purpose.
Also, AI may be employed as a tool to provide suggestions and improve some of the contents or sentences. The ideas, thoughts, opinions, thiab cov khoom kawg yog thawj thiab tib neeg tsim los ntawm tus sau.