For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex Data Security

Salesforce connector

Use Salesforce data in Cortex Data Security.

Cortex Data Security provides three primary methods for connecting to your Salesforce instance. Your choice depends on whether you need to ingest security event logs for monitoring, use the guided wizard setup for integrated services, or deploy specific legacy content packs for niche workflows.

Product availability and licensing

This connector includes the following capabilities and sub-capabilities (if applicable), which are dependent on your licensing:

  • Data Security: Requires the Data Security product license as well as the Cloud Posture Security or Cloud Runtime Security product license to view data risks in Cortex Cloud.

  • Identity Posture: Requires the Data Security product license as well as the Cloud Posture Security or Cloud Runtime Security product license to view identity risks in Cortex Cloud.

Supported capabilities and sub-capabilities

Cortex Data Security can ingest identity metadata, login history, audit trails, and security monitoring events from Salesforce via capabilities to help you secure user identities, monitor for real-time threats, and automate issue response. To simplify setup, a wizard enables you to select specific capabilities based on your operational needs. The wizard then automatically identifies and provisions the underlying integrations required to support these capabilities.

The following table outlines the capabilities currently available in the wizard.

Capability
Functionality
Use Cases

Data Security

Scan and protect Salesforce data including files, attachments, and records.

  • Sensitive data discovery: Identify PII, PCI, or PHI stored in Salesforce objects or Chatter messages to ensure compliance.

  • Malware prevention: Scan file uploads and attachments in real time to prevent malicious content from spreading within the CRM.

  • Exposure monitoring: Detect and alert on data shared with external collaborators or inadvertently made public.

Identity Posture

Maintain visibility and control over SaaS-based identities, including users, groups, roles, and granular permissions.

How to configure the Salesforce connector

Perform the following procedures in the order that they appear, below.

Task 1. Configure the external client app in Salesforce

Salesforce is deprecating "Connected Apps"; it is recommended to use an external client app.

  1. On the Setup page, search for App Manager and click New External Client App.

  2. Provide a name (such as panw_cortex_integration), and your email address (used to retrieve the Consumer Key and Consumer Secret).

  3. Under API (enable OAuth settings), select Enable OAuth.

  4. Enter the following Callback URLs on separate lines (replacing {tenant external URL} with your tenant name):

    • https://{your-salesforce-domain}.my.salesforce.com/services/oauth2/callback

    • https://{tenant external URL}.paloaltonetworks.com/configuration/data-sources

    Note

    Do not use the generic login.salesforce.com address if your organization uses a custom Salesforce domain or a sandbox. You must replace {your-salesforce-domain} with your specific Salesforce instance name (for example, acme-inc.my.salesforce.com) to ensure proper authentication redirection.

  5. Select these OAuth Scopes:

    • Access and manage your Chatter data (chatter_api)

    • Manage user data via APIs (api)

    • Perform requests at any time (refresh_token, offline_access)

  6. Enable only these checkboxes after OAuth Scopes: Require Secret for Web Server Flow, Require Secret for Refresh Token Flow, and Enable Client Credentials Flow. For more information, see Salesforce Client Credentials Flow.

  7. Click Save, then Continue.

Task 2. Retrieve credentials in Salesforce

Consumer Key will be used for client_id, and Consumer Secret will be used for client_secret in OAuth 2.0.

  1. On the Setup page, search for External Client App Manager.

  2. Find your application (the one that you defined for Cortex Data Security), click the arrow button in the last column, and select Edit Settings.

  3. In the OAuth Settings area, click Consumer Key and Secret.

  4. Go back to the Salesforce Verify Your Identity page, paste the code received via email in the Verification Code box, and click Verify. One of the following will happen:

    • The Consumer Key and Consumer Secret will be sent to the email address that you configured earlier for the Cortex Data Security External Client App.

    • On the Salesforce External Client App Name page, the Consumer Details area will display the Consumer Key and Consumer Secret, and you will be able to copy them from here when required in the following procedures.

Task 3. Configure the refresh token expiration policy in Salesforce

  1. On the Setup page, search for External Client App Manager.

  2. Find your application (the one that you defined for Cortex Data Security), click the arrow button in the last column, and select Edit Policies.

  3. In the OAuth Policies area:

    • Under Plugin Policies - Permitted Users, select All users can self-authorize.

    • Set the refresh token policy to Expire refresh token if not used for specific time (recommended). For example, select this option and set it for 7 days.

Task 4. Configure the OAuth 2.0 application for Salesforce

Configure OAuth 2.0 authentication to call the Salesforce API with one of the following flows:

