You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

waf.tf 2.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. resource "akamai_appsec_waf_mode" "waf_mode" {
  2. config_id = akamai_appsec_configuration.config.config_id
  3. security_policy_id = akamai_appsec_security_policy.security_policy.security_policy_id
  4. mode = "ASE_AUTO"
  5. }
  6. // WAF Attack Group Actions
  7. resource "akamai_appsec_attack_group" "attack_group_POLICY" {
  8. config_id = akamai_appsec_configuration.config.config_id
  9. security_policy_id = akamai_appsec_security_policy.security_policy.security_policy_id
  10. attack_group = "POLICY"
  11. attack_group_action = "alert"
  12. }
  13. resource "akamai_appsec_attack_group" "attack_group_WAT" {
  14. config_id = akamai_appsec_configuration.config.config_id
  15. security_policy_id = akamai_appsec_security_policy.security_policy.security_policy_id
  16. attack_group = "WAT"
  17. attack_group_action = "alert"
  18. }
  19. resource "akamai_appsec_attack_group" "attack_group_PROTOCOL" {
  20. config_id = akamai_appsec_configuration.config.config_id
  21. security_policy_id = akamai_appsec_security_policy.security_policy.security_policy_id
  22. attack_group = "PROTOCOL"
  23. attack_group_action = "alert"
  24. }
  25. resource "akamai_appsec_attack_group" "attack_group_SQL" {
  26. config_id = akamai_appsec_configuration.config.config_id
  27. security_policy_id = akamai_appsec_security_policy.security_policy.security_policy_id
  28. attack_group = "SQL"
  29. attack_group_action = "deny"
  30. }
  31. resource "akamai_appsec_attack_group" "attack_group_XSS" {
  32. config_id = akamai_appsec_configuration.config.config_id
  33. security_policy_id = akamai_appsec_security_policy.security_policy.security_policy_id
  34. attack_group = "XSS"
  35. attack_group_action = "alert"
  36. }
  37. resource "akamai_appsec_attack_group" "attack_group_CMD" {
  38. config_id = akamai_appsec_configuration.config.config_id
  39. security_policy_id = akamai_appsec_security_policy.security_policy.security_policy_id
  40. attack_group = "CMD"
  41. attack_group_action = "alert"
  42. }
  43. resource "akamai_appsec_attack_group" "attack_group_LFI" {
  44. config_id = akamai_appsec_configuration.config.config_id
  45. security_policy_id = akamai_appsec_security_policy.security_policy.security_policy_id
  46. attack_group = "LFI"
  47. attack_group_action = "alert"
  48. }
  49. resource "akamai_appsec_attack_group" "attack_group_RFI" {
  50. config_id = akamai_appsec_configuration.config.config_id
  51. security_policy_id = akamai_appsec_security_policy.security_policy.security_policy_id
  52. attack_group = "RFI"
  53. attack_group_action = "alert"
  54. }
  55. resource "akamai_appsec_attack_group" "attack_group_PLATFORM" {
  56. config_id = akamai_appsec_configuration.config.config_id
  57. security_policy_id = akamai_appsec_security_policy.security_policy.security_policy_id
  58. attack_group = "PLATFORM"
  59. attack_group_action = "alert"
  60. }