Configure API security from end to end
Secure your API landscape through third-party integrations and agent-based protection policies.
Implementing end-to-end API security means establishing comprehensive protection across the entire API lifecycle. This process begins by integrating with third-party cloud providers to enable thorough scanning of your APIs for threats and vulnerabilities. Following this, you'll configure profiles for agent-based protection, which actively safeguards your APIs in real-time. This ensures that every potential vulnerability, from authentication and authorization issues to data encryption and threat monitoring, is addressed across your entire API ecosystem.
For more information on how to configure, refer to:
Third-party integrations
Easily configure the settings in both Cortex Cloud and your cloud service to retrieve and collect API data for further analysis by Cortex's comprehensive API security capabilities, which provide a transparent view of API traffic, helping to identify potential security threats.
Ingest AWS API Gateway
Integrate AWS API Gateway with Cortex Cloud to begin scanning the APIs for potential threats and vulnerabilities.
Ingest Azure APIM
Integrate Azure APIM with Cortex Cloud to start scanning its APIs for potential threats and vulnerabilities.
You need to set up a policy that enables you to customize the behavior of managed APIs. You can configure the sending of HTTP request/response data to Cortex Cloud. The data is saved and analyzed by API security modules, which provide information on the security risks associated with the APIs.
Ingest Apigee Proxy
Integrate Apigee Proxy with Cortex Cloud to begin scanning the APIs for potential threats and vulnerabilities.
The integration uses the Apigee’s JavaScript (JS) policy, implemented within a shared flow and deployed as a pre-proxy and post-proxy flow-hook in selected environments. The JS policy is designed to capture both request and response data from all traffic entering and exiting the proxy.
First, download the resource file and then select the method to set up the integration with Apigee.
Ingest Kong
Integrate Kong with Cortex Cloud to start scanning its APIs for potential threats and vulnerabilities.
You need to integrate a dedicated Kong HTTP log plugin. This plugin enables seamless traffic ingestion from your Kong API gateway to Cortex Cloud, allowing for comprehensive security measures such as OWASP Top-10, bot detection, access control, and more.
Follow the steps to integrate Kong's API gateway with Cortex Cloud.
Ingest-F5
Integrate F5 with Cortex Cloud to start scanning its APIs for potential threats and vulnerabilities.
You need to integrate a dedicated F5 log plugin. This plugin enables seamless traffic ingestion from your F5 gateway to Cortex Cloud, allowing for comprehensive security measures such as OWASP Top-10, bot detection, access control, and more.
Agent-based protection
Cortex Cloud can protect your workloads from various types of injection attacks, exploitation attempts, known vulnerabilities, automated tools, and more. In addition, your cloud workloads can be protected against evolving threats aggregated from commercial threat feeds, open-source threat feeds, and input from the Palo Alto Networks Unit 42 research team.
Web and API Security profiles provide comprehensive real-time detection and protection for web-based applications and APIs running on Linux-based workloads, to prevent cloud attacks. These profiles can be applied to policies for such workloads.
You can configure Cortex Cloud to either monitor traffic for threats, or to actively block them. A fully configurable profile gives you the flexibility to protect your workloads based on specific needs for each type of threat.
Follow these steps to configure profiles and policies for cloud workloads:
(Optional) Task 3: Configure exception rules, such as legacy exception rules and support exception rules. Disable prevention rules for specific use cases.
The following table summarizes the workload protection features provided by Cortex Cloud prevention profiles and policies:
Advanced Threat Protection
Advanced Threat Protection (ATP) is a comprehensive security feature designed to detect, prevent, and respond to sophisticated Web and API threats, ensuring robust protection for workloads against evolving risks.
Authentication bypass
The Cortex Cloud authentication bypass module protects against attacks that attempt to circumvent authentication controls through session manipulation, token exploitation, or credential abuse.
Automation tools
Cortex Cloud detects and protects against automated tools or services that scrape website contents such as Scriptable headless web browsers, command line tools, or HTTP libraries.
Cross-Site Scripting (XSS) injection
Cortex Cloud protects against XSS attacks, in which malicious JavaScript snippets are injected into otherwise benign and trusted websites. In such attacks, attackers try to trick the browser into switching to a JavaScript context and executing arbitrary code.
CVE exploits
Cortex Cloud protects against exploitation attempts of known vulnerabilities (Common Vulnerabilities and Exposures (CVEs)).
Malformed Traffic
Cortex Cloud identifies and protects against HTTP requests with anomalies that are not expected from common web browsers.
Injection attacks
Injection attacks are a form of attacks in which attackers attempt to insert malicious input into an application to manipulate its execution. For example, a code injection attack injects code which is interpreted by the application or other runtimes. Command and code payloads can either be injected as part of HTTP requests, or are included from local or remote files (also known as File Inclusion attacks).
Known bots
Cortex Cloud can identify legitimate bots that properly declare their identity and purpose, such as search engine crawlers and authorized web indexers. These bots follow standard protocols and provide verifiable operator information, however some of them might cause undesirable behaviors, such as spam, and you might prefer to block such bots.
Offensive tools
Cortex Cloud identifies offensive tools that scan web applications for known security vulnerabilities and misconfiguration, and exploit them.
Sensitive data exposure
Cortex Cloud protects workloads from providing responses that could expose sensitive data found in critical system files, including password hashes (/etc/shadow), user account information (/etc/passwd), and private encryption keys.
SQL injection (SQLi)
Cortex Cloud protects against SQLi attacks, which can occur when an attacker successfully inserts a malicious SQL query into the input fields of a web application. A successful attack can read sensitive data from the database, modify data in the database, or run arbitrary commands.
Set up Web and API Security profiles
You can configure Web and API Security profiles to provide comprehensive real-time detection and protection for web-based applications and APIs running on Linux-based workloads. These profiles can be applied to policies for such workloads.
For each setting that you want to override, clear the corresponding option to Use Default, and then select the setting of your choice.
Note
In this profile, the Report options configure the workload to report the corresponding malicious applications or APIs to Cortex Cloud, without blocking them. The Disabled options configure the workloads to neither analyze nor report the corresponding malware or behavior.
Add a new profile and define basic settings.
From Cortex Cloud, select Inventory → Endpoints → Policy Management → Prevention → Profiles. Click +Add Profile, and select whether to create a new profile, or to import a profile from a file.
Select the Linux platform, and Web & API Security as the profile type.
Click Next.
Enter a unique Profile Name for the profile. The name can contain only letters, numbers, or spaces, and must be no more than 30 characters. The name will be visible from the list of profiles when you configure a policy rule.
(Optional) Enter a description that describes the intention or business purpose of the profile.
Configure Action Mode options. If you choose Enable, you can then configure each item separately.
ItemOptionsMore detailsAction Mode
Enable
Disable
When set to Enable, Cortex Cloud performs the configured action for each of the options.
XSS
Block
Report
Disable
When Cortex Cloud detects cross-site scripting (XSS) injection, it performs the configured action.
XSS attacks are attacks in which malicious JavaScript snippets are injected into otherwise benign and trusted websites. In such attacks, attackers try to trick the browser into switching to a JavaScript context and executing arbitrary code.
SQL Injection
Block
Report
Disable
When Cortex Cloud detects SQL injection (SQLi) attempts, it performs the configured action.
(SQLi) attacks can occur when an attacker successfully inserts a malicious SQL query into the input fields of a web application. A successful attack can read sensitive data from the database, modify data in the database, or run arbitrary commands.
Injection Attacks
Block
Report
Disable
When Cortex Cloud detects injection attacks, it performs the configured action.
Injection attacks are a form of attacks in which attackers attempt to insert malicious input into an application to manipulate its execution. Command and code payloads can either be injected as part of HTTP requests, or are included from local or remote files (also known as File Inclusion attacks).
CVE Exploits
Block
Report
Disable
When Cortex Cloud detects known vulnerabilities (Common Vulnerabilities and Exposures (CVEs)), it performs the configured action.
Sensitive Data Exposure
Block
Report
Disable
When Cortex Cloud protects workloads from exposing sensitive data, it performs the configured action.
This module protects workloads from providing responses that could expose sensitive data found in critical system files, including password hashes (/etc/shadow), user account information (/etc/passwd), and private encryption keys.
Authentication Bypass
Block
Report
Disable
When Cortex Cloud detects attempts to bypass authentication controls, it performs the configured action.
This module protects against attacks that attempt to circumvent authentication controls through session manipulation, token exploitation, or credential abuse.
Advanced Threat Protection
Block
Report
Disable
When Cortex Cloud detects evolving threats, it performs the configured action.
Advanced Threat Protection (ATP) is a comprehensive security feature designed to detect, prevent, and respond to sophisticated web and API threats, ensuring robust protection for workloads against evolving risks.
Offensive Tools
Block
Report
Disable
Cortex Cloud can identify offensive tools that scan web applications for known security vulnerabilities and misconfiguration, and exploit them. When such tools are found, this module can block or report them.
Malformed Traffic
Block
Report
Disable
When Cortex Cloud detects HTTP requests with anomalies that are not expected from common web browsers, it performs the configured action.
Automation Tools
Block
Report
Disable
When Cortex Cloud detects automated tools, it performs the configured action.
Malicious automated tools or services can scrape website contents such as Scriptable headless web browsers, command line tools, or HTTP libraries.
Known Bots
Block
Report
Disable
When Cortex Cloud detects known bots, it performs the configured action.
Cortex Cloud can identify legitimate bots that properly declare their identity and purpose, such as search engine crawlers and authorized web indexers. These bots follow standard protocols and provide verifiable operator information, however some of them might cause undesirable behaviors, such as spam, and you might prefer to block such bots.
To save the profile, click Create.
What to do next
If you are ready to apply your new profile to endpoints, you do this by adding it to a policy rule. If you still need to define other profiles, you can do this later. During policy rule creation or editing, you select the endpoints to which to assign the policy. There are different ways of doing this, such as:
Apply Web and API Security profiles to workloads
Cortex Cloud provides out-of-the-box protection for all registered workloads with a default security policy. To customize your security policy, create or edit one or more security profiles, and then attach the profiles to one or more policies.
Each policy you create must apply to one or more workload or workload groups. The Prevention Policy Rules table lists all the policy rules per operating system. Rules associated with one or more targets that are beyond your defined user scope are locked and cannot be edited.
From Cortex Cloud, create a policy rule.
Do one of the following:
Select Inventory → Endpoints → Policy Management → Prevention → Policy Rules, and select + New Policy or Import from File.
Note
When importing a policy, select whether to enable the associated policy targets. Rules within the imported policy are managed as follows:
New rules are added to the top of the list.
Default rules override the default rule in the target tenant.
Rules without a defined target are disabled until the target is specified.
Select Inventory → Endpoints → Policy Management → Prevention → Profiles, right-click the profile that you want to assign, and click Create a new policy rule using this profile.
Enter a policy name, and a description (optional) that describes the purpose or intent of the policy.
Select the Platform for which you want to create a new policy.
Select the desired profiles that you want to apply in this policy.
If you do not specify a profile, the default profiles are used.
Click Next.
Use the filters to assign the policy to one or more workloads or workload groups.
Cortex Cloud automatically applies the platform filter you selected and, if it exists, the Group Name according to the groups within your defined user scope.
Click Done.
In the Policy Rules table, change the rule position, if needed, to order the policy relative to other policies.
The Cortex XDR agent evaluates policies from top to bottom. When the Cortex XDR agent finds the first match, it applies that policy as the active policy. To move the rule, select the arrows and drag the policy to the desired location in the policy hierarchy.
Right-click to display and use one of the following options View Policy Details, Edit, Save as New, Disable, and Delete.
Manage Web and API Security prevention profiles
After you create and customize your Web and API Security prevention profiles, you can manage them from the Prevention Profiles page as needed.
View information about your Web and API Security prevention profiles
The following table displays the fields that are available on the Prevention Profiles page, in alphabetical order. The table includes both default fields and additional fields that are available in the column manager. To view this page, go to Inventory → Endpoints → Policy Management → Prevention → Profiles.
Associated Targets
The endpoints or endpoint groups to which the profile is assigned
Created By
The administrator who created the prevention profile
Created Time
The date and time at which the prevention profile was created
Description
An optional description entered by an administrator to describe the prevention profile
Modification Time
The date and time at which the prevention profile was modified
Modified By
The administrator who modified the prevention profile
Name
The prevention profile name
Profile ID
The ID assigned to to the profile by Cortex Cloud
Summary
Summary of prevention profile configuration
Type
The prevention profile type
Usage Count
The number of policy rules that use the profile. If you want to delete a profile, ensure that this cell displays "0".
Add a disable prevention rule for cloud workloads
You can create granular exceptions to prevention actions defined for your workloads. These exception rules may be useful when you have processes that are essential to your organization, and must not be terminated. To cover all your workloads, you can configure different exception rules per platform. Cortex Cloud still generates issues from the disabled rules.
Important
All applicable prevention actions are skipped for the files and process that match the properties defined in the rule.
Consider the consequences of disabling a prevention rule before you add the exception, and monitor it over time.
Go to Settings → Exceptions Configuration → Disable Prevention Rules.
Click Add Rule, and select Web and API Security.
For Rule Name, enter a meaningful name for the rule.
(Optional) Enter a description for the business reason or intent for the rule.
Click Next.
For Exception Effect, choose an option:
Disable prevention and report: Disable the prevention modules included in this rule and report on it.
Disable prevention and do not report: Disable the prevention modules included in this rule but do not report on it.
For Platform, select the operating system that you require.
Under Target Properties, you can configure any combination of parameters. If a parameter is not specified, all values are allowed. You can use wildcards for matching. Press Enter to add the target properties. Repeat this step for additional target properties.
When you specify two or more values, the exception is applied only if the file satisfies all the specified target properties.
Domain: Specify a domain.
IP: Specify an IP address.
User Agent: Specify the application's User-Agent ID that is used in the headers of an API request.
For example, if the user agent is
"User-Agent:paypal.com", enterpaypal.comhere.Path: Specify the path to the required files or folders.
For Modules, select one or more security modules that won't trigger prevention actions.
The actions triggered by the other modules are not affected.
For Scope, select the scope for the rule:
If you want to apply the rule to all workloads, select Global.
If you want to apply the rule to only specific exception profiles, click Exception Profiles, and then select them from the list.
Click Next.
Review the configurations for the exception, and if the risks are acceptable to you, select I understand the risk, and then click Create.
Add a support exception rule for cloud workloads
You can define and manage exceptions based on files received from the customer support team. You can apply the rule across all of your workloads or to specific profiles.
From Settings → Exceptions Configuration → Support Exception Rules, click + Import from file.
Locate the JSON file that you received from the customer support team, and either drag and drop the file to this dialog box, or click Browse to locate the file.
Select Profile/s to apply the rule to one or more specific profiles, or select Global to apply to all workloads.
If you want to apply the rule to existing profiles, select them from the list.
If you want to apply the rule to a new profile, click New Profile, and enter the name of the new profile.
Click Import.
Add a legacy exception rule for cloud workloads
Legacy Exception rules enable you to configure an exception to prevention and protection modules on workloads for selected profiles.
Items included in allow lists may continue to generate Cortex Cloud security events. If you want to exclude event reporting, configure this on the Issue Exclusions page (Settings → Exception Configurations → Issue Exclusions).
Select Cases & Issues → Issues.
Locate an issue from which you can create an exception rule, and right-click it.
Select Manage Issue → Create Issue Exception.
Select the items that you want to be included in the exception rule:
Domain: The domain to be excluded by the rule. For example, google.com
Path: The path to files or folders to be excluded by the rule.
User-Agent: The application's User-Agent ID to be excluded by the rule. For example, a User-Agent ID for the curl application could be
curl/7.68.0IP address: The IP address to be excluded by the rule.
Select an option for Exception Scope:
Global: Apply the exception rule globally for all workloads.
Profile: Apply the rule only to workloads mapped to the profile selected in the next step.
If you selected Profile, select a profile from the Exception Profile Name list.
Click Create.
Your rule is created, and can be viewed at the following location: Settings → Exceptions Configuration → Legacy Agent Exceptions.
Additional workload management tasks
Several management activities that can be performed on workloads are accessible from Inventory → Endpoints → All Endpoints and from Inventory → Endpoints → Groups. On these pages, select one or more workloads, and right-click to access the available actions and configuration options.
Last updated
Was this helpful?

