@perpetualsystems/connector-registry 202611.23.3 → 202611.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,7 @@
2
2
  "setup-docs/atlassian-org-audit.md": "Source: https://docs.perpetualsystems.com/setup-docs/atlassian-org-audit/\n\n# Atlassian Organization Audit connector setup\n\nPolls audit log events from the [Atlassian Organizations REST API](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-events/) (`GET /orgs/{orgId}/events-stream`).\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| Atlassian access | **Organization administrator** |\n| Organization ID | UUID for your Atlassian organization |\n| API key | Cloud Admin API key with access to audit events |\n\n---\n\n## 1. Create an API key and copy your organization ID\n\n1. Sign in to [Atlassian Administration](https://admin.atlassian.com/).\n2. Go to **Settings → API keys** (or **API access** depending on your admin UI).\n3. Click **Create API key**.\n4. Name the key (e.g. `Perpetual Atlassian Audit`).\n5. Assign the **`read:events:admin`** scope (required for the events stream endpoint).\n6. Complete two-factor authentication if prompted.\n7. Copy the **API key** and **Organization ID**. Atlassian shows the secret only once — store both securely.\n\n<!-- screenshot: Atlassian Administration — Create API key with read:events:admin -->\n\nTo find your organization ID later: **Settings → Organization settings** (or the API key creation flow displays it).\n\n---\n\n## 2. Perpetual credential\n\n1. Log in to Perpetual. Open **Settings** from the user/org control at the **bottom left** of the sidebar (click your name → **Settings**), then go to **Credentials → New Credential**.\n2. Choose **Text**.\n3. Fill in:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Unique identifier using letters, digits, and underscores only (e.g. `atlassian_org_audit`). |\n| **Allowed URL patterns** | `*.atlassian.com` |\n| **Value** | API key from step 1 (used as a Bearer token) |\n\n4. Save the credential.\n\n\n---\n\n## 3. Create the Atlassian Organization Audit connector\n\n1. Go to **Datasets → Connectors → Create Connector**.\n2. Select **Atlassian Organization Audit**.\n3. **Connector name:** unique identifier (letters, numbers, underscores).\n4. **Configure:**\n - **Atlassian API access:** select the credential from step 2.\n - **Poll interval (minutes):** default `5`.\n - **Organization ID:** the org UUID from step 1.\n\n5. Optionally check **Deploy**, then save.\n\n\nThe first run uses the connector's configured initial lookback, defaulting to **24 hours** when it is not supplied. Subsequent polls resume from the last stream cursor, including after an empty response. The cursor returned by the last event page is retained when a later empty page has no `meta.next`. Empty pages end the run even if they return a cursor. An event page without a next cursor fails the run rather than silently restarting the lookback.\n\nThis follows [Atlassian's polling cursor contract](https://developer.atlassian.com/cloud/admin/organization/poll-events-migration/). Delivery remains at least once: retries after a failed flush or callback can replay events.\n\n---\n\n## Operational notes\n\n- **Key rotation:** Create a new API key, update the Perpetual credential, verify runs succeed, then revoke the old key.\n- **Rate limits:** The connector retries `429` and `5xx` responses with backoff; very large backfills may span multiple runs.\n\n---\n\n## Reference\n\n- [Organizations REST API — Events](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-events/)\n- [Cloud Admin scopes](https://developer.atlassian.com/cloud/admin/scopes/)\n",
3
3
  "setup-docs/azure-event-hub.md": "Source: https://docs.perpetualsystems.com/setup-docs/azure-event-hub/\n\n# Azure Event Hubs connector setup\n\nConsumes events from an [Azure Event Hub](https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-about) via a consumer group. This is a **streaming** connector (long-running consumption, not scheduled polling).\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| Event Hubs namespace | Active namespace with your event hub |\n| Event hub | Hub receiving events from your publishers |\n| Connection string | With **Listen** permission on the event hub |\n| Consumer group | Dedicated group recommended (default `$Default` works) |\n\n---\n\n## 1. Get Event Hub connection details\n\n1. Sign in to the [Azure portal](https://portal.azure.com/).\n2. Open your **Event Hubs Namespace** → **Event Hubs** → select your hub.\n3. Note the **Event hub name**.\n4. Under **Settings → Shared access policies**, create or open a policy with **Listen** claim.\n5. Copy the **Connection string–primary key** (or namespace-level connection string with Listen on this hub).\n\n<!-- screenshot: Azure portal — Event Hub shared access policy with Listen -->\n\n### Consumer group (recommended)\n\n1. In the event hub, open **Consumer groups**.\n2. Add a dedicated group (e.g. `perpetual`) instead of sharing `$Default` with other consumers.\n\n<!-- screenshot: Azure portal — Event Hub consumer groups -->\n\nThe connection string embeds the namespace (`*.servicebus.windows.net`); you do not enter the namespace separately.\n\n---\n\n## 2. Perpetual credential\n\n1. Log in to Perpetual. Open **Settings** from the user/org control at the **bottom left** of the sidebar (click your name → **Settings**), then go to **Credentials → New Credential**.\n2. Choose **Text**.\n3. Fill in:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Unique identifier using letters, digits, and underscores only (e.g. `azure_event_hub`). |\n| **Allowed URL patterns** | `*.servicebus.windows.net` |\n| **Value** | Event Hubs connection string from step 1 |\n\n4. Save the credential.\n\n\n---\n\n## 3. Create the Azure Event Hubs connector\n\n1. Go to **Datasets → Connectors → Create Connector**.\n2. Select **Azure Event Hubs**.\n3. **Connector name:** unique identifier (letters, numbers, underscores).\n4. **Configure:**\n - **Event Hub connection string:** select the credential from step 2.\n - **Event Hub name:** hub name from step 1.\n - **Consumer group:** group to use (default `$Default`, or your dedicated group).\n\n5. Check **Deploy** to start the streaming connector after save.\n\n\nPartition checkpoints are stored automatically by the data plane (S3-backed). You do not configure checkpoint storage in the connector settings.\n\n---\n\n## Microsoft security sources\n\nUse Event Hubs for Microsoft security data that Microsoft exposes as append-only logs or event streams. This avoids timestamp-window polling and uses Event Hub partition offsets for bounded, resumable delivery.\n\nThe connector emits each Event Hub message as a raw JSON record. The original Microsoft payload remains under the record's `body`; Event Hub enqueue time, sequence number, and offset are retained alongside it.\n\n### Microsoft Entra diagnostic logs\n\nIn the Microsoft Entra admin center, open **Monitoring & health → Diagnostic settings**, add a diagnostic setting, and select **Stream to an event hub**. Route the required categories:\n\n| Perpetual data | Microsoft diagnostic category |\n|---|---|\n| Directory audit activity | `AuditLogs` |\n| Interactive user sign-ins | `SignInLogs` |\n| Non-interactive user sign-ins | `NonInteractiveUserSignInLogs` |\n| Service-principal sign-ins | `ServicePrincipalSignInLogs` |\n| Managed-identity sign-ins | `ManagedIdentitySignInLogs` |\n| Risky users | `RiskyUsers` |\n| User risk detections | `UserRiskEvents` |\n| Risky service principals | `RiskyServicePrincipals` |\n| Service-principal risk detections | `ServicePrincipalRiskEvents` |\n\nMicrosoft also supports categories such as `ProvisioningLogs` and `MicrosoftGraphActivityLogs`; enable them when those records are in scope. Available categories and licensing vary by tenant.\n\nUse Event Hub as the only ongoing collector for these categories. Running equivalent Microsoft Graph polling in parallel creates overlapping records with different raw schemas. Diagnostic export begins from the point it is enabled and should not be assumed to provide a historical snapshot of current risky identities.\n\nSee [Microsoft Entra logs available for streaming](https://learn.microsoft.com/en-us/entra/identity/monitoring-health/concept-diagnostic-settings-logs-options) and [stream Microsoft Entra logs to Event Hubs](https://learn.microsoft.com/en-us/entra/identity/monitoring-health/howto-stream-logs-to-event-hub).\n\n### Microsoft Defender XDR event streaming\n\nIn the Microsoft Defender portal, configure **Streaming API** to send selected Advanced Hunting tables to the Event Hub. Supported tables include `AlertInfo`, `AlertEvidence`, device, email, identity, URL, and cloud-app event tables.\n\nThese events supplement the Microsoft Graph Security connector. `AlertInfo` and `AlertEvidence` are Advanced Hunting records, not the same objects as Graph `/security/alerts_v2`, and Event Streaming does not provide the same correlated `/security/incidents` resource.\n\nSee [Microsoft Defender XDR Event Streaming](https://learn.microsoft.com/en-us/defender-xdr/streaming-api) and [supported Event Streaming tables](https://learn.microsoft.com/en-us/defender-xdr/supported-event-types).\n\n### Delivery expectations\n\n- Event Hubs and the connector provide at-least-once delivery, not exactly-once delivery.\n- The connector flushes emitted records before updating the partition checkpoint. A crash after a successful flush but before checkpointing can replay the final uncommitted batch.\n- Use a dedicated consumer group for every Perpetual connector instance.\n- Prefer separate Event Hubs when sources require different retention, access, throughput, or dataset names.\n\n---\n\n## Operational notes\n\n- **Delivery semantics:** Events are emitted to Firehose, flushed, then checkpointed per partition. A flush failure does not advance the checkpoint.\n- **Multiple consumers:** Use a dedicated consumer group per downstream consumer to avoid partition stealing.\n- **Connection string rotation:** Update the shared access policy keys in Azure, then update the Perpetual credential.\n\n---\n\n## Reference\n\n- [Event Hubs documentation](https://learn.microsoft.com/en-us/azure/event-hubs/)\n- [Event Hubs consumer groups](https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-features#consumer-groups)\n",
