PingIntelligence for APIs provides a sideband policy that is installed in CloudFront. The policy uses AWS Lambda functions to pass API metadata to PingIntelligence for detailed API activity reporting and attack detection with optional client blocking.

PingIntelligence provides an automated tool to deploy a PingIntelligence policy, which is implemented using the AWS Lambda functions. The policy requires AWS CloudFront to be present with all caching disabled. AWS Lambda functions must be initially deployed in the US-East-1 region, and the policy definition is pushed to any region with your API Gateways after the PingIntelligence policy is added.

The PingIntelligence sideband policy requires a CloudFront instance, which can be an existing or new instance.

Important:

The default AWS Lambda memory is sufficient for up to 1000 QPS. For a larger QPS, contact PingIdentity support. See the aws.properties file for default origin response value.

The following diagram shows the logical setup of PingIntelligence ASE (API Security Enforcer) and CloudFront.


This diagram shows the logical setup of PingIntelligence ASE(API Security Enforcer) and CloudFront:

The traffic flow through the CloudFront and PingIntelligence for APIs components is as follows:

  1. An incoming API client request destined for the API Gateway arrives at CloudFront.
  2. A PingIntelligence AWS Lambda policy makes an API call to send the request metadata to PingIntelligence ASE.
  3. ASE checks the request against a registered set of APIs and looks for the origin IP, cookie, OAuth2 token, or API key in the ABS (API Behavioral Security) AI engine generated blacklist. If all checks pass, ASE returns a 200-OK response to AWS Lambda. If the checks don't pass, ASE sends a 403 response code to AWS Lambda. The request information is also logged by ASE and sent to the ABS AI Engine for processing.
  4. If CloudFront receives a 200-OK response from ASE, it forwards the client request to the backend server. Otherwise, the CloudFront blocks the client when blocking is enabled for the API.
  5. CloudFront receives the response from the backend server.
  6. The Lambda response function makes a second API call to pass the response information to ASE.
  7. ASE receives the response information and sends a 200-OK to AWS Lambda. The response information is also logged by ASE and sent to the ABS AI Engine for processing.
  8. CloudFront sends the response received from the backend server to the client.