Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

3.2 KB
Raw Blame
id: chronicle-detection-rules-o365-entra-id-client-secret-add-update-delete-in-app
name: o365_entra_id_client_secret_add_update_delete_in_app
description: o365_entra_id_client_secret_add_update_delete_in_app
severity: medium
enabled: false
tags:
  mitre: []
  categories:
  - endpoint
references: []
logsource:
  product: chronicle
detection:
  chronicle_yaral: "/*\n * Copyright 2025 Google LLC\n *\n * Licensed under the Apache\
    \ License, Version 2.0 (the \"License\");\n * you may not use this file except\
    \ in compliance with the License.\n * You may obtain a copy of the License at\n\
    \ *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required\
    \ by applicable law or agreed to in writing, software\n * distributed under the\
    \ License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS\
    \ OF ANY KIND, either express or implied.\n * See the License for the specific\
    \ language governing permissions and\n * limitations under the License.\n */\n\
    \nrule o365_entra_id_client_secret_add_update_delete_in_app {\n\n  meta:\n   \
    \ author = \"Google Cloud Security\"\n    description = \"Secrets added to applications\
    \ have legitimate purposes, but can also be a method of persistence. This alert\
    \ will trigger on creation, modification or delete of a client secret\"\n    rule_id\
    \ = \"mr_24ac7907-9d86-4089-901c-61f8ff1e7730\"\n    rule_name = \"O365 Entra\
    \ ID App Client Secret Added, Updated or Deleted\"\n    tactic = \"TA0003\"\n\
    \    technique = \"T1098.001\"\n    type = \"alert\"\n    platform = \"azure\"\
    \n    data_source = \"o365\"\n    severity = \"Medium\"\n    priority = \"Medium\"\
    \n\n  events:\n    $app.metadata.event_type = \"USER_RESOURCE_UPDATE_CONTENT\"\
    \n    $app.metadata.product_name = \"Office 365\"\n    $app.metadata.product_event_type\
    \ = /Update application.*Certificates and secrets management/\n    $app.metadata.vendor_name\
    \ = \"Microsoft\"\n    $app.security_result.action = \"ALLOW\"\n    $app.principal.user.userid\
    \ = $userid\n\n  match:\n    $userid over 5m\n\n  outcome:\n    $risk_score =\
    \ 65\n    $event_count = count_distinct($app.metadata.id)\n    $security_summary\
    \ = array_distinct($app.security_result.summary)\n    $user_agent = array_distinct($app.network.http.user_agent)\n\
    \    $target_entra_id_application = array_distinct(re.capture($app.network.http.user_agent,`\\\
    \"AppId\\\":\\\"(.*)`))\n    //added to populate alert graph with additional context\n\
    \    $principal_user_userid = array_distinct($app.principal.user.userid)\n\n \
    \ condition:\n    $app\n}"
  chronicle_rule_name: o365_entra_id_client_secret_add_update_delete_in_app
provenance:
  source: chronicle/detection-rules
  source_id: o365_entra_id_client_secret_add_update_delete_in_app
  source_commit: 74dd490
  license: Apache-2.0
  license_url: https://github.com/chronicle/detection-rules/blob/main/LICENSE
  imported_at: '2026-05-04'
  imported_by: chronicle_importer
  upstream_path: rules/community/microsoft/o365/o365_entra_id_client_secret_add_update_delete_in_app.yaral
notes:
  chronicle_meta: {}
  quarantine_reason: raw YARA-L — needs translation to AiSOC schema