4
4
  "setup-docs/bitwarden.md": "Source: https://docs.perpetualsystems.com/setup-docs/bitwarden/\n\n# Bitwarden connector setup\n\nPolls organization event logs from the [Bitwarden Public API](https://bitwarden.com/help/public-api/) (`GET /public/events`).\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| Bitwarden plan | Organization with **Public API** access (Teams or Enterprise) |\n| Role | **Organization owner** (to view or rotate the organization API key) |\n| Region | Know whether your org uses the **global** (`api.bitwarden.com`) or **EU** (`api.bitwarden.eu`) stack |\n\nUse an **organization** API key (`client_id` starts with `organization.`). Personal API keys (`user.…`) cannot access the Public API.\n\n---\n\n## 1. Get the organization API key\n\n1. Sign in to the Bitwarden web vault as an organization owner.\n2. Open your organization → **Settings → Organization info**.\n3. Scroll to **API key** and click **View API Key**.\n4. Copy the **client_id** and **client_secret**. Store them securely.\n\n<!-- screenshot: Bitwarden Admin Console — Organization API key -->\n\n---\n\n## 2. Perpetual credential\n\n1. Log in to Perpetual. Open **Settings** from the user/org control at the **bottom left** of the sidebar (click your name → **Settings**), then go to **Credentials → New Credential**.\n2. Choose **OAuth 2.0 Client Credentials**.\n3. Fill in:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Unique identifier using letters, digits, and underscores only (e.g. `bitwarden`). |\n| **Allowed URL patterns** | `*.bitwarden.com`, `*.bitwarden.eu` |\n| **Token URL** | `https://identity.bitwarden.com/connect/token` (global) or `https://identity.bitwarden.eu/connect/token` (EU) |\n| **Client ID** | Organization `client_id` from step 1 |\n| **Client Secret** | Organization `client_secret` from step 1 |\n| **Scopes** | `api.organization` |\n\n4. Save the credential. Perpetual refreshes access tokens automatically (tokens expire in about 60 minutes).\n\n\n---\n\n## 3. Create the Bitwarden connector\n\n1. Go to **Datasets → Connectors → Create Connector**.\n2. Select **Bitwarden**.\n3. **Connector name:** unique identifier (letters, numbers, underscores).\n4. **Configure:**\n - **Bitwarden API access:** select the credential from step 2.\n - **Poll interval (minutes):** default `5`.\n - **Region:** `global` or `eu` — must match your Bitwarden stack.\n\n5. Optionally check **Deploy**, then save.\n\n\nFirst run backfills roughly the **last 24 hours** of organization events. Subsequent polls advance in time windows with a short end buffer for API consistency.\n\n---\n\n## Operational notes\n\n- **Event delay:** Bitwarden batches client-side events; the connector ends each window slightly before run time to avoid gaps.\n- **Key rotation:** Rotate the API key in Bitwarden, update the Perpetual credential, then revoke the old secret.\n\n---\n\n## Reference\n\n- [Bitwarden Public API](https://bitwarden.com/help/public-api/)\n- [Organization API key](https://bitwarden.com/help/public-api/#authentication)\n",
5
+ "setup-docs/cisa-kev.md": "Source: https://docs.perpetualsystems.com/setup-docs/cisa-kev/\n\n# CISA Known Exploited Vulnerabilities connector setup\n\nSyncs the CISA\n[Known Exploited Vulnerabilities (KEV) catalog](https://www.cisa.gov/known-exploited-vulnerabilities-catalog)\ninto a Lookup. Use the Lookup to join CVE IDs in your vulnerability events with\nthe vulnerabilities that attackers exploit now. The KEV data is public domain\n([CC0 1.0](https://www.cisa.gov/sites/default/files/licenses/kev/license.txt)).\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| Credential | None. The catalog is public. |\n| Settings | None. |\n| Allowed URL patterns | Not used. The connector has no credential. |\n\n---\n\n## 1. Create the connector\n\n1. Go to **Datasets -> Connectors -> Create Connector**.\n2. Select **CISA Known Exploited Vulnerabilities**.\n3. Set **Poll interval (minutes):** `60`.\n\n### How the sync works\n\n- Each run downloads the catalog. When the catalog did not change, the run\n sends nothing and the Lookup keeps its rows.\n- When the catalog changed, the run sends the whole catalog as one replace\n batch.\n- **Mass-drop guard.** KEV only grows. A new batch fails when the catalog has\n less than 90% of the vulnerabilities of the last applied batch. If the drop\n is correct, re-create the Lookup to accept it.\n- The run fails, and the Lookup keeps its rows, when the response is not the\n catalog or when a vulnerability has no valid `cveID`.\n\n---\n\n## 2. Create the Lookup\n\nCreate a Lookup named `cisa_kev` on the connector, with key column `source_id`\nand this query:\n\n```\nFROM source\n| SET source_id = state.id\n| SET r = parse_json(state.original)\n| SET vendor_project = r.vendorProject AS string\n| SET product = r.product AS string\n| SET vulnerability_name = r.vulnerabilityName AS string\n| SET date_added = r.dateAdded AS string\n| SET due_date = r.dueDate AS string\n| SET known_ransomware_campaign_use = r.knownRansomwareCampaignUse AS string\n| DROP r\n```\n\n`source_id` is the CVE ID, for example `CVE-2024-3400`.\n\n### Use the Lookup with vulnerability events\n\nJoin on the CVE ID of the events of a vulnerability connector. Rows that match\nare vulnerabilities that attackers exploit now.\n\nCrowdStrike Spotlight (the CVE ID is in `cve.id`):\n\n```\nFROM crowdstrike.spotlight.events\n| SET r = parse_json(event.original)\n| SET cve_id = r.cve.id AS string\n| LOOKUP lookups.cisa_kev ON cve_id == source_id\n```\n\nMicrosoft Defender Vulnerability Management (the CVE ID is in `cveId`):\n\n```\nFROM microsoft.defender.vulnerability.changes\n| SET r = parse_json(event.original)\n| SET cve_id = r.cveId AS string\n| LOOKUP lookups.cisa_kev ON cve_id == source_id\n```\n\n---\n\n## Errors\n\n| Message | What to do |\n|---------|------------|\n| `CISA KEV response is not JSON` | The response was not the catalog (for example, a block page). The next run tries again. If the error repeats, check that your network can reach `www.cisa.gov`. |\n| `CISA KEV response has no vulnerabilities array` | CISA changed the file format. Report this to Perpetual. |\n| `CISA KEV vulnerability at index N has no valid cveID` | CISA changed the file format. Report this to Perpetual. |\n| `CISA KEV lists N vulnerabilities, less than 90%...` | Check the CISA catalog. If the drop is correct, re-create the Lookup. |\n| `CISA KEV request failed with HTTP N` | CISA returned an unexpected error. The next run tries again. |\n\n---\n\n## Reference\n\n- [KEV catalog](https://www.cisa.gov/known-exploited-vulnerabilities-catalog)\n- [KEV license (CC0 1.0)](https://www.cisa.gov/sites/default/files/licenses/kev/license.txt)\n",
5
6
  "setup-docs/crowdstrike.md": "Source: https://docs.perpetualsystems.com/setup-docs/crowdstrike/\n\n# CrowdStrike connector setup\n\nPolls detection, audit, and incident events from the [CrowdStrike Falcon Event Streams API](https://developer.crowdstrike.com/api-reference/collections/event-streams/).\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| CrowdStrike Falcon | Administrator access to create API clients |\n| Event Streams API | Enabled for your tenant (contact CrowdStrike support if unavailable) |\n| Cloud region | Know which Falcon cloud hosts your tenant (`us-1`, `us-2`, `eu-1`, `us-gov-1`, `us-gov-2`) |\n\n---\n\n## 1. Create an API client\n\n1. Sign in to the [Falcon console](https://falcon.crowdstrike.com/).\n2. Go to **Support and resources → API clients and keys**.\n3. Under **OAuth2 API clients**, click **Create API client** (or **Add new API client**).\n4. Enter a **Client name** and **Description** (e.g. `Perpetual Event Streams`).\n5. Under **API scopes**, enable **Read** for both **Event streams** and **Detections**.\n6. Click **Create** / **Add**.\n7. Copy the **Client ID** and **Client secret** from the confirmation dialog. The secret is shown **only once**.\n\n![Falcon — Create API client with Event streams Read scope](./setup/crowdstrike-create-api-client.png)\n\nThe screenshot shows **Event streams**; also enable **Detections → Read** before creating the client.\n\nNote the **Base URL** shown with your credentials — it indicates which cloud environment to select in Perpetual.\n\n---\n\n## 2. Perpetual credential\n\n1. Log in to Perpetual. Open **Settings** from the user/org control at the **bottom left** of the sidebar (click your name → **Settings**), then go to **Credentials → New Credential**.\n2. Choose **OAuth 2.0 Client Credentials**.\n3. Fill in:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Unique identifier using letters, digits, and underscores only (e.g. `crowdstrike`). |\n| **Allowed URL patterns** | `*.crowdstrike.com`, `*.crowdstrike.mil` |\n| **Token URL** | Match your Falcon cloud (see table below) |\n| **Client ID** | Client ID from step 1 |\n| **Client Secret** | Client secret from step 1 |\n\n**Token URL by cloud:**\n\n| Cloud | Token URL |\n|-------|-----------|\n| US-1 | `https://api.crowdstrike.com/oauth2/token` |\n| US-2 | `https://api.us-2.crowdstrike.com/oauth2/token` |\n| EU-1 | `https://api.eu-1.crowdstrike.com/oauth2/token` |\n| US Gov-1 | `https://api.laggar.gcw.crowdstrike.com/oauth2/token` |\n| US Gov-2 | `https://api.us-gov-2.crowdstrike.mil/oauth2/token` |\n\n4. Save the credential. Perpetual refreshes tokens automatically (30-minute lifetime).\n\n---\n\n## 3. Create the CrowdStrike connector\n\n1. Go to **Datasets → Connectors → Create Connector**.\n2. Select **CrowdStrike**.\n3. **Connector name:** unique identifier (letters, numbers, underscores).\n4. **Configure:**\n - **CrowdStrike API:** select the credential from step 2.\n - **Poll interval (minutes):** default `5`. Each poll collects available events and closes idle feeds after 10 seconds without an event.\n - **Cloud environment:** match your Falcon tenant (`us1`, `us2`, `eu1`, `usGov1`, `usGov2`).\n\n5. Optionally check **Deploy**, then save.\n\nThe connector discovers available event stream partitions and reads them concurrently,\nresuming each partition from its saved offset. Each feed closes after 10 seconds\nwithout a complete event; blank keepalives do not extend that wait. An idle feed\nis a practical polling boundary, not a vendor guarantee that all events have\narrived. Later events are collected on the next scheduled poll.\n\nA busy poll continues until the SDK approaches the invocation deadline, leaving\nits normal 30-second grace period for delivery and the result callback. If it\nreaches that deadline, it returns `partial` with its offsets so the next poll can\nresume. A poll whose feeds all become idle or close normally can succeed.\nOffsets are persisted through the result callback only after the SDK's final\nFirehose flush succeeds. Failed delivery retains the previous offsets for retry.\n\n---\n\n## Operational notes\n\n- **Missing security events:** A connected stream receiving audit or API activity does not prove that detection and incident events are available. If detection-summary or incident events are missing, check that **Detections → Read** is enabled on the exact API client whose Client ID is saved in the Perpetual credential, in addition to **Event streams → Read**. Check the client in use, not another key in the same tenant.\n- **Dedicated client:** Use a dedicated API client for this connector; do not share credentials with unrelated integrations.\n- **MSSP / multi-CID:** If your API client spans multiple CIDs, configure member CID scoping in the credential if your environment supports it.\n- **Feed identity:** Each emitted event includes top-level `dataFeedURL` (the discover feed URL, without resume `offset`). CrowdStrike's `metadata.offset` is unique only within that feed; use `dataFeedURL` with `offset` for a stable event id.\n\n---\n\n## Reference\n\n- [CrowdStrike API scopes](https://developer.crowdstrike.com/foundry/authorization/api-scopes/)\n- [Event Streams API](https://developer.crowdstrike.com/api-reference/collections/event-streams/)\n- [OAuth2 token API](https://developer.crowdstrike.com/api-reference/collections/oauth2/)\n",
