*This page
applies to **Apigee** and **Apigee hybrid**.*


*View [Apigee Edge](https://docs.apigee.com/api-platform/get-started/what-apigee-edge) documentation.*
![](https://fonts.gstatic.com/s/i/googlematerialicons/help/v13/gm_grey-24dp/1x/gm_help_gm_grey_24dp.png)

Message content is a significant attack vector used by malicious API consumers. API Services
provides a set of Policy types to mitigate the potential for your backend services to be
compromised by attackers or by malformed request payloads.

> [!NOTE]
> **Note:** This video was recorded with a previous version of the Apigee UI; however, the concepts are still valid.

The following video provides an overview and focuses on protecting against SQL injection
attacks.

<iframe allowfullscreen frameborder="0" height="390" src="https://www.youtube.com/embed/rC8kZJgwBFM" width="640"></iframe>

## JSON threat protection

JSON attacks attempt to use structures that overwhelm JSON parsers to crash a service and
induce application-level denial-of-service attacks.

Such attacks can be mitigated using the JSONThreatProtection Policy type.

See [JSON Threat
Protection policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/json-threat-protection-policy).

## XML threat protection

XML attacks attempt to use structures that overwhelm XML parsers to crash a service and induce
application-level denial-of-service attacks.

Such attacks can be mitigated using the XMLThreatProtection Policy type.

See [XML Threat
Protection policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/xml-threat-protection-policy).

## General content protection

Some content-based attacks use specific constructs in HTTP headers, query parameters, or
payload content to attempt to execute code. An example is SQL-injection attacks. Such attacks can
be mitigated using the RegularExpressionProtection Policy type.

See [Regular
Expression Protection policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/regular-expression-protection).