AWS WaF HTTP header analyzer | Web Scripts | Crax

Welcome To Crax.Pro Forum!

Check our new Marketplace at Crax.Shop

   Login! SignUp Now!
  • We are in solidarity with our brothers and sisters in Palestine. Free Palestine. To learn more visit this Page

  • Crax.Pro domain has been taken down!

    Alternatives: Craxpro.io | Craxpro.com

AWS WaF HTTP header analyzer

AWS WaF HTTP header analyzer

LV
1
 

papamidnite

Member
Joined
Nov 10, 2023
Threads
10
Likes
8
Awards
4
Credits
522©
Cash
0$
AWS WaF HTTP header analyzer



Golang is a dependencie to build the binary. See the documentation to install: https://go.dev/doc/install 1

make sudo make install
The rules configuration is very simple, for example, the threshold is the limited of the requests in X time. It’s possible to monitoring multiples headers, but, the header needs to be in HTTP Request header log.
rules: header: x-api-id: # The header name in HTTP Request header threshold: 100 token: threshold: 1000
It’s possible send notifications to Slack and Telegram. To configure slack notifications, you needs create a webhook configuration, see the slack documentation: https://api.slack.com/messaging/webhooks

Telegram bot father: https://t.me/botfather
notifications: slack: webhook-url: https://hooks.slack.com/services/DA2DA13QS/LW5DALDSMFDT5/qazqqd4f5Qph7LgXdZaHesXs telegram: bot-token: “123456789:NNDa2tbpq97izQx_invU6cox6uarhrlZDfa” chat-id: “-4128833322”
To set up AWS credentials, it’s advisable to export them as environment variables. Here’s a recommended approach:

export AWS_ACCESS_KEY_ID=“…” export AWS_SECRET_ACCESS_KEY=“…” export AWS_REGION=“us-east-1”
retrive-logs-minutes-ago is the time range you want to fetch the logs, in this example, logs from 1 hour ago.

aws: waf-log-group-name: aws-waf-logs-cloudwatch-cloudfront region: us-east-1 retrive-logs-minutes-ago: 60
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Top Bottom