6
7
  "setup-docs/crowdstrike-hosts.md": "Source: https://docs.perpetualsystems.com/setup-docs/crowdstrike-hosts/\n\n# CrowdStrike Hosts connector setup\n\nSyncs the CrowdStrike Falcon host inventory from the\n[Hosts API](https://www.falconpy.io/Service-Collections/Hosts.html) into a\nLookup. Use the Lookup to add host context (hostname, IP, platform, last seen)\nto CrowdStrike events.\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| CrowdStrike Falcon | Administrator access to create API clients |\n| Cloud region | Know which Falcon cloud hosts your tenant (`us-1`, `us-2`, `eu-1`, `us-gov-1`, `us-gov-2`) |\n\n---\n\n## 1. Create an API client\n\n1. Sign in to the [Falcon console](https://falcon.crowdstrike.com/).\n2. Go to **Support and resources -> API clients and keys**.\n3. Under **OAuth2 API clients**, click **Create API client**.\n4. Enter a **Client name** and **Description** (e.g. `Perpetual Hosts`).\n5. Under **API scopes**, enable **Read** for **Hosts**.\n6. Click **Create**.\n7. Copy the **Client ID** and **Client secret**. The secret is shown only once.\n\nUse a dedicated API client for this connector, so that each credential has\nonly the scope its connector needs.\n\nNote the **Base URL** shown with your credentials. It tells you which cloud to\nselect in Perpetual.\n\n---\n\n## 2. Perpetual credential\n\n1. In Perpetual, open **Settings -> Credentials -> New Credential**.\n2. Choose **OAuth 2.0 Client Credentials**.\n3. Fill in:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Letters, digits, and underscores only (e.g. `crowdstrike`). |\n| **Allowed URL patterns** | The API host of your cloud (see the table below), or `*.crowdstrike.com`, `*.crowdstrike.mil` |\n| **Token URL** | Match your Falcon cloud (see the table below) |\n| **Client ID** | Client ID from step 1 |\n| **Client Secret** | Client secret from step 1 |\n\n| Cloud | Setting | API host | Token URL |\n|-------|---------|----------|-----------|\n| US-1 | `us1` | `api.crowdstrike.com` | `https://api.crowdstrike.com/oauth2/token` |\n| US-2 | `us2` | `api.us-2.crowdstrike.com` | `https://api.us-2.crowdstrike.com/oauth2/token` |\n| EU-1 | `eu1` | `api.eu-1.crowdstrike.com` | `https://api.eu-1.crowdstrike.com/oauth2/token` |\n| US Gov-1 | `usGov1` | `api.laggar.gcw.crowdstrike.com` | `https://api.laggar.gcw.crowdstrike.com/oauth2/token` |\n| US Gov-2 | `usGov2` | `api.us-gov-2.crowdstrike.mil` | `https://api.us-gov-2.crowdstrike.mil/oauth2/token` |\n\n---\n\n## 3. Create the connector\n\n1. Go to **Datasets -> Connectors -> Create Connector**.\n2. Select **CrowdStrike Hosts**.\n3. Configure:\n - **CrowdStrike API:** the credential from step 2.\n - **Poll interval (minutes):** `15` is a good start.\n - **Cloud environment:** the setting from the table above.\n - **Full sweep interval (hours):** default `24`.\n\n### How the sync works\n\n- **Full sweep.** The first run, and the first run after **Full sweep interval**\n hours, lists all hosts and replaces the table. A full sweep removes hosts\n that Falcon no longer lists (hidden or removed hosts). A large sweep can need\n more than one run. Each run continues after the last host it sent.\n- **Delta.** The other runs list only the hosts whose `modified_timestamp` is\n later than the last change seen (with a 5-minute overlap), and update their\n rows. A delta does not remove hosts.\n- **Mass-delete guard.** A new full sweep fails when Falcon reports less than\n 50% of the hosts of the last full sweep. If the drop is correct, re-create the\n Lookup to accept it.\n- **Restarts.** When a run continues an open full sweep or delta and its saved\n page token has expired, the sweep or delta starts again. After 3 restarts the\n run fails. Re-create the Lookup to clear it.\n\n---\n\n## 4. Create the Lookup\n\nCreate a Lookup named `crowdstrike_hosts` on the connector, with key column\n`source_id` and this query:\n\n```\nFROM source\n| SET source_id = state.id\n| SET r = parse_json(state.original)\n| SET hostname = r.hostname AS string\n| SET local_ip = r.local_ip AS string\n| SET external_ip = r.external_ip AS string\n| SET platform_name = r.platform_name AS string\n| SET os_version = r.os_version AS string\n| SET last_seen = r.last_seen AS string\n| DROP r\n```\n\n`source_id` is the Falcon `device_id` (the sensor or agent ID).\n\n### Use the Lookup with CrowdStrike events\n\nCrowdStrike detection events name the host by its agent ID. In\n`DetectionSummaryEvent` the field is `event.SensorId`, and in\n`EppDetectionSummaryEvent` it is `event.AgentId`. For example:\n\n```\nFROM crowdstrike.events\n| SET r = parse_json(event.original)\n| SET device_id = r.event.SensorId AS string\n| LOOKUP lookups.crowdstrike_hosts ON device_id == source_id\n```\n\n---\n\n## Errors\n\n| Message | What to do |\n|---------|------------|\n| `CrowdStrike rejected the credential...` | Check the client ID, the secret, and that the **Cloud environment** setting matches the cloud of the credential. |\n| `CrowdStrike API client needs the Hosts: Read scope` | Add **Hosts -> Read** to the API client. |\n| `CrowdStrike reports N hosts, less than 50%...` | Check Falcon. If the drop is correct, re-create the Lookup. |\n| `CrowdStrike host full sweep restarted 3 times...` | Re-create the Lookup. |\n| `CrowdStrike host delta restarted 3 times...` | Re-create the Lookup. |\n| `CrowdStrike Hosts request failed with HTTP N` | Falcon returned an unexpected error. The next run tries again. If the error repeats, check the Falcon API status. |\n\n---\n\n## Reference\n\n- [CrowdStrike Hosts API (FalconPy)](https://www.falconpy.io/Service-Collections/Hosts.html)\n- [CrowdStrike API scopes](https://developer.crowdstrike.com/foundry/authorization/api-scopes/)\n",
