Microsoft Sentinel Analytic Rules
cloudbrothers.infoAzure Sentinel RepoToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Preview GitHub - A payment method was removed

Back
Id6bb50582-caac-4a9b-9afb-3fee766ebbf7
Rulename(Preview) GitHub - A payment method was removed
DescriptionDetect activities when a payment method was removed. This query runs every day and its severity is Medium.
SeverityMedium
TacticsInitialAccess
TechniquesT1078
KindScheduled
Query frequency1d
Query period7d
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/GitHub/Analytic Rules/(Preview) GitHub - A payment method was removed.yaml
Version1.0.1
Arm template6bb50582-caac-4a9b-9afb-3fee766ebbf7.json
Deploy To Azure
GitHubAuditData
| where Action == "payment_method.remove"
| extend AccountName = tostring(split(Actor, "@")[0]), AccountUPNSuffix = tostring(split(Actor, "@")[1])
name: (Preview) GitHub - A payment method was removed
status: Available
triggerThreshold: 0
severity: Medium
tactics:
- InitialAccess
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/GitHub/Analytic Rules/(Preview) GitHub - A payment method was removed.yaml
entityMappings:
- entityType: Account
  fieldMappings:
  - columnName: Actor
    identifier: FullName
  - columnName: AccountName
    identifier: Name
  - columnName: AccountUPNSuffix
    identifier: UPNSuffix
queryPeriod: 7d
queryFrequency: 1d
version: 1.0.1
triggerOperator: gt
description: |
    'Detect activities when a payment method was removed. This query runs every day and its severity is Medium.'
query: |
  GitHubAuditData
  | where Action == "payment_method.remove"
  | extend AccountName = tostring(split(Actor, "@")[0]), AccountUPNSuffix = tostring(split(Actor, "@")[1])  
relevantTechniques:
- T1078
id: 6bb50582-caac-4a9b-9afb-3fee766ebbf7
requiredDataConnectors: []
kind: Scheduled
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workspace": {
      "type": "String"
    }
  },
  "resources": [
    {
      "apiVersion": "2023-02-01-preview",
      "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/6bb50582-caac-4a9b-9afb-3fee766ebbf7')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/6bb50582-caac-4a9b-9afb-3fee766ebbf7')]",
      "properties": {
        "alertRuleTemplateName": "6bb50582-caac-4a9b-9afb-3fee766ebbf7",
        "customDetails": null,
        "description": "'Detect activities when a payment method was removed. This query runs every day and its severity is Medium.'\n",
        "displayName": "(Preview) GitHub - A payment method was removed",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Account",
            "fieldMappings": [
              {
                "columnName": "Actor",
                "identifier": "FullName"
              },
              {
                "columnName": "AccountName",
                "identifier": "Name"
              },
              {
                "columnName": "AccountUPNSuffix",
                "identifier": "UPNSuffix"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/GitHub/Analytic Rules/(Preview) GitHub - A payment method was removed.yaml",
        "query": "GitHubAuditData\n| where Action == \"payment_method.remove\"\n| extend AccountName = tostring(split(Actor, \"@\")[0]), AccountUPNSuffix = tostring(split(Actor, \"@\")[1])\n",
        "queryFrequency": "P1D",
        "queryPeriod": "P7D",
        "severity": "Medium",
        "status": "Available",
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "InitialAccess"
        ],
        "techniques": [
          "T1078"
        ],
        "templateVersion": "1.0.1",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}