Mitigating spam submissions on AEM as a Cloud Service forms

Adobe Experience Manager as a Cloud Service (AEMaaCS) forms may continue to receive spam when malicious requests are distributed across multiple IP addresses, keeping each source below the configured CDN rate limit. To resolve the issue, strengthen CDN traffic filtering, add application-level protections such as CAPTCHA and server-side validation, and monitor form submission activity.

Description description

Environment

Adobe Experience Manager as a Cloud Service (AEMaaCS) (all versions)

Issue/Symptoms

  • Spam submissions continue on a public form endpoint despite configured CDN rate-limiting rules.
  • No rate-limit blocks occur because each client IP remains below the configured threshold.
  • Unwanted emails or form submissions continue to be processed.

Root cause

Attackers distribute spam requests across multiple client IP addresses, keeping each source below the configured rate limit. As a result, per-IP CDN rate limiting doesn’t trigger, and the form continues to accept spam submissions.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Review the limitations of per-IP rate limiting. Attackers can bypass these limits by distributing requests across multiple IP addresses.

  2. Enhance CDN traffic filtering by using AEM Traffic Filter Rules:

    • Identify known malicious IP addresses or ranges and add rules to block them at the CDN edge.
    • Apply geographic restrictions if spam originates from countries that the form doesn’t serve.
    • Block obvious bot user agents by denying requests with non-browser or suspicious user-agent strings.
    • Configure Traffic Filter Rules in cdn.yaml and deploy them through Cloud Manager.
  3. Harden the form at the application layer:

    • Implement a CAPTCHA, such as reCAPTCHA, and validate the response server-side before processing the submission.
    • Add a honeypot field that legitimate visitors don’t populate, and discard submissions when the field contains a value.
    • Strengthen server-side validation by enforcing POST-only submissions, enabling CSRF protection, and validating email addresses and message content.
    • Optionally, throttle submissions by email address or session.
  4. Use the built-in AEM protections. AEM as a Cloud Service provides network-level DDoS protection, automatic CDN rate limiting for high request rates, and JVM-level rate limiting on the Publish tier. These controls protect platform stability but may not block targeted, low-rate spam.

  5. After implementing the measures, monitor form submission logs and verify that spam activity decreases.

recommendation-more-help
experience-cloud-kcs-help-kbarticles