Back
Idf3c25011-4509-41c8-be27-35d891531c39
RulenameCyble Vision Alerts Bitbucket
DescriptionDetects exposed secrets in Bitbucket repositories using the Alerts_bit_bucket parser. Creates one incident per matched secret. Includes decoder, detector, commit, file, and repository context for SOC triage.
SeverityLow
TacticsCredentialAccess
Exfiltration
Discovery
TechniquesT1552
T1537
T1083
Required data connectorsCybleVisionAlerts
KindScheduled
Query frequency30m
Query period30m
Trigger threshold0
Trigger operatorGreaterThan
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Cyble%20Vision/Analytic%20Rules/Alerts_BitBucket.yaml
Version1.0.0
Arm templatef3c25011-4509-41c8-be27-35d891531c39.json
Deploy To Azure
Alerts_bit_bucket 
| where Service == "bit_bucket" 
| extend MappedSeverity = Severity
incidentConfiguration:
  groupingConfiguration:
    matchingMethod: AllEntities
    enabled: false
    lookbackDuration: PT5H
    reopenClosedIncident: false
  createIncident: true
triggerOperator: GreaterThan
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Cyble%20Vision/Analytic%20Rules/Alerts_BitBucket.yaml
triggerThreshold: 0
id: f3c25011-4509-41c8-be27-35d891531c39
kind: Scheduled
queryPeriod: 30m
version: 1.0.0
tactics:
- CredentialAccess
- Exfiltration
- Discovery
relevantTechniques:
- T1552
- T1537
- T1083
queryFrequency: 30m
alertDetailsOverride:
  alertDescriptionFormat: |
    A sensitive secret was detected in Bitbucket repository {{BB_Repository}}. File {{BB_File}}:{{BB_Line}}. Investigator should verify exposure, rotate credentials and remediate impacted systems.
  alertDisplayNameFormat: Secret Exposure in Bitbucket {{BB_File}} ({{BB_DetectorName}})
severity: Low
enabled: true
name: Cyble Vision Alerts Bitbucket
requiredDataConnectors:
- connectorId: CybleVisionAlerts
  dataTypes:
  - CybleVisionAlerts_CL
entityMappings:
- entityType: Url
  fieldMappings:
  - identifier: Url
    columnName: BB_Repository
- entityType: Url
  fieldMappings:
  - identifier: Url
    columnName: BB_Link
- entityType: File
  fieldMappings:
  - identifier: Name
    columnName: BB_File
  - identifier: Directory
    columnName: KeywordName
description: |
  'Detects exposed secrets in Bitbucket repositories using the Alerts_bit_bucket parser. Creates one incident per matched secret. Includes decoder, detector, commit, file, and repository context for SOC triage.'
eventGroupingSettings:
  aggregationKind: AlertPerResult
status: Available
query: |
  Alerts_bit_bucket 
  | where Service == "bit_bucket" 
  | extend MappedSeverity = Severity
customDetails:
  BB_Line: BB_Line
  BB_Raw: BB_Raw
  BB_Repository: BB_Repository
  BB_Commit: BB_Commit
  MappedSeverity: Severity
  BB_DetectorName: BB_DetectorName
  BB_File: BB_File
  BB_Link: BB_Link
  Service: Service
  BB_Email: BB_Email
  BB_Verified: BB_Verified
  AlertID: AlertID
  Status: Status
  BB_RotationGuide: BB_RotationGuide
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workspace": {
      "type": "String"
    }
  },
  "resources": [
    {
      "apiVersion": "2024-01-01-preview",
      "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/f3c25011-4509-41c8-be27-35d891531c39')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/f3c25011-4509-41c8-be27-35d891531c39')]",
      "properties": {
        "alertDetailsOverride": {
          "alertDescriptionFormat": "A sensitive secret was detected in Bitbucket repository {{BB_Repository}}. File {{BB_File}}:{{BB_Line}}. Investigator should verify exposure, rotate credentials and remediate impacted systems.\n",
          "alertDisplayNameFormat": "Secret Exposure in Bitbucket {{BB_File}} ({{BB_DetectorName}})"
        },
        "alertRuleTemplateName": "f3c25011-4509-41c8-be27-35d891531c39",
        "customDetails": {
          "AlertID": "AlertID",
          "BB_Commit": "BB_Commit",
          "BB_DetectorName": "BB_DetectorName",
          "BB_Email": "BB_Email",
          "BB_File": "BB_File",
          "BB_Line": "BB_Line",
          "BB_Link": "BB_Link",
          "BB_Raw": "BB_Raw",
          "BB_Repository": "BB_Repository",
          "BB_RotationGuide": "BB_RotationGuide",
          "BB_Verified": "BB_Verified",
          "MappedSeverity": "Severity",
          "Service": "Service",
          "Status": "Status"
        },
        "description": "'Detects exposed secrets in Bitbucket repositories using the Alerts_bit_bucket parser. Creates one incident per matched secret. Includes decoder, detector, commit, file, and repository context for SOC triage.'\n",
        "displayName": "Cyble Vision Alerts Bitbucket",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Url",
            "fieldMappings": [
              {
                "columnName": "BB_Repository",
                "identifier": "Url"
              }
            ]
          },
          {
            "entityType": "Url",
            "fieldMappings": [
              {
                "columnName": "BB_Link",
                "identifier": "Url"
              }
            ]
          },
          {
            "entityType": "File",
            "fieldMappings": [
              {
                "columnName": "BB_File",
                "identifier": "Name"
              },
              {
                "columnName": "KeywordName",
                "identifier": "Directory"
              }
            ]
          }
        ],
        "eventGroupingSettings": {
          "aggregationKind": "AlertPerResult"
        },
        "incidentConfiguration": {
          "createIncident": true,
          "groupingConfiguration": {
            "enabled": false,
            "lookbackDuration": "PT5H",
            "matchingMethod": "AllEntities",
            "reopenClosedIncident": false
          }
        },
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Cyble%20Vision/Analytic%20Rules/Alerts_BitBucket.yaml",
        "query": "Alerts_bit_bucket \n| where Service == \"bit_bucket\" \n| extend MappedSeverity = Severity\n",
        "queryFrequency": "PT30M",
        "queryPeriod": "PT30M",
        "severity": "Low",
        "status": "Available",
        "subTechniques": [],
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "CredentialAccess",
          "Discovery",
          "Exfiltration"
        ],
        "techniques": [
          "T1083",
          "T1537",
          "T1552"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}