7
8
  "setup-docs/crowdstrike-spotlight.md": "Source: https://docs.perpetualsystems.com/setup-docs/crowdstrike-spotlight/\n\n# CrowdStrike Spotlight connector setup\n\nPolls vulnerability records from the [CrowdStrike Falcon Spotlight API](https://developer.crowdstrike.com/api-reference/collections/spotlight-vulnerabilities/) (`GET /spotlight/combined/vulnerabilities/v1`), incrementally by `updated_timestamp`.\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| CrowdStrike Falcon | **Falcon Spotlight** licensed |\n| API access | Administrator access to create API clients |\n| Cloud region | Know which Falcon cloud hosts your tenant |\n\n---\n\n## 1. Create an API client\n\n1. Sign in to the [Falcon console](https://falcon.crowdstrike.com/).\n2. Go to **Support and resources → API clients and keys**.\n3. Click **Create API client**.\n4. Enter a **Client name** and **Description** (e.g. `Perpetual Spotlight`).\n5. Under **API scopes**, enable **Read** for **Spotlight vulnerabilities**.\n6. Click **Create**.\n7. Copy the **Client ID** and **Client secret**. The secret is shown **only once**.\n\n<!-- screenshot: Falcon — Create API client with Spotlight vulnerabilities Read scope -->\n\n---\n\n## 2. Perpetual credential\n\n1. Log in to Perpetual. Open **Settings** from the user/org control at the **bottom left** of the sidebar (click your name → **Settings**), then go to **Credentials → New Credential**.\n2. Choose **OAuth 2.0 Client Credentials**.\n3. Fill in:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Unique identifier using letters, digits, and underscores only (e.g. `crowdstrike_spotlight`). |\n| **Allowed URL patterns** | `*.crowdstrike.com`, `*.crowdstrike.mil` |\n| **Token URL** | Match your Falcon cloud (same endpoints as the CrowdStrike connector) |\n| **Client ID** | Client ID from step 1 |\n| **Client Secret** | Client secret from step 1 |\n\n4. Save the credential.\n\n\n---\n\n## 3. Create the CrowdStrike Spotlight connector\n\n1. Go to **Datasets → Connectors → Create Connector**.\n2. Select **CrowdStrike Spotlight**.\n3. **Connector name:** unique identifier (letters, numbers, underscores).\n4. **Configure:**\n - **CrowdStrike API:** select the credential from step 2.\n - **Poll interval (minutes):** default `5`.\n - **Cloud environment:** `us1`, `us2`, `eu1`, `usGov1`, or `usGov2`.\n\n5. Optionally check **Deploy**, then save.\n\n\nFirst run queries vulnerabilities with `updated_timestamp` after roughly the **last 24 hours**. Subsequent polls advance from the last committed checkpoint.\n\n---\n\n## Operational notes\n\n- **Assessment lag:** New vulnerabilities appear after endpoint assessment completes; empty polls during quiet periods are normal.\n- **Large fleets:** Pagination may span multiple runs when many vulnerabilities update in one interval.\n- **Separate from Event Streams:** Spotlight uses a different API and scope than the CrowdStrike Event Streams connector — create a dedicated API client.\n\n---\n\n## Reference\n\n- [Spotlight Vulnerabilities API](https://developer.crowdstrike.com/api-reference/collections/spotlight-vulnerabilities/)\n- [OAuth2 token API](https://developer.crowdstrike.com/api-reference/collections/oauth2/)\n",
@@ -16,5 +17,7 @@
16
17
  "setup-docs/okta.md": "Source: https://docs.perpetualsystems.com/setup-docs/okta/\n\n# Okta connector setup\n\nSyncs one Okta resource (users, groups, apps, or app assignments) from the\n[Okta Management API](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/User/)\ninto a Lookup. Use the Lookups to add identity context (login, email, status,\ngroups, apps, and app assignments) to Okta and other events.\n\nCreate one connector and one Lookup for each resource that you need.\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| Okta | An administrator with the **Read-Only Administrator** role, to create the API token |\n| Okta domain | The host name of your org, for example `example.okta.com` |\n\n---\n\n## 1. Create an API token\n\nOkta service apps (OAuth 2.0) support only `private_key_jwt` client\nauthentication. Thus, this connector uses an SSWS API token.\n\n1. Sign in to the Okta Admin Console as a **Read-Only Administrator**. The\n token has the permissions of the admin that creates it.\n2. Go to **Security -> API -> Tokens**.\n3. Click **Create token**, enter a name (e.g. `Perpetual`), and click\n **Create token**.\n4. Copy the token value. Okta shows it only once.\n\nOkta deactivates a token that is not used for 30 days. A connector that runs\non a schedule keeps it active.\n\n---\n\n## 2. Perpetual credential\n\n1. In Perpetual, open **Settings -> Credentials -> New Credential**.\n2. Choose **Text**.\n3. Fill in:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Letters, digits, and underscores only (e.g. `okta`). |\n| **Allowed URL patterns** | `https://<your Okta domain>/*`, for example `https://example.okta.com/*` |\n| **Value** | The API token from step 1 |\n\n---\n\n## 3. Create the connector\n\n1. Go to **Datasets -> Connectors -> Create Connector**.\n2. Select **Okta**.\n3. Configure:\n - **Okta API token:** the credential from step 2.\n - **Poll interval (minutes):** `15` for `users` and `groups`, `60` for\n `apps` and `app_assignments`.\n - **Okta domain:** the host name only, for example `example.okta.com`. Do\n not add `https://`, a path, or a port.\n - **Resource:** `users`, `groups`, `apps`, or `app_assignments`.\n - **Full sweep interval (hours):** default `24`. Used by `users` and\n `groups` only.\n\n### How the sync works\n\n- **Full sweep.** `apps` and `app_assignments` list all records on each run\n and replace the table. `users` and `groups` do a full sweep on the first run\n and on the first run after **Full sweep interval** hours. A full sweep\n removes users or groups that Okta deleted. A large sweep can need more than\n one run. Each run continues after the last record it sent.\n- **Deactivated users.** The `users` full sweep includes `DEPROVISIONED`\n users. They stay in the table with their `status`.\n- **Delta.** The other `users` and `groups` runs list only the records whose\n `lastUpdated` is later than the last change seen (with a 5-minute overlap),\n and update their rows. A delta does not remove records.\n- **App assignments.** The connector lists all apps, then the users and the\n groups assigned to each app. An app that Okta deletes during the sweep is\n skipped. When the app list changes before a run continues an open sweep,\n the sweep starts again.\n- **Rate limits.** When Okta returns HTTP 429, the run waits until\n `X-Rate-Limit-Reset` if there is time left. Else the run stops, and the next\n run continues after the reset time.\n- **Restarts.** When a run continues an open sweep or delta and Okta rejects\n its saved page URL, the sweep or delta starts again. After 3 restarts the\n run fails. Re-create the Lookup to clear it.\n- **Empty source.** A run that lists no records sends nothing. The Lookup\n keeps its rows.\n\n---\n\n## 4. Create the Lookup\n\nCreate a Lookup on each connector with key column `source_id` and the query\nfor its resource. `state.original` holds the raw Okta record.\n\n### `users` (Lookup `okta_users_sync`)\n\n```\nFROM source\n| SET source_id = state.id\n| SET r = parse_json(state.original)\n| SET login = r.profile.login AS string\n| SET email = r.profile.email AS string\n| SET first_name = r.profile.firstName AS string\n| SET last_name = r.profile.lastName AS string\n| SET status = r.status AS string\n| SET last_login = r.lastLogin AS string\n| SET last_updated = r.lastUpdated AS string\n| DROP r\n```\n\n`source_id` is the Okta user ID (for example `00u1a2b3c4d5e6f7g8h9`).\n\n### `groups` (Lookup `okta_groups_sync`)\n\n```\nFROM source\n| SET source_id = state.id\n| SET r = parse_json(state.original)\n| SET name = r.profile.name AS string\n| SET description = r.profile.description AS string\n| SET type = r.type AS string\n| SET last_updated = r.lastUpdated AS string\n| DROP r\n```\n\n### `apps` (Lookup `okta_apps_sync`)\n\n```\nFROM source\n| SET source_id = state.id\n| SET r = parse_json(state.original)\n| SET name = r.name AS string\n| SET label = r.label AS string\n| SET status = r.status AS string\n| SET sign_on_mode = r.signOnMode AS string\n| SET last_updated = r.lastUpdated AS string\n| DROP r\n```\n\n### `app_assignments` (Lookup `okta_app_assignments_sync`)\n\n`source_id` is `<appId>:user:<userId>` or `<appId>:group:<groupId>`.\n\n```\nFROM source\n| SET source_id = state.id\n| SET r = parse_json(state.original)\n| SET app_id = r.appId AS string\n| SET kind = r.kind AS string\n| SET principal_id = r.id AS string\n| SET user_name = r.credentials.userName AS string\n| SET status = r.status AS string\n| SET scope = r.scope AS string\n| SET last_updated = r.lastUpdated AS string\n| DROP r\n```\n\n### Use the Lookup with Okta events\n\nIn Okta System Log events, `actor.id` is the Okta user ID of the user that\ndid the action. For example, over your Okta System Log dataset:\n\n```\nFROM <your Okta System Log dataset>\n| SET r = parse_json(event.original)\n| SET user_id = r.actor.id AS string\n| LOOKUP lookups.okta_users_sync ON user_id == source_id\n```\n\n---\n\n## Errors\n\n| Message | What to do |\n|---------|------------|\n| `Okta API token is not valid or expired` | Create a new token (step 1) and update the credential. |\n| `Okta API token needs the Read-Only Admin role` | Create the token as an admin with the **Read-Only Administrator** role. |\n| `Okta next link host does not match orgDomain` | Okta sent a page link on another host. The connector does not send the token to it. Set **Okta domain** to the host name of your org, for example `example.okta.com`. |\n| `Okta pagination did not advance` | Okta returned the same page again. The next run tries again. If the error repeats, contact Okta support. |\n| `Okta <resource> full sweep restarted 3 times...` | Re-create the Lookup. |\n| `Okta <resource> delta restarted 3 times...` | Re-create the Lookup. |\n| `Okta request failed with HTTP N` | Okta returned an unexpected error. The next run continues from the saved position. If the error repeats, check the Okta status page. |\n\n---\n\n## Reference\n\n- [Okta Users API](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/User/)\n- [Okta API tokens](https://developer.okta.com/docs/guides/create-an-api-token/main/)\n- [Okta rate limit best practices](https://developer.okta.com/docs/reference/rl-best-practices/)\n",
