{
  "name": "TacitRedThreatIntel",
  "apiVersion": "2025-09-01",
  "type": "Microsoft.SecurityInsights/dataConnectorDefinitions",
  "location": "{{location}}",
  "kind": "Customizable",
  "properties": {
    "connectorUiConfig": {
      "id": "TacitRedThreatIntel",
      "connectorId": "TacitRedThreatIntel",
      "title": "TacitRed Compromised Credentials",
      "publisher": "TacitRed",
      "descriptionMarkdown": "Ingest compromised credential findings from TacitRed using the Common Connector Framework (CCF).",
      "graphQueriesTableName": "TacitRed_Findings_CL",
      "graphQueries": [
        {
          "metricName": "Total TacitRed findings received",
          "legend": "TacitRed Findings",
          "baseQuery": "TacitRed_Findings_CL"
        }
      ],
      "sampleQueries": [
        {
          "description": "Recent compromised credentials",
          "query": "TacitRed_Findings_CL | where TimeGenerated >= ago(7d) | project TimeGenerated, email_s, domain_s, confidence_d, source_s"
        }
      ],
      "dataTypes": [
        {
          "name": "TacitRed_Findings_CL",
          "lastDataReceivedQuery": "TacitRed_Findings_CL | summarize Time = max(TimeGenerated) | where isnotempty(Time)"
        }
      ],
      "connectivityCriteria": [
        {
          "type": "HasDataConnectors"
        }
      ],
      "availability": {
        "status": "Available",
        "isPreview": false
      },
      "permissions": {
        "resourceProvider": [
          {
            "provider": "Microsoft.OperationalInsights/workspaces",
            "permissionsDisplayText": "Read and write permissions required",
            "providerDisplayName": "Workspace",
            "scope": "Workspace",
            "requiredPermissions": {
              "write": true,
              "read": true,
              "delete": false
            }
          }
        ],
        "customs": [
          {
            "name": "TacitRed API Key",
            "description": "API key stored in Azure Key Vault or provided at deployment time."
          }
        ]
      },
      "instructionSteps": [
        {
          "title": "Connect TacitRed Compromised Credentials",
          "description": "To enable the TacitRed connector, provide your API key below and click Connect.\n\n>For enhanced security, you can enable Key Vault integration to store and retrieve the API key.",
          "instructions": [
            {
              "type": "Textbox",
              "parameters": {
                "label": "TacitRed API Key",
                "placeholder": "Enter your TacitRed API key",
                "type": "password",
                "name": "tacitRedApiKey"
              }
            },
            {
              "type": "ConnectionToggleButton",
              "parameters": {
                "connectLabel": "Connect",
                "name": "connect"
              }
            }
          ]
        }
      ]
    }
  }
}
