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.6 KB
Raw Blame
id: chronicle-detection-rules-ttp-windows-suspicious-filewrites-to-sharepoint-layouts
name: ttp_windows_suspicious_filewrites_to_sharepoint_layouts
description: ttp_windows_suspicious_filewrites_to_sharepoint_layouts
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 ttp_windows_suspicious_filewrites_to_sharepoint_layouts {\n\n  meta:\n\
    \    author = \"Google Cloud Security\"\n    rule_name = \"Suspicious Filewrites\
    \ To Sharepoint Layouts\"\n    description = \"Detects a command-line interpreter\
    \ (cmd.exe or powershell.exe) writing a file to a SharePoint (\\TEMPLATE\\LAYOUTS)\
    \ directory.\"\n    severity = \"High\"\n    tactic = \"TA0003\"\n    technique\
    \ = \"T1505.003\"\n    rule_id = \"mr_06c0d5b5-8185-4584-8db0-28c8fd4971ea\"\n\
    \n  events:\n    (\n      $e.metadata.event_type = \"FILE_CREATION\" or\n    \
    \  $e.metadata.event_type = \"FILE_MODIFICATION\" or\n      $e.metadata.event_type\
    \ = \"FILE_MOVE\"\n    )\n    $e.target.file.full_path = /\\\\\\d{1,2}\\\\TEMPLATE\\\
    \\LAYOUTS\\\\[^\\\\]+$/ nocase\n    $e.principal.process.file.full_path = /(^|\\\
    \\)(pwsh|cmd|powershell)\\.exe$/ nocase\n    not $e.principal.process.command_line\
    \ = /C:\\\\SP\\\\Automation\\\\\\\\AutoSPInstallerMain.ps1\\s+C:\\\\SP\\\\Automation\\\
    \\\\\\AutoSPInstallerInput.xml/ nocase\n\n  outcome:\n    $principal_hostname\
    \ = $e.principal.hostname\n    $risk_score = 85\n    $vendor_name = array($e.metadata.vendor_name)\n\
    \    $product_name = $e.metadata.product_name\n    $victim_uid = $e.principal.asset.asset_id\n\
    \    $victim_name = $e.principal.asset.hostname\n    $victim_netid = array($e.principal.ip)\n\
    \    $adversary_uid = $e.principal.user.userid\n    $adversary_name = $e.principal.user.user_display_name\n\
    \    $adversary_netid = $e.principal.user.windows_sid\n    $tmp1 = max(\n    \
    \  if($e.security_result.action != \"BLOCK\" and $e.security_result.action !=\
    \ \"UNKNOWN_ACTION\", 2)\n    )\n    $tmp2 = max(\n      if($e.security_result.action\
    \ = \"BLOCK\", 1)\n    )\n    $result = arrays.index_to_str(strings.split(\"attempted,failed,succeeded,succeeded\"\
    ), $tmp1 + $tmp2)\n    $result_time = $e.metadata.event_timestamp.seconds\n  \
    \  $event_count = 1\n\n  condition:\n    $e\n}"
  chronicle_rule_name: ttp_windows_suspicious_filewrites_to_sharepoint_layouts
provenance:
  source: chronicle/detection-rules
  source_id: ttp_windows_suspicious_filewrites_to_sharepoint_layouts
  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/sharepoint/ttp_windows_suspicious_filewrites_to_sharepoint_layouts.yaral
notes:
  chronicle_meta: {}
  quarantine_reason: raw YARA-L — needs translation to AiSOC schema