17
18
  "setup-docs/one-password.md": "Source: https://docs.perpetualsystems.com/setup-docs/one-password/\n\n# 1Password connector setup\n\nPolls the [1Password Events API](https://developer.1password.com/docs/events-api/) for sign-in attempts, item usages, and audit events.\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| 1Password plan | **Business** or **Enterprise** |\n| Admin access | Account administrator who can create Events Reporting integrations |\n\n---\n\n## 1. Create an Events Reporting integration\n\n1. Sign in to [1Password.com](https://1password.com) as an administrator.\n2. Open **Integrations** in the sidebar. If you already have integrations, open **Directory** first.\n3. Under **Events Reporting**, choose **Other** (or your SIEM vendor if listed).\n4. Enter an integration name (e.g. `Perpetual 1Password`) and click **Add Integration**.\n\n<!-- screenshot: 1Password Events Reporting — Add integration -->\n\n### Issue a bearer token\n\n1. On the integration, click **Add a token** (or issue the first token during setup).\n2. Set a **Token name** (e.g. `Perpetual`).\n3. Choose **Expires After** (many teams use **Never**; shorter expiry requires rotation).\n4. Under **Events to Report**, enable the streams you plan to collect in Perpetual:\n - Sign-in attempts\n - Item usages\n - Audit events\n5. Click **Issue Token**, then **Save in 1Password** to store the token in a vault.\n6. Copy the bearer token value. You will paste it into Perpetual as a Text credential.\n\n<!-- screenshot: 1Password — Issue token with event scopes -->\n\n---\n\n## 2. Perpetual credential\n\n1. Log in to Perpetual. Open **Settings** from the user/org control at the **bottom left** of the sidebar (click your name → **Settings**), then go to **Credentials → New Credential**.\n2. Choose **Text**.\n3. Fill in:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Unique identifier using letters, digits, and underscores only (e.g. `one_password`). |\n| **Allowed URL patterns** | `*.1password.com`, `*.1password.eu`, `*.1password.ca` |\n| **Value** | Bearer token from step 1 |\n\n4. Save the credential.\n\n\n---\n\n## 3. Create the 1Password connector\n\n1. Go to **Datasets → Connectors → Create Connector**.\n2. Select **1Password**.\n3. **Connector name:** unique identifier (letters, numbers, underscores; becomes `connector.<name>`).\n4. **Space:** optional scope for the connector resource.\n5. **Configure:**\n - **1Password API access:** select the credential from step 2.\n - **Poll interval (minutes):** default `5`.\n - **Region:** `us`, `eu`, or `ca` — must match your 1Password account residency.\n - Enable only the streams your token is scoped for:\n\n| Setting | Default | API path | Notes |\n|---------|---------|----------|--------|\n| Sign-in attempts | On | `/api/v2/signinattempts` | Login success/failure, client, location |\n| Item usages | On | `/api/v2/itemusages` | Vault item views, copies, edits |\n| Audit events | On | `/api/v2/auditevents` | Vault, group, user, integration changes |\n\nAt least one stream must stay enabled.\n\n6. Optionally check **Deploy** to schedule the connector immediately after save.\n7. Save.\n\n\nFirst run backfills roughly the **last 24 hours** per enabled stream, then advances cursors on subsequent polls.\n\n---\n\n## Operational notes\n\n- **Token rotation:** Issue a new token in 1Password, update the Perpetual credential, then revoke the old token.\n- **Stream scope:** If a stream is enabled in Perpetual but not on the token, that stream will fail until you issue a new token with the missing event type.\n\n---\n\n## Reference\n\n- [1Password Events API — Get started](https://developer.1password.com/docs/events-api/get-started)\n- [1Password Events API — Authorization](https://developer.1password.com/docs/events-api/authorization)\n- [Events Reporting support guide](https://support.1password.com/events-reporting/)\n",
18
19
  "setup-docs/slack-audit.md": "Source: https://docs.perpetualsystems.com/setup-docs/slack-audit/\n\n# Slack Audit connector setup\n\nPolls the [Slack Audit Logs API](https://api.slack.com/admins/audit-logs-call) and, optionally, org-wide team inventory from the Admin API.\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| Slack plan | **Enterprise Grid** (or Enterprise Select) |\n| Slack app install | **Organization** (org-level app), not workspace-only |\n\n**Commercial Slack only.** This connector calls `slack.com` / `api.slack.com`. [GovSlack](https://slack.com/gov) uses separate endpoints and is not supported yet.\n\nUse the **Slack** connector (workspace install) for messages, access logs, and workspace inventory.\n\n---\n\n## 1. Create a Slack app\n\n1. Open the [Slack API apps dashboard](https://api.slack.com/apps) and sign in.\n2. **Create New App → From scratch**.\n3. Name the app (e.g. `Perpetual Slack Audit`) and pick any workspace in your org.\n4. Click **Create App**.\n\n<!-- screenshot: Slack \"Create New App\" dialog -->\n\n### OAuth scopes\n\n1. **User Token Scopes:** `auditlogs:read`\n2. **Bot Token Scopes:** `users:read` (required for org-level Enterprise Grid apps)\n3. **Features → Org Level Apps → Enable Org-Readiness**\n\nFor **Admin teams list**, also add user scope `admin.teams:read`.\n\n<!-- screenshot: Slack OAuth & Permissions — User Token Scopes and Org Level Apps -->\n\nAudit log access must be approved by an **Owner of the Enterprise organization** during OAuth consent.\n\n---\n\n## 2. Install the app on your organization\n\nFrom **Basic Information**, copy **Client ID** and **Client Secret**.\n\n1. **OAuth & Permissions → Redirect URLs:** add Perpetual’s OAuth redirect URI (from step 3).\n2. **Manage Distribution → Share Your App with Other Workspaces** → activate public distribution (remove hard-coded URLs if prompted).\n3. Open the shareable install link, choose your **organization** (not a single workspace), and allow the app.\n4. Complete OAuth via Perpetual’s **Connect** flow in step 3.\n\n<!-- screenshot: Slack org picker during org-level app install -->\n\n---\n\n## 3. Perpetual credential\n\n1. Log in to Perpetual. Open **Settings** from the user/org control at the **bottom left** of the sidebar (click your name → **Settings**), then go to **Credentials → New Credential**.\n2. Choose **OAuth 2.0 Authorization Code**.\n3. Fill in:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Unique identifier using letters, digits, and underscores only (e.g. `slack_audit`). |\n| **Allowed URL patterns** | `*.slack.com` |\n| **Authorization URL** | `https://slack.com/oauth/v2/authorize` |\n| **Token URL** | `https://slack.com/api/oauth.v2.access` |\n| **Client ID / Client Secret** | From Slack **Basic Information** |\n| **User scopes** | `auditlogs:read` (add `admin.teams:read` if enabling Admin teams list) |\n| **Scopes** | Leave empty unless you also need bot scopes |\n\n4. Save the credential. Copy the **Redirect URI** into the Slack app’s **Redirect URLs** if needed.\n5. Click **Connect**, sign in as an **Enterprise org owner**, and approve. Status should show **Connected**.\n\n\n---\n\n## 4. Create the Slack Audit connector\n\n1. Go to **Datasets → Connectors → Create Connector**.\n2. Select **Slack Audit**.\n3. **Connector name:** unique identifier (letters, numbers, underscores).\n4. **Configure:**\n - **Slack API access:** select the org-level credential from step 3.\n - **Poll interval (minutes):** default `5` for audit log polling. **Admin teams list** runs at most once per 24 hours.\n - Enable streams:\n\n| Setting | Default | Slack API | Notes |\n|---------|---------|-----------|--------|\n| Audit logs | On | `GET /audit/v1/logs` | Requires `auditlogs:read` and org-level install |\n| Admin teams list | Off | `admin.teams.list` | Requires `admin.teams:read` |\n\nAt least one stream must stay enabled.\n\n5. Optionally check **Deploy**, then save.\n\n\nFirst run backfills roughly the **last 24 hours** of audit events, then advances cursors on subsequent polls.\n\n---\n\n## Reference\n\n- [Slack Audit Logs API](https://api.slack.com/admins/audit-logs-call)\n- [Using the Audit Logs API](https://api.slack.com/admins/audit-logs)\n",
