# Overview

[Echo](https://appexchange.salesforce.com/appxListingDetail?listingId=0b554838-2d4e-43cf-ad9b-e85fd0064514) is a Salesforce AppExchange solution that safeguards Salesforce Orgs against account takeover (ATO), social engineering, phishing, malware, session hijacking, bot activity, and other cyberattacks in real time with the help of JA4+ fingerprinting and AI.

To learn more about the JA4+ fingerprinting methods, read the [JA4+ announcement blog post](https://blog.foxio.io/ja4%2B-network-fingerprinting).

Echo fingerprints Users any time they access a Lightning App that's monitored by Echo. These fingerprints act as identifiers that represent the unique combination of software that Users access their Org(s) with. As a result, each fingerprint is a unique identifier for the User that produced it, and bad actors will leave behind noticeably different fingerprints from the Users whom they attempt to impersonate in a phishing, session hijacking, or other credential-based cyberattack.

However, because the software system that each User accesses their Org(s) changes over time (e.g., a User updates their operating system, a User logs in to their Salesforce account on a new laptop while on vacation), their fingerprints change slightly over time. To accurately differentiate legitimate Users from bad actors amid these natural fingerprint mutations, we've developed a proprietary, AI- and [JA4+ Database](https://ja4db.com/)-powered risk assessment algorithm that generates a risk score for each fingerprint.

The risk score associated with each fingerprint is what enables Echo to classify Org traffic as legitimate or malicious with a high degree of confidence.

Salesforce Admins can prevent bad actors from accessing their Org's data by creating Triggers and Flows that revoke sessions, send messages, email response team(s), and take other thwarting actions when malicious fingerprints are detected by Echo.

## How It Works

The solution is centralized around a Lightning Background Utility Component named `DarkSailFingerprinter`. Adding this Background Utility Component to a Lightning App enables Echo to fingerprint all traffic that accesses that Lightning App by hitting the DarkSail API at <https://darksail.ai/api/v1/fingerprint>. The subsequent response from our endpoint contains the fingerprint data that are used to populate a Salesforce Custom Object named `Fingerprint`:

| Key              | Value Type | Value Description                                                                                                                        |
| ---------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| User             | `string`   | The User's Salesforce ID                                                                                                                 |
| Fingerprint JA4  | `string`   | The User's JA4 (TLS client) fingerprint                                                                                                  |
| Fingerprint JA4H | `string`   | The User's JA4H (HTTP client) fingerprint                                                                                                |
| Fingerprint JA4L | `string`   | The User's JA4L (light distance) fingerprint                                                                                             |
| Risk Score       | `number`   | <p>The perceived risk of the Fingerprint, as assessed by DarkSail<br><br>Takes on a value between 0 (no risk) and 100 (maximum risk)</p> |
| Count Seen       | `number`   | The number of observations of this exact Fingerprint                                                                                     |
| First Seen       | `datetime` | When this Fingerprint was first generated                                                                                                |
| Last Seen        | `datetime` | When this Fingerprint was last generated                                                                                                 |
| Created By       | `User`     | The Salesforce ID of the creator of the Fingerprint                                                                                      |
| Last Modified By | `User`     | The Salesforce ID of the last User who altered the Fingerprint                                                                           |
| Owner            | `User`     | The Salesforce ID of the owner of the Fingerprint                                                                                        |
| Fingerprint Name | `string`   | The unique identifier for the Fingerprint                                                                                                |

In addition to `Fingerprint`, fingerprint data is surfaced as a Custom Platform Event and in the Real-Time Event Monitoring (RTEM) service:

### Custom Object

A Custom Object is a simple way to store data unique to your Salesforce Org. Data stored in Custom Objects can be read via SOQL, displayed on Dashboards or Reports, and accessed through several other Salesforce services.

### Custom Platform Event

Platform Events are secure and scalable messages that contain data. This is a great method for storing and processing fingerprints outside of Salesforce in destinations like security information and event management applications (SIEMS). Platform Events employ a pub/sub model, allowing external applications to subscribe to data streams and consume them in real time.

### Real-Time Event Monitoring (RTEM)

RTEM is a product within Salesforce Shield that generates several standard events that can be acted on in real time through Transaction Security Policies. These Policies execute code that acts on Event Objects (like fingerprint data from Echo), enabling actions like triggering a multi-factor authentication process, triggering a password change request, or logging a User out.

Echo injects generated fingerprints and their associated risk scores into the `AdditionalInfo` field of the `ApiEvent` Object.


# Setup

{% content-ref url="/pages/uY4UJT5ij8uw1KdHYB6S" %}
[Installation](/echo-salesforce/setup/installation)
{% endcontent-ref %}

{% content-ref url="/pages/lusdwWyBcXvpu76P6tKV" %}
[Configuration](/echo-salesforce/setup/configuration)
{% endcontent-ref %}


# Installation

* [ ] Navigate to our solution's [listing](https://appexchange.salesforce.com/appxListingDetail?listingId=0b554838-2d4e-43cf-ad9b-e85fd0064514) on the Salesforce AppExchange and press the "Get It Now" button
* [ ] When prompted, choose where you'd like to install Echo

<figure><img src="https://3394307815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB5WsldqXR9PZOJ5i23VQ%2Fuploads%2FkUii5r8rQU5BW6d1ldFd%2Fimage.png?alt=media&amp;token=d7a21397-5a6f-4370-aeaa-fb7692c0725c" alt=""><figcaption></figcaption></figure>

* [ ] When prompted, confirm the installation details and agree to the Salesforce Program Agreement

<figure><img src="https://3394307815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB5WsldqXR9PZOJ5i23VQ%2Fuploads%2F0WS2Wa9lLG44s2whlg3p%2Fimage.png?alt=media&amp;token=2e948123-eab5-4748-a333-7cf4382956fb" alt=""><figcaption></figcaption></figure>

* [ ] Enter the installation key: *DarkSailBetaQ3*, and choose which of your Org's profiles you'd like to install Echo for. We recommend installing Echo for at least your Org's Admins, but you should also install the solution for Profile(s) associated with Users who will be accessing and processing the data and dashboards that Echo produces\
  \
  🚨 It's important to note that Echo fingerprints *all* Users, regardless of whether they belong to Profiles that Echo has been installed for, who access monitored Lightning Apps

<figure><img src="https://3394307815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB5WsldqXR9PZOJ5i23VQ%2Fuploads%2FgSoc5p7j6FFzlYyvvmLJ%2Fimage.png?alt=media&amp;token=1d0290a5-7af3-4a1f-a2c7-73a0cfa0553e" alt=""><figcaption></figcaption></figure>

* [ ] When prompted, approve third-party access to the DarkSail API endpoint hosted at <https://darksail.ai>. This approval allows your Org to receive fingerprint data from DarkSail.

<figure><img src="https://3394307815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB5WsldqXR9PZOJ5i23VQ%2Fuploads%2F3qt8w7vmGdnQc0nE7dPF%2Fimage.png?alt=media&amp;token=cbf4a840-d36f-4449-8cbe-f938ad6f39ea" alt=""><figcaption></figcaption></figure>


# Configuration

## Connect Your Org to the DarkSail API

### Create a Service Worker

* [ ] Navigate to the Salesforce Setup Menu by clicking the gear icon at the top of any Salesforce page and selecting "Setup"

<figure><img src="https://3394307815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB5WsldqXR9PZOJ5i23VQ%2Fuploads%2FORrPoHajTswhBr8tJTdE%2Fsetup.png?alt=media&amp;token=ec22cbbd-ec77-45e2-849d-b1cc2f4ada41" alt=""><figcaption></figcaption></figure>

* [ ] Navigate to the Users setup page by entering the query *Users* in the Quick Find search box in the navigation bar on the left side of the page
* [ ] Create a new User by clicking the "New User" button

<figure><img src="https://3394307815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB5WsldqXR9PZOJ5i23VQ%2Fuploads%2FdJjqB6PgGs1rgQWKrSp5%2Fnew%20user.png?alt=media&amp;token=f109c619-9dc8-45eb-8f9f-92246678e3ef" alt=""><figcaption></figcaption></figure>

* [ ] Assign the service worker User the "Salesforce Integration" User License and the "Minimum Access - API Only Integrations" Profile. Configure the other User settings as you see fit
* [ ] Save the new User by clicking the "Save" button
* [ ] On the Users setup page, view the service worker User you created by clicking the User's username
* [ ] Click the "Edit Assignments" button in the Permission Set Assignments section

<figure><img src="https://3394307815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB5WsldqXR9PZOJ5i23VQ%2Fuploads%2FMmVSrSCynmza2lUUIvhJ%2Fedit%20assignments.png?alt=media&amp;token=45beca61-254e-4cec-92b5-b95b5e48091d" alt=""><figcaption></figcaption></figure>

* [ ] Under Available Permission Sets, find the "EchoServiceWorker" Permission Set, click it, and enable it for the User by clicking the "Add" button

### Configure the Echo Connected App

* [ ] Navigate to the Salesforce Setup Menu
* [ ] Navigate to the Manage Connected Apps setup page
* [ ] Click the "Edit" button next to the EchoCA Connected App listed in the table
* [ ] Under Custom Connected App Handler, enter the name of the service worker User in the Run As input field

### Configure the Echo Auth. Provider

* [ ] Navigate to the Salesforce Setup Menu
* [ ] Navigate to the Manage Connected Apps setup page
* [ ] Click the "View" button next to the EchoCA Connected App listed in the table
* [ ] Under API, click the "Manage Consumer Details" button
* [ ] Generate a new set of Consumer credentials by clicking the "Generate" button, and then save those credentials to the Connected App by clicking the "Apply" button
* [ ] In a new window, navigate to the Salesforce Setup Menu
* [ ] Navigate to the Auth. Providers setup page
* [ ] Click the "Edit" button next to the EchoAuthProv Auth. Provider listed in the table
* [ ] Copy the Consumer Key and Consumer Secret values from the Consumer Details page, and paste them into the corresponding fields on the Auth. Provider Edit page
* [ ] Enter *<https://your-domain.my.salesforce.com/services/oauth2/authorize>* in the Authorize Endpoint URL input field, replacing *your-domain* with your Org's My Domain
* [ ] Enter *<https://your-domain.my.salesforce.com/services/oauth2/token>* in the Token Endpoint URL input field, again replacing *your-domain* with your Org's My Domain
* [ ] Save the Auth. Provider configuration by clicking the "Save" button

### Configure the Echo Named Credentials

* [ ] Navigate to the Salesforce Setup Menu
* [ ] Navigate to the Named Credentials setup page
* [ ] Click the "Edit" button next to the EchoNCred Named Credential listed in the table
* [ ] Replace *your-domain* with your Org's My Domain in the URL input field
* [ ] Save the Named Credential configuration by clicking the "Save" button
* [ ] On the Named Credentials setup page, click the "Edit" button next to the EchoExtCred Named Credential listed in the table
* [ ] Replace *your-domain* with your Org's My Domain in the URL input field
* [ ] Save the Named Credential configuration by clicking the "Save" button

## Add the Lightning Background Utility Component to Your Org's Lightning Apps

* [ ] Navigate to the Salesforce Setup Menu
* [ ] Navigate to the App Manager setup page

Complete the following steps for each Lightning App you'd like to fingerprint all traffic to:

* [ ] Click the dropdown button and then the "Edit" button next to the Lightning App listed in the table

<figure><img src="https://3394307815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB5WsldqXR9PZOJ5i23VQ%2Fuploads%2Fxi3wm6VcRVpt2Ke8EJKC%2Fedit.png?alt=media&amp;token=dcab3b4a-1c0c-46f8-b62f-edfa050c4a19" alt=""><figcaption></figcaption></figure>

* [ ] Navigate to the Utility Items App Settings page by clicking the "Utility Items (Desktop Only)" button in the navigation bar on the left side of the page

<figure><img src="https://3394307815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB5WsldqXR9PZOJ5i23VQ%2Fuploads%2F41UygxkiQdUBuuKZZRP3%2Futility%20items.png?alt=media&amp;token=0312dbd1-2e6f-4810-ab11-5b04becbd959" alt=""><figcaption></figcaption></figure>

* [ ] Click the "Add Utility Item" button above the Utility Item table

<figure><img src="https://3394307815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB5WsldqXR9PZOJ5i23VQ%2Fuploads%2FzvkIJN4IM3GDHzSjNc3H%2Fadd%20utility%20item.png?alt=media&amp;token=2a048367-810c-447e-96b1-a82bef79447c" alt=""><figcaption></figcaption></figure>

* [ ] Under the Custom - Managed section, click the "DarkSailFingerprinter" Utility Item to add it to your Lightning App
* [ ] Save the Lightning App configuration by clicking the "Save" button

<figure><img src="https://3394307815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB5WsldqXR9PZOJ5i23VQ%2Fuploads%2FryNP0g52ViYE0fCdiX7o%2Fsave.png?alt=media&amp;token=e5b1cd98-9c12-4c1c-b56a-d24cf2b2ac91" alt=""><figcaption></figcaption></figure>


# Usage

Fingerprints captured from Echo-monitored Lightning Apps can be viewed and visualized in the DarkSail Lightning App by Users associated with Profile(s) that Echo was installed for during setup

<figure><img src="https://3394307815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB5WsldqXR9PZOJ5i23VQ%2Fuploads%2FsnTt7d2UKjGTinX4GIUy%2Fimage.png?alt=media&amp;token=22a1e700-f2db-4426-a84b-787de4ab52d7" alt=""><figcaption></figcaption></figure>


# Contact Us

Reach out to us at <help@darksail.ai> if you have any issues with our products.


