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