19
- "setup-docs/slack.md": "Source: https://docs.perpetualsystems.com/setup-docs/slack/\n\n# Slack connector setup\n\nPolls the [Slack Web API](https://api.slack.com/web) for workspace messages, access logs, and daily inventory snapshots.\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| Slack plan | Free, Pro, Business+, or Enterprise Grid |\n| Slack app install | **Workspace** install (Install to Workspace) |\n\n**Commercial Slack only.** This connector calls `slack.com` / `api.slack.com`. [GovSlack](https://slack.com/gov) uses separate endpoints and is not supported yet.\n\nFor Enterprise Grid **audit logs**, use the separate **Slack Audit** connector with an org-level Slack app.\n\n---\n\n## 1. Create a Slack app\n\n1. Open the [Slack API apps dashboard](https://api.slack.com/apps) and sign in.\n2. **Create New App → From scratch**.\n3. Name the app (e.g. `Perpetual Slack`) and select the **workspace** you want to monitor.\n4. Click **Create App**.\n\n<!-- screenshot: Slack \"Create New App\" dialog -->\n\n### OAuth scopes\n\nIn the app, go to **OAuth & Permissions → Scopes → User Token Scopes** (not Bot Token Scopes) and add the scopes needed for the streams you will enable.\n\n| Stream(s) in Perpetual | User token scopes |\n|------------------------|-------------------|\n| Messages, Conversations list | `channels:read`, `channels:history` |\n| Access logs | `admin` |\n| Team info | `team:read` |\n| Users list | `users:read`, `users:read.email` |\n| Billable info | `admin` |\n\n**Typical bundle:** \n`admin`, `team:read`, `users:read`, `users:read.email`, `channels:read`, `channels:history`\n\n![Slack OAuth & Permissions — User Token Scopes list](./setup/user-token-scopes.png)\n\nSave changes.\n\n---\n\n## 2. Install the Slack app and copy the token\n\n1. **Install App → Install to Workspace** and approve the scopes.\n2. On **OAuth & Permissions**, copy the **User OAuth Token** (`xoxp-…`). You will paste this into Perpetual as a Text credential.\n\n<!-- screenshot: Slack OAuth & Permissions — User OAuth Token after install -->\n\n---\n\n## 3. Perpetual credential\n\n1. Log in to Perpetual. Open **Settings** from the user/org control at the **bottom left** of the sidebar (click your name → **Settings**), then go to **Credentials → New Credential**.\n2. Choose **Text**.\n3. Fill in:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Unique identifier using letters, digits, and underscores only (e.g. `slack`). |\n| **Allowed URL patterns** | `*.slack.com` |\n| **Value** | User OAuth Token from step 2 (`xoxp-…`) |\n\n4. Save the credential.\n\n\n---\n\n## 4. Create the Slack connector\n\n1. Go to **Datasets → Connectors → Create Connector**.\n2. Select **Slack**.\n3. **Connector name:** unique identifier (letters, numbers, underscores; becomes `connector.<name>`).\n4. **Space:** optional scope for the connector resource.\n5. **Configure:**\n - **Slack API access:** select the credential from step 3.\n - **Poll interval (minutes):** default `5`. Controls incremental streams (messages, access logs). Snapshot streams (team info, users list, etc.) run at most once per 24 hours regardless of interval.\n - Enable only the streams you scoped for:\n\n| Setting | Default | Slack API | Notes |\n|---------|---------|-----------|--------|\n| Messages | On | `conversations.list`, `conversations.history`, `conversations.replies` | **Public channels only.** No private channels, DMs, or archived channels. |\n| Access logs | On | `team.accessLogs` | Workspace login events |\n| Team info | On | `team.info` | Daily snapshot |\n| Users list | On | `users.list` | Daily paginated roster |\n| Conversations list | On | `conversations.list` | Daily public channel metadata |\n| Billable info | On | `team.billableInfo` | Daily seat counts |\n\nAt least one stream must stay enabled.\n\n6. Optionally check **Deploy** to schedule the connector immediately after save.\n7. Save.\n\n\nFirst run backfills roughly the **last 24 hours** for time-based streams, then advances cursors on subsequent polls.\n\n---\n\n## Operational notes\n\n- **Rate limits:** Message collection walks every non-archived channel each poll. Large workspaces can exceed [Tier 3 limits](https://api.slack.com/docs/rate-limits) (50+ calls/minute); polls may span multiple invocations. Archive unused channels in Slack.\n- **Multiple workspaces:** Create a separate Slack app, credential, and connector per workspace you monitor.\n\n---\n\n## Reference\n\n- [Slack Web API](https://api.slack.com/web)\n- [Slack API rate limits](https://api.slack.com/docs/rate-limits)\n"
20
+ "setup-docs/slack.md": "Source: https://docs.perpetualsystems.com/setup-docs/slack/\n\n# Slack connector setup\n\nPolls the [Slack Web API](https://api.slack.com/web) for workspace messages, access logs, and daily inventory snapshots.\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| Slack plan | Free, Pro, Business+, or Enterprise Grid |\n| Slack app install | **Workspace** install (Install to Workspace) |\n\n**Commercial Slack only.** This connector calls `slack.com` / `api.slack.com`. [GovSlack](https://slack.com/gov) uses separate endpoints and is not supported yet.\n\nFor Enterprise Grid **audit logs**, use the separate **Slack Audit** connector with an org-level Slack app.\n\n---\n\n## 1. Create a Slack app\n\n1. Open the [Slack API apps dashboard](https://api.slack.com/apps) and sign in.\n2. **Create New App → From scratch**.\n3. Name the app (e.g. `Perpetual Slack`) and select the **workspace** you want to monitor.\n4. Click **Create App**.\n\n<!-- screenshot: Slack \"Create New App\" dialog -->\n\n### OAuth scopes\n\nIn the app, go to **OAuth & Permissions → Scopes → User Token Scopes** (not Bot Token Scopes) and add the scopes needed for the streams you will enable.\n\n| Stream(s) in Perpetual | User token scopes |\n|------------------------|-------------------|\n| Messages, Conversations list | `channels:read`, `channels:history` |\n| Access logs | `admin` |\n| Team info | `team:read` |\n| Users list | `users:read`, `users:read.email` |\n| Billable info | `admin` |\n\n**Typical bundle:** \n`admin`, `team:read`, `users:read`, `users:read.email`, `channels:read`, `channels:history`\n\n![Slack OAuth & Permissions — User Token Scopes list](./setup/user-token-scopes.png)\n\nSave changes.\n\n---\n\n## 2. Install the Slack app and copy the token\n\n1. **Install App → Install to Workspace** and approve the scopes.\n2. On **OAuth & Permissions**, copy the **User OAuth Token** (`xoxp-…`). You will paste this into Perpetual as a Text credential.\n\n<!-- screenshot: Slack OAuth & Permissions — User OAuth Token after install -->\n\n---\n\n## 3. Perpetual credential\n\n1. Log in to Perpetual. Open **Settings** from the user/org control at the **bottom left** of the sidebar (click your name → **Settings**), then go to **Credentials → New Credential**.\n2. Choose **Text**.\n3. Fill in:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Unique identifier using letters, digits, and underscores only (e.g. `slack`). |\n| **Allowed URL patterns** | `*.slack.com` |\n| **Value** | User OAuth Token from step 2 (`xoxp-…`) |\n\n4. Save the credential.\n\n\n---\n\n## 4. Create the Slack connector\n\n1. Go to **Datasets → Connectors → Create Connector**.\n2. Select **Slack**.\n3. **Connector name:** unique identifier (letters, numbers, underscores; becomes `connector.<name>`).\n4. **Space:** optional scope for the connector resource.\n5. **Configure:**\n - **Slack API access:** select the credential from step 3.\n - **Poll interval (minutes):** default `5`. Controls incremental streams (messages, access logs). Snapshot streams (team info, users list, etc.) run at most once per 24 hours regardless of interval.\n - Enable only the streams you scoped for:\n\n| Setting | Default | Slack API | Notes |\n|---------|---------|-----------|--------|\n| Messages | On | `conversations.list`, `conversations.history`, `conversations.replies` | **Public channels only.** No private channels, DMs, or archived channels. |\n| Access logs | On | `team.accessLogs` | Workspace login events |\n| Team info | On | `team.info` | Daily snapshot |\n| Users list | On | `users.list` | Daily paginated roster |\n| Conversations list | On | `conversations.list` | Daily public channel metadata |\n| Billable info | On | `team.billableInfo` | Daily seat counts |\n\nAt least one stream must stay enabled.\n\n6. Optionally check **Deploy** to schedule the connector immediately after save.\n7. Save.\n\n\nFirst run backfills roughly the **last 24 hours** for time-based streams, then advances cursors on subsequent polls.\n\n---\n\n## Operational notes\n\n- **Rate limits:** Message collection walks every non-archived channel each poll. Large workspaces can exceed [Tier 3 limits](https://api.slack.com/docs/rate-limits) (50+ calls/minute); polls may span multiple invocations. Archive unused channels in Slack.\n- **Multiple workspaces:** Create a separate Slack app, credential, and connector per workspace you monitor.\n\n---\n\n## Reference\n\n- [Slack Web API](https://api.slack.com/web)\n- [Slack API rate limits](https://api.slack.com/docs/rate-limits)\n",
21
+ "setup-docs/threatfox.md": "Source: https://docs.perpetualsystems.com/setup-docs/threatfox/\n\n# abuse.ch ThreatFox connector setup\n\nSyncs [abuse.ch ThreatFox](https://threatfox.abuse.ch/) indicators of compromise\n(IOCs) into a Lookup. Use the Lookup to match IP addresses, domains, URLs, and\nfile hashes in network, DNS, proxy, and EDR events. Each IOC has a malware\nfamily and a confidence level.\n\n## Licence\n\nCommercial use of ThreatFox can require a Spamhaus subscription. Read the\nabuse.ch Terms of Use, section 4, before you use this connector.\n\n- [abuse.ch Terms of Use](https://abuse.ch/terms-of-use/)\n\nPerpetual does not supply a key and does not include ThreatFox data. You create\nyour own abuse.ch `Auth-Key` and you accept the abuse.ch terms. The data goes\nfrom abuse.ch to your environment.\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| abuse.ch account | A free account at [auth.abuse.ch](https://auth.abuse.ch/) |\n| abuse.ch `Auth-Key` | The key of your account (see step 1) |\n\n---\n\n## 1. Get an Auth-Key\n\n1. Sign in at [auth.abuse.ch](https://auth.abuse.ch/).\n2. Create an **Auth-Key** (or copy the key that you have).\n3. Keep the key secret. The connector sends the key to abuse.ch only.\n\n---\n\n## 2. Perpetual credential\n\n1. In Perpetual, open **Settings -> Credentials -> New Credential**.\n2. Choose **Text**.\n3. Fill in:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Letters, digits, and underscores only (e.g. `abusech_threatfox`). |\n| **Allowed URL patterns** | `https://threatfox-api.abuse.ch/*` |\n| **Value** | The Auth-Key from step 1 |\n\n---\n\n## 3. Create the connector\n\n1. Go to **Datasets -> Connectors -> Create Connector**.\n2. Select **abuse.ch ThreatFox**.\n3. Configure:\n - **abuse.ch Auth-Key:** the credential from step 2.\n - **Poll interval (minutes):** `60` is a good start.\n - **Full sweep interval (hours):** default `24`.\n - **Minimum confidence:** default `0`. An IOC with a lower confidence level\n is not added to the Lookup. Use a value from 0 to 100.\n\n### How the sync works\n\n- **Full sweep.** The first run, and the first run after **Full sweep interval**\n hours, downloads the ThreatFox export of all IOCs that are not expired and\n replaces the Lookup. ThreatFox expires IOCs that are older than 6 months, so a\n full sweep removes them from the Lookup. ThreatFox builds the export once per\n hour. The IOCs that were first seen after the export was built are not in the\n full sweep. The next delta adds them. The Lookup does not have them until a\n delta succeeds. A rate-limited or failed delta can delay this past one\n **Poll interval**. A large sweep can need more than one run. Each run\n continues where the last one stopped, when the export did not change (see\n **Restarts**).\n- **Delta.** The other runs ask the ThreatFox API for the IOCs that were first\n seen since the last run (with a 5-minute overlap), and add them. A delta does\n not change IOCs that ThreatFox updated after it first listed them. The next\n full sweep brings those changes. A delta does not remove IOCs.\n- A cursor that is more than 7 days old (the API limit) starts a full sweep.\n- **Restarts.** When a run continues an open full sweep and the export changed,\n the sweep starts again. After 3 restarts the run fails. Re-create the Lookup\n to clear it.\n\n---\n\n## 4. Create the Lookup\n\nCreate a Lookup named `threatfox_iocs` on the connector, with key column\n`source_id` and this query:\n\n```\nFROM source\n| SET source_id = state.id\n| SET r = parse_json(state.original)\n| SET ioc = r.ioc AS string\n| SET ioc_type = r.ioc_type AS string\n| SET threat_type = r.threat_type AS string\n| SET malware = r.malware_printable AS string\n| SET confidence_level = r.confidence_level AS int\n| SET first_seen = r.first_seen AS string\n| SET last_seen = r.last_seen AS string\n| DROP r\n```\n\n`source_id` is the ThreatFox IOC ID. `ioc_type` is one of `domain`, `url`,\n`ip:port`, `md5_hash`, `sha1_hash`, or `sha256_hash`.\n\n### Use the Lookup with events\n\nThe name of the field depends on the log source. Read the value from the raw\nevent and join it on `ioc`.\n\nDomains (for example in DNS or proxy events):\n\n```\nFROM <your dns or proxy dataset>\n| SET r = parse_json(event.original)\n| SET domain = r.<domain field> AS string\n| LOOKUP lookups.threatfox_iocs ON domain == ioc\n```\n\nURLs and file hashes use the same form, with the URL or the hash in the field\non the left of `==`. Use the lowercase hex form of a hash.\n\nIP addresses: an IOC of type `ip:port` has the form `1.2.3.4:443` in `ioc`, so\na join on an IP address alone does not match it. The join matches only the full\n`ip:port` text.\n\n---\n\n## Errors\n\n| Message | What to do |\n|---------|------------|\n| `The abuse.ch Auth-Key is not valid...` | Check the credential value. Get a key at [auth.abuse.ch](https://auth.abuse.ch/). |\n| `Credential slot \"api\" is not allowed for ...` | Set **Allowed URL patterns** of the credential to `https://threatfox-api.abuse.ch/*`. |\n| `ThreatFox export has no column header with ioc_id, ioc_value, and ioc_type` | abuse.ch changed the export format. Report this to Perpetual. |\n| `ThreatFox export zip has no .csv entry` | abuse.ch changed the export format. Report this to Perpetual. |\n| `ThreatFox full sweep restarted 3 times...` | The export changed during each try. Re-create the Lookup. |\n| `ThreatFox request failed with HTTP N` | abuse.ch returned an unexpected error. The next run tries again. |\n| `ThreatFox rate limit reached after 3 waits` | The next run tries again. If the error repeats, increase the poll interval. |\n\n---\n\n## Lambda memory\n\nThe connector reads the export as a stream and needs little memory. The\nregistry sets the Lambda memory to 512 MB. The export file goes to the temporary\ndisk of the Lambda (512 MB by default) before it is read.\n\n---\n\n## Reference\n\n- [ThreatFox API](https://threatfox.abuse.ch/api/)\n- [ThreatFox export](https://threatfox.abuse.ch/export/)\n- [abuse.ch Terms of Use](https://abuse.ch/terms-of-use/)\n",
22
+ "setup-docs/tor-exit-nodes.md": "Source: https://docs.perpetualsystems.com/setup-docs/tor-exit-nodes/\n\n# Tor Exit Nodes connector setup\n\nSyncs the [Tor Project bulk exit list](https://check.torproject.org/torbulkexitlist)\ninto a Lookup. Use the Lookup to find sign-ins and admin actions that come from\nthe Tor network.\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| Credential | None. The list is public. |\n| Settings | None. |\n| Allowed URL patterns | Not used. The connector has no credential. |\n\n---\n\n## 1. Create the connector\n\n1. Go to **Datasets -> Connectors -> Create Connector**.\n2. Select **Tor Exit Nodes**.\n3. Set **Poll interval (minutes):** `30`. The list changes many times each day.\n\n### How the sync works\n\n- Each run downloads the list. When the list did not change, the run sends\n nothing and the Lookup keeps its rows.\n- When the list changed, the run sends the whole list as one replace batch. The\n Lookup then has exactly the IP addresses of the list, so addresses that left\n the list are removed.\n- The run fails, and the Lookup keeps its rows, when a line of the list is not\n an IP address or when the list is empty.\n\n---\n\n## 2. Create the Lookup\n\nCreate a Lookup named `tor_exit_nodes` on the connector, with key column\n`source_id` and this query:\n\n```\nFROM source\n| SET source_id = state.id\n| SET ip = state.id\n```\n\n`source_id` is the IP address of the exit node, in IPv4 or IPv6 text form.\n\n### Use the Lookup with sign-in events\n\n1Password sign-in attempt events carry the IP address of the client in\n`client.ip_address`. For example:\n\n```\nFROM 1password.signinAttempts\n| SET r = parse_json(event.original)\n| SET source_ip = r.client.ip_address AS string\n| LOOKUP lookups.tor_exit_nodes ON source_ip == source_id\n```\n\nRows that match come from a Tor exit node.\n\n---\n\n## Errors\n\n| Message | What to do |\n|---------|------------|\n| `Tor exit list line N is not an IP address...` | The response was not the exit list (for example, a block page). The next run tries again. If the error repeats, check that your network can reach `check.torproject.org`. |\n| `Tor exit list is empty` | The Tor Project returned an empty list. The next run tries again. |\n| `Tor Project request failed with HTTP N` | The Tor Project returned an unexpected error. The next run tries again. |\n\n---\n\n## Reference\n\n- [Tor bulk exit list](https://check.torproject.org/torbulkexitlist)\n"
20
23
  }
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 144 144" role="img" aria-label="CISA Known Exploited Vulnerabilities">
2
+ <path d="M72 12 124 32v40c0 32-22 52-52 62-30-10-52-30-52-62V32z" fill="none" stroke="#005288" stroke-width="8" stroke-linejoin="round"/>
3
+ <path d="M72 44v36" stroke="#C41230" stroke-width="10" stroke-linecap="round"/>
4
+ <circle cx="72" cy="98" r="6" fill="#C41230"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 144 144" role="img" aria-label="abuse.ch ThreatFox">
2
+ <path d="M20 112 36 36l24 26 12-34 12 34 24-26 16 76z" fill="none" stroke="#E8590C" stroke-width="8" stroke-linejoin="round"/>
3
+ <circle cx="58" cy="92" r="6" fill="#E8590C"/>
4
+ <circle cx="86" cy="92" r="6" fill="#E8590C"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 144 144" role="img" aria-label="Tor Exit Nodes">
2
+ <circle cx="72" cy="72" r="56" fill="none" stroke="#7D4698" stroke-width="8"/>
3
+ <circle cx="72" cy="72" r="36" fill="none" stroke="#7D4698" stroke-width="8"/>
4
+ <circle cx="72" cy="72" r="14" fill="#7D4698"/>
5
+ </svg>
@@ -189,6 +189,22 @@
189
189
  "description": "Poll Bitwarden organization event logs.",
