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.

1.9 KB
Raw Blame
id: splunk-security-content-bef21d24-297e-45e3-9b9a-c6ac45450474
name: Powershell Remote Services Add TrustedHost
description: The following analytic detects the execution of a PowerShell script that
  modifies the 'TrustedHosts' configuration via EventCode 4104. It leverages PowerShell
  Script Block Logging to identify commands targeting WSMan settings, specifically
  those altering or concatenating trusted hosts. This activity is significant as it
  can indicate attempts to manipulate remote connection settings, potentially allowing
  unauthorized remote access. If confirmed malicious, this could enable attackers
  to establish persistent remote connections, bypass security protocols, and gain
  unauthorized access to sensitive systems and data.
severity: medium
enabled: false
tags:
  mitre:
  - T1021.006
  categories:
  - endpoint
references:
- https://malpedia.caad.fkie.fraunhofer.de/details/win.darkgate
logsource:
  product: splunk
detection:
  splunk_spl: '`powershell` EventCode=4104  ScriptBlockText = "*WSMan:\\localhost\\Client\\TrustedHosts*"
    ScriptBlockText IN ("* -Value *", "* -Concatenate *") | fillnull | stats count
    min(_time) as firstTime max(_time) as lastTime by dest signature signature_id
    user_id vendor_product EventID Guid Opcode Name Path ProcessID ScriptBlockId ScriptBlockText
    | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)` | `powershell_remote_services_add_trustedhost_filter`'
provenance:
  source: splunk/security_content
  source_id: bef21d24-297e-45e3-9b9a-c6ac45450474
  source_commit: 4d4c7ee
  license: Apache-2.0
  license_url: https://github.com/splunk/security_content/blob/develop/LICENSE
  imported_at: '2026-05-04'
  imported_by: splunk_importer
  upstream_path: detections/endpoint/powershell_remote_services_add_trustedhost.yml
notes:
  splunk_status: production
  splunk_data_source: []
  quarantine_reason: raw SPL — needs translation to AiSOC detection schema