Skip to content

SentinelOne Executor

Category: Endpoint Security Script: sentinelone.py Integration: REST API Faraday Plugin: Raw JSON Website: https://www.sentinelone.com/

Description

Imports threats detected by SentinelOne into Faraday. The executor reads the threats from the SentinelOne management API and creates one host per SentinelOne agent (endpoint), with one vulnerability per threat.

Prerequisites

  • Access to a SentinelOne management console
  • A SentinelOne API token with permission to read threats
  • Network access from the agent to the console URL

Configuration

Environment Variables (Setup)

Variable Required Description
SENTINELONE_URL Yes Management console URL (e.g., https://usea1-partners.sentinelone.net)
SENTINELONE_TOKEN Yes SentinelOne API token
SENTINELONE_ACCOUNT_ID No Account ID to limit the import to one account (default: all accounts the token can see)

Execution Arguments

Parameter Type Mandatory Description
SENTINELONE_SINCE string No Import only threats created at or after this ISO 8601 date (e.g., 2026-01-01T00:00:00Z)
SENTINELONE_VERIFY_SSL boolean No Verify the console's TLS certificate (default: true)

YAML Configuration Example

executors:
  sentinelone:
    repo_executor: sentinelone.py
    max_size: 65536
    varenvs:
      SENTINELONE_URL: "https://usea1-partners.sentinelone.net"
      SENTINELONE_TOKEN: "<api_token>"
      SENTINELONE_ACCOUNT_ID: "<account_id>"
    params:
      SENTINELONE_SINCE:
        mandatory: false
        type: string
        base: string
      SENTINELONE_VERIFY_SSL:
        mandatory: false
        type: boolean
        base: boolean

How It Works

  1. Calls {SENTINELONE_URL}/web/api/v2.1/threats with the header Authorization: ApiToken <token>, filtered by account and creation date
  2. Follows the pagination cursor until all threats are fetched (1000 per page)
  3. Groups threats by SentinelOne agent and creates one host per agent, with its IP, computer name, OS and domain
  4. Maps each threat to a vulnerability:
    • Name: the threat name
    • Description: classification, detection type, mitigation status, confidence, file path and SHA1
    • Severity: taken from the threat's confidence level (see Notes)
    • Resolution: the mitigation status
    • External ID: the SentinelOne threat ID

Notes

  • When an agent has no IP address, the agent ID is used as the host IP.
  • Severity comes from the threat's confidence level. Values that are not critical, high, medium, low or informational become unclassified.
  • The run fails if the API returns an error.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor.