How to know what text transformation I need

0

Currently we are facing a DDoS attack on our application every 3-4 days. We have configured a WAF rate limiting rule that seems to work correctly against our load testing tool but doesnt seem to block when the actual DDoS attack happens. The only thing that I suspect could be going wrong is missing some critical text transformation parameter.

How does one get to know which text transformation to apply from, say hex decode, json decode, url decode, md5 etc and in what order? Tried enabling WAF logs for a bit but was unsure from looking at the json logs why the rule was not working and how to get it to work.

It would be great if any of you guys can help in this. Thank you.

Rahul
已提問 23 天前檢視次數 238 次
1 個回答
0

Hi THere

When you analyze the WAF logs , you have to identify the Encoding Schemes. Based on the patterns you observe in the logs, try to identify the encoding schemes used in the malicious requests. Common encoding schemes include:

  • URL encoding (e.g., %20 for space)
  • Hexadecimal encoding (e.g., 0x20 for space)
  • Base64 encoding
  • JSON encoding
  • HTML entity encoding (e.g.,   for space)

Here's a common order for applying text transformations:

  1. Decode HTML entity encoding (if present)
  2. Decode URL encoding
  3. Decode Base64 encoding (if present)
  4. Decode Hex encoding (if present)
  5. Normalize JSON bodies (if present)

For example, if you notice that the malicious requests use URL encoding and Hex encoding, you can apply the URLDecode and HexDecode transformations in that order.

Are you using the AWS Managed rules for WAF? These rules are maintained by AWS and can provide protection against common attack patterns, including DDoS attacks.

profile pictureAWS
專家
Matt-B
已回答 17 天前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南