1. Resources
  2. Detection sources
  3. DAVINCI_CONNECTOR.CUSTOM_JAVASCRIPT_ADDED

DAVINCI_CONNECTOR.CUSTOM_JAVASCRIPT_ADDED: Custom JavaScript was added to a PingOne DaVinci connector's configuration

Recorded when custom JavaScript is added to the configuration of a DaVinci connector instance. Connectors run inside sign-on flows, so script in their configuration runs while users authenticate and needs the review of any new code.

Log source
PingOne audit activities
Detection value
Supporting
Volume
Low (estimate)
Last updated
Log
PingOne audit activities (PingOne audit activities, on by default)
Service
PingOne audit activities
Operation
DAVINCI_CONNECTOR.CUSTOM_JAVASCRIPT_ADDED
Detects
1 attack (1 rule)
MITRE ATT&CK
2 techniques in 4 tactics
Threat groups
4 groups that MITRE ATT&CK records using these techniques
Fields the rules read
action.type

When it is written

A DaVinci connector instance is a configured integration that flow nodes call to perform their tasks. PingOne writes this activity when custom JavaScript is added in a connector's configuration; Ping's example description reads "Custom JavaScript added in ... Connector Configurations" with the connector's name. _embedded.davinciConnector names the connector instance, its display name, type and category.

The API event reference lists this activity as DAVINCI_CONNECTOR.CUSTOM_JAVASCRIPT_ADDED. Ping's administration guide does not use a connector type: it writes connector script events (added and updated) under the flow type DAVINCI.FLOW.CUSTOM_JAVASCRIPT.ADDED, told apart by resources.type = DAVINCI_CONNECTOR. Check one activity in your own log; in the guide's form, the activity appears on the page of the flow type.

The activity does not contain the script.

How to turn it on

PingOne audit activities records DAVINCI_CONNECTOR.CUSTOM_JAVASCRIPT_ADDED calls to PingOne audit activities without any setup. Vendor documentation

PingOne records audit activities in every environment without any setup. Administrators read them under Monitoring > Audit, and the Audit Activities API returns the same records. Neither is a collection point: to keep the records and send them to a SIEM, create a webhook (a subscription) in every environment.

  • Retention: Ping keeps user events (authentications, user changes) for 90 days, configuration events of the admin console for 2 years and DaVinci administrative events for 90 days. Data up to 14 days old is available at once; older data has to be retrieved first, at most 14 days per request, which takes 2 to 24 hours.
  • A webhook sends only the event types it lists (filterOptions.includedActionTypes), so add the types the rules read. Choose the Ping Activity Format, the format of the API and of these pages; the Splunk and New Relic formats name fields differently.
  • Not every audit event type can be sent by a webhook. The webhook service accepts only the types on its own supported list and rejects a request that names another one; Ping gives TRUSTED_ISSUER.CREATED and SSO_COOKIE_SETTINGS.UPDATED, both audit events, as examples. Ping does not publish that list (the error message returns it), so check for each type the rules read that your webhook accepted it, and read a type it refuses through the Audit Activities API.
  • The source IP address and user agent are left out of webhook events unless Include IP address and Include User Agent are selected. Rules that count by source.ipAddress need the address.
  • A webhook request carries up to 500 events, and Ping holds events no more than 2 seconds before sending. If the destination is down, PingOne retries and queues the events; after 7 days it starts to lose them.
  • Ping documents that the Audit Activities API has a lower rate limit than other endpoints and points to webhooks for high-volume events.