Task 5. Configure egress in Cortex Gateway

An Account Admin or Instance Administrator must configure egress settings in the Cortex Gateway to allow communication with your Salesforce Domain URL. For more information, see Egress Configurations.

  1. Log in to the Cortex Gateway with Account Admin or Instance Administrator permissions and click Permission Management.

  2. From the side menu, select Egress Configurations.

  3. In the TENANT dropdown, select the tenant where you are configuring the Salesforce integration.

  4. Click +Path to initiate a new path request.

  5. In the New Path dialog box, configure the following:

    • Requester: In the dropdown, select the requester from the list of users.

    • Flow: In the dropdown, select the appropriate data service option for a generic webhook/host out (or Salesforce if it is explicitly listed).

    • Path: Enter the domain name or host of your Salesforce instance (for example, your-company.my.salesforce.com).

      Note

      Do not include https:// or trailing slashes.

  6. Click Add to create the path. Once the status of the path shows as Approved in the Egress Configuration table, Cortex Data Security can successfully authenticate and execute commands against your Salesforce environment.

Task 6. Configure the Salesforce connector in Cortex Data Security

  1. Navigate to Settings → Data Sources & Integrations.

  2. Click + Add new.

  3. In the Add Data Sources or Integrations page, search for Salesforce.

  4. Under Recommended, hover over the new Salesforce integration and click Add Instance to launch the Salesforce wizard. The new Salesforce connector has the description: Salesforce CRM services for identity management, automation, remediation and SaaS Posture Security.

  5. Set up your Salesforce instance by following the wizard steps in the following tabs.

Capabilities tab

Configure the following.

  1. Instance name: Enter a unique name for your instance.

  2. Select capabilities: Choose the required instance functionality:

    • Data Security: Scan and protect Salesforce data including files, attachments, and records.

      Note

      To select this capability, you must first select the Identity Posture capability.

    • Identity Posture: Maintain visibility and control over SaaS-based identities, including users, groups, roles, and granular permissions.

  3. Click Next.

Connection tab

Enter credentials to securely authorize the connection.

  1. Domain URL: Copy the URL from your browser's address bar while logged into Salesforce and paste it into this field. This must be identical to the domain URL defined in the Cortex Gateway egress configuration in the Path field as explained in Task 5. If you did not configure egress in Cortex Gateway, you will get an error during verification. You can continue with instance configuration without verifying and set up egress at a later point.

  2. Click Apply.

Important

  1. Select Recommended or Advanced.

    • Recommended applies the suggested authentication method for all capabilities.

    • Advanced enables configuring unique credentials for each capability individually.

  2. Authenticate using OAuth 2.0 client credentials, vault credentials, or OAuth 2.0 web server.

  3. Click Done for each authentication method.

Configuration tab

Configure the following.

  • Under Security Posture:

    • Sync Interval: Defines how often the system checks your cloud environment for security risks, misconfigurations, and compliance updates. More frequent syncs may impact API rate limits. The default is every 15 minutes.

    • Application Tag: Assigns a category to your cloud resources based on their operational purpose. This helps you filter security alerts and apply different compliance policies to specific environments. The default is None.

Summary tab

A confirmation message shows that your Salesforce instance is successfully connected, with a list of relevant capabilities and sub capabilities statuses.

Once you confirm the summary details, click Save instance.

Task 7. (Optional) Edit or test existing Salesforce instance settings in Cortex Data Security

You can edit and test an existing instance after a successful initial connection between Salesforce and Cortex Data Security. Do this by clicking Test.

Task 8. (Optional) Perform post verification in Data Security

After onboarding is complete, verify asset discovery and data security findings.

1. Verify discovered assets

  1. Go to Inventory > All Assets.

  2. Filter the asset list by setting Provider to Salesforce.

  3. If applicable, filter by the relevant Category.

  4. Verify that Cortex discovers the following supported Salesforce asset types:

    • Salesforce User Storage: Files, including PDFs, images, and documents, uploaded by users across the Salesforce environment.

    • Knowledge Base: Knowledge base articles created within the Salesforce environment.

    • Chatter Messages: Text messages, posts, and comments created in user Chatter feeds and groups.

2. Verify policy findings

  1. Select an asset to open the details panel.

  2. Click the Overview tab to review general properties and total finding counts.

  3. Click Findings to review detected security findings, such as:

    • Social Security numbers (SSNs)

    • API keys or secrets

    • Credit card numbers

    • Other sensitive personally identifiable information (PII)

Last updated

Was this helpful?