190
190
  "datasetKind": "event"
191
191
  },
192
+ {
193
+ "kind": "cisa-kev",
194
+ "displayName": "CISA Known Exploited Vulnerabilities",
195
+ "ecrImageUrl": "718287746078.dkr.ecr.us-east-2.amazonaws.com/perpetual-connectors/cisa-kev:0.0.1",
196
+ "connectorType": "polling",
197
+ "settingsSchema": {
198
+ "$schema": "http://json-schema.org/draft-07/schema#",
199
+ "type": "object",
200
+ "properties": {},
201
+ "additionalProperties": false
202
+ },
203
+ "credentials": [],
204
+ "iconExt": "svg",
205
+ "description": "Sync the CISA Known Exploited Vulnerabilities catalog into a State Table to find hosts with vulnerabilities that attackers exploit now.",
206
+ "datasetKind": "state"
207
+ },
192
208
  {
193
209
  "kind": "crowdstrike",
194
210
  "displayName": "CrowdStrike",
@@ -1587,6 +1603,94 @@
1587
1603
  "iconExt": "svg",
1588
1604
  "description": "Polls Slack Web API for messages, access logs, and workspace inventory snapshots.",
1589
1605
  "datasetKind": "event"
1606
+ },
1607
+ {
1608
+ "kind": "threatfox",
1609
+ "displayName": "abuse.ch ThreatFox",
1610
+ "ecrImageUrl": "718287746078.dkr.ecr.us-east-2.amazonaws.com/perpetual-connectors/threatfox:0.0.2",
1611
+ "connectorType": "polling",
1612
+ "settingsSchema": {
1613
+ "$schema": "http://json-schema.org/draft-07/schema#",
1614
+ "type": "object",
1615
+ "properties": {
1616
+ "fullSweepHours": {
1617
+ "default": 24,
1618
+ "title": "Full sweep interval (hours)",
1619
+ "description": "Hours between full sweeps. A full sweep replaces the table with the ThreatFox export and removes expired indicators. Runs between sweeps add only new indicators.",
1620
+ "type": "number",
1621
+ "exclusiveMinimum": 0
1622
+ },
1623
+ "minConfidence": {
1624
+ "default": 0,
1625
+ "title": "Minimum confidence",
1626
+ "description": "Indicators with a confidence level below this value (0 to 100) are not added to the table.",
1627
+ "type": "integer",
1628
+ "minimum": 0,
1629
+ "maximum": 100
1630
+ }
1631
+ },
1632
+ "required": [
1633
+ "fullSweepHours",
1634
+ "minConfidence"
1635
+ ],
1636
+ "additionalProperties": false
1637
+ },
1638
+ "credentials": [
1639
+ {
1640
+ "id": "api",
1641
+ "label": "abuse.ch Auth-Key",
1642
+ "description": "Your own abuse.ch Auth-Key from https://auth.abuse.ch/. Set Allowed URL patterns to https://threatfox-api.abuse.ch/*. See SETUP.md.",
1643
+ "required": true,
1644
+ "acceptedCredentialTypes": [
1645
+ "Text"
1646
+ ],
1647
+ "credentialSchema": {
1648
+ "$schema": "http://json-schema.org/draft-07/schema#",
1649
+ "type": "object",
1650
+ "properties": {
1651
+ "type": {
1652
+ "type": "string",
1653
+ "const": "Text"
1654
+ },
1655
+ "value": {
1656
+ "type": "string",
1657
+ "minLength": 1
1658
+ },
1659
+ "allowedUrlPatterns": {
1660
+ "type": "array",
1661
+ "items": {
1662
+ "type": "string"
1663
+ }
1664
+ }
1665
+ },
1666
+ "required": [
1667
+ "type",
1668
+ "value"
1669
+ ],
1670
+ "additionalProperties": false
1671
+ }
1672
+ }
1673
+ ],
1674
+ "iconExt": "svg",
1675
+ "description": "Sync abuse.ch ThreatFox indicators of compromise into a State Table to match IPs, domains, URLs, and file hashes in security events.",
1676
+ "datasetKind": "state",
1677
+ "lambdaMemoryMb": 512
1678
+ },
1679
+ {
1680
+ "kind": "tor-exit-nodes",
1681
+ "displayName": "Tor Exit Nodes",
1682
+ "ecrImageUrl": "718287746078.dkr.ecr.us-east-2.amazonaws.com/perpetual-connectors/tor-exit-nodes:0.0.1",
1683
+ "connectorType": "polling",
1684
+ "settingsSchema": {
1685
+ "$schema": "http://json-schema.org/draft-07/schema#",
1686
+ "type": "object",
1687
+ "properties": {},
1688
+ "additionalProperties": false
1689
+ },
1690
+ "credentials": [],
1691
+ "iconExt": "svg",
1692
+ "description": "Sync the Tor Project bulk exit node list into a State Table to find sign-ins and admin actions that come from Tor.",
1693
+ "datasetKind": "state"
1590
1694
  }
1591
1695
  ]
1592
1696
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perpetualsystems/connector-registry",
3
- "version": "202611.23.3",
3
+ "version": "202611.25.1",
4
4
  "description": "Built-in connector catalog manifest for Perpetual management plane",
5
5
  "type": "module",
6
6
  "exports": {