The commands below call the PingOne API with curl and jq. Set API_PATH to the API base URL of your region (for example https://api.pingone.com), ENV_ID to the environment ID and TOKEN to an access token whose roles grant subscriptions:read:subscription, orgmgt:read:environment and audit_reporting:read:activity.

List the webhooks of an environment, the event types each sends and whether it includes the IP address (read only)
curl -s "$API_PATH/v1/environments/$ENV_ID/subscriptions" -H "Authorization: Bearer $TOKEN" | jq '._embedded.subscriptions[] | {name, enabled, format, ipAddressExposed: .filterOptions.ipAddressExposed, types: .filterOptions.includedActionTypes}'
Based on vendor documentation.
List the environments of the organization, each of which needs its own webhook (read only)
curl -s "$API_PATH/v1/environments" -H "Authorization: Bearer $TOKEN" | jq '._embedded.environments[] | {id, name, type}'
Based on vendor documentation.
Find recent DAVINCI_CONNECTOR.CUSTOM_JAVASCRIPT_ADDED records (read only)
curl -s -G "$API_PATH/v1/environments/$ENV_ID/activities" -H "Authorization: Bearer $TOKEN" --data-urlencode "filter=recordedat gt \"$(date -u -d '-7 days' +%FT%TZ)\" AND recordedat lt \"$(date -u +%FT%TZ)\" AND action.type eq \"DAVINCI_CONNECTOR.CUSTOM_JAVASCRIPT_ADDED\""
Based on vendor documentation.

Fields

The operation’s own fields first, then the fields every PingOne audit activities record has. Field names are the JSON paths of the record as the vendor documents it.

FieldWhat it holds
_embedded.davinciConnector.connectorInstanceIdID of the connector instance whose configuration changed.
_embedded.davinciConnector.connectorDisplayNameDisplay name of the connector instance.
_embedded.davinciConnector.connectorTypeThe connector type; the guide's example is PingOne MFA.
_embedded.davinciConnector.connectorCategoryThe connector's category.
tagsTags of the activity; the event reference lists it for this action without describing its values.
Fields every PingOne audit activities record has (23)
FieldWhat it holds
idIdentifier (UUID) of the audit activity.
recordedAtWhen PingOne recorded the activity (ISO 8601). The Audit page and the API filter on this time.
createdAtWhen the event was created (ISO 8601).
correlationIdIdentifier (UUID) that PingOne gives the messages of one transaction.
action.typeRead by 1 ruleThe event type, <RESOURCE>.<ACTION> (USER.CREATED). The operation this page is about.
action.descriptionThe event type as a label (User Created).
actors.user.idIdentifier (UUID) of the user who performed the action; absent when an application acted on its own.
actors.user.nameName of that user for PingOne sign-on; the DaVinci guide shows it as the user's email address.
actors.user.population.idPopulation (UUID) of the acting user.
actors.client.idIdentifier of the application (client) through which the action was made; for a worker application acting alone, the actor.
actors.client.nameName of that application.
resources.typeType of the resource the action affected (USER, APPLICATION, ENVIRONMENT...). resources is an array.
resources.idIdentifier (UUID) of the affected resource. Ping maps DaVinci IDs to a UUID here and keeps the original in resources.davinciId.
resources.nameName of the affected resource, such as the user name or the environment name.
resources.hrefURL of the affected resource in the PingOne API. Ping's example records carry it, and its event reference lists it for nearly every event type.
resources.environment.idEnvironment (UUID) the affected resource belongs to.
resources.population.idPopulation (UUID) of the affected resource, when it is a user.
result.statusWhether the action succeeded. Ping's example records carry SUCCESS; the data model lists succeeded and failed, and the DaVinci guide FAILURE. Check the values your own records carry.
result.descriptionWhat happened, in words (Created Group Managers), with the reason when it failed.
source.ipAddressAddress of the HTTP request that caused the action, as PingOne saw it (it can be a proxy). In webhook events only when the webhook includes it.
source.userAgentUser-Agent header of that request. In webhook events only when the webhook includes it.
internalCorrelation.sessionIdPingOne session identifier (UUID) of the actor.
internalCorrelation.transactionIdPingOne transaction identifier. Ping's data model marks it optional, and its event reference lists it for about a quarter of the event types, so do not expect it on every record.

Volume and noise

Low. Connector script is part of building custom integrations. Script added to a connector that production sign-on flows use, by someone outside the team that builds them, is the one to read.

Keeping it manageable

  • Read the connector's configuration and review the script like application code; look for calls to outside addresses.
  • Find the flows that use the connector instance; the script runs wherever they do.
  • Keep a list of the people who build DaVinci integrations, and review additions by others first.

Sample event

A PingOne audit activities record in the vendor’s format, with made-up values.

{
  "id": "7d2c4e1a-5b3f-4c8d-9e0a-1b2c3d4e5f60",
  "recordedAt": "2026-11-18T09:30:12.418Z",
  "createdAt": "2026-11-18T09:30:12.431Z",
  "correlationId": "3f4e5d6c-7b8a-4960-8a1b-2c3d4e5f6a7b",
  "actors": {
    "user": {
      "id": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
      "name": "idadmin@corp.example.com",
      "type": "USER",
      "environment": {
        "id": "5c3a9b2e-1f4d-4e6a-9b8c-7d2e1f0a3b4c"
      },
      "population": {
        "id": "9e8d7c6b-5a4f-4e3d-8c2b-1a0f9e8d7c6b"
      }
    },
    "client": {
      "id": "adminui",
      "name": "adminui",
      "type": "CLIENT"
    }
  },
  "action": {
    "type": "DAVINCI_CONNECTOR.CUSTOM_JAVASCRIPT_ADDED",
    "description": "DaVinci Connector Custom JavaScript Added"
  },
  "resources": [
    {
      "type": "DAVINCI_CONNECTOR",
      "id": "8b7a6c5d-4e3f-4201-9a8b-7c6d5e4f3a2b",
      "davinciId": "8b7a6c5d4e3f42019a8b7c6d5e4f3a2b",
      "name": "Step-up MFA",
      "environment": {
        "id": "5c3a9b2e-1f4d-4e6a-9b8c-7d2e1f0a3b4c"
      }
    }
  ],
  "result": {
    "status": "SUCCESS",
    "description": "Custom JavaScript added in 'Step-up MFA' Connector Configurations"
  },
  "source": {
    "ipAddress": "203.0.113.24",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0 Safari/537.36"
  },
  "internalCorrelation": {
    "sessionId": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d"
  },
  "_embedded": {
    "davinciConnector": {
      "connectorInstanceId": "8b7a6c5d4e3f42019a8b7c6d5e4f3a2b",
      "connectorDisplayName": "Step-up MFA",
      "connectorType": "PingOne MFA",
      "connectorCategory": "PingOne"
    }
  },
  "tags": []
}

Attacks this event reveals

Detection rules that read this event:

References