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
queryFrequency: 30m
entityMappings:
- fieldMappings:
  - columnName: BB_Repository
    identifier: Url
  entityType: Url
- fieldMappings:
  - columnName: BB_Link
    identifier: Url
  entityType: Url
- fieldMappings:
  - columnName: BB_File
    identifier: Name
  - columnName: KeywordName
    identifier: Directory
  entityType: File
incidentConfiguration:
  createIncident: true
  groupingConfiguration:
    lookbackDuration: PT5H
    matchingMethod: AllEntities
    enabled: false
    reopenClosedIncident: false
triggerThreshold: 0
enabled: true
triggerOperator: GreaterThan
severity: Low
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Cyble%20Vision/Analytic%20Rules/Alerts_BitBucket.yaml
eventGroupingSettings:
  aggregationKind: AlertPerResult
alertDetailsOverride:
  alertDisplayNameFormat: Secret Exposure in Bitbucket {{BB_File}} ({{BB_DetectorName}})
  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.
query: |
  Alerts_bit_bucket 
  | where Service == "bit_bucket" 
  | extend MappedSeverity = Severity
tactics:
- CredentialAccess
- Exfiltration
- Discovery
queryPeriod: 30m
customDetails:
  BB_RotationGuide: BB_RotationGuide
  BB_Commit: BB_Commit
  BB_Email: BB_Email
  MappedSeverity: Severity
  Service: Service
  BB_File: BB_File
  AlertID: AlertID
  BB_Repository: BB_Repository
  BB_Raw: BB_Raw
  BB_Line: BB_Line
  BB_Verified: BB_Verified
  BB_DetectorName: BB_DetectorName
  BB_Link: BB_Link
  Status: Status
relevantTechniques:
- T1552
- T1537
- T1083
requiredDataConnectors:
- connectorId: CybleVisionAlerts
  dataTypes:
  - CybleVisionAlerts_CL
id: f3c25011-4509-41c8-be27-35d891531c39
kind: Scheduled
version: 1.0.0
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.'
status: Available
name: Cyble Vision Alerts Bitbucket
{
  "$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"
    }
  ]
}