You're viewing **Apigee Edge** documentation.  
[Go to the
**Apigee X** documentation](http://cloud.google.com/apigee/docs/api-platform/security/content-based-security). info

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.

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.apigee.com/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.apigee.com/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.apigee.com/api-platform/reference/policies/regular-expression-protection).