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.

2.6 KB
Raw Blame
id: splunk-security-content-1f44c126-c26a-4dd3-83bb-0f9a0f03ecc3
name: Windows Scheduled Task with Suspicious Command
description: The following analytic detects the creation of scheduled tasks designed
  to execute commands using native Windows shells like PowerShell, Cmd, Wscript, or
  Cscript or from public folders such as Users, Temp, or ProgramData. It leverages
  Windows Security EventCode 4698, 4700, and 4702 to identify when such tasks are
  registered, enabled, or modified. This activity is significant as it may indicate
  an attempt to establish persistence or execute malicious commands on a system. If
  confirmed malicious, this could allow an attacker to maintain access, execute arbitrary
  code, or escalate privileges, posing a severe threat to the environment.
severity: medium
enabled: false
tags:
  mitre:
  - T1053.005
  categories:
  - endpoint
references:
- https://attack.mitre.org/techniques/T1053/005/
- https://www.ic3.gov/CSA/2023/231213.pdf
- https://news.sophos.com/en-us/2024/11/06/bengal-cat-lovers-in-australia-get-psspsspssd-in-google-driven-gootloader-campaign/
- https://github.com/mthcht/awesome-lists/blob/main/Lists/suspicious_windows_tasks_list.csv
logsource:
  product: splunk
detection:
  splunk_spl: "`wineventlog_security` EventCode IN (4698,4700,4702)\n| eval TaskContent\
    \ = case(isnotnull(TaskContentNew),TaskContentNew,true(),TaskContent)\n| xmlkv\
    \ TaskContent\n| stats count min(_time) as firstTime max(_time) as lastTime latest(Arguments)\
    \ as Arguments latest(Author) as Author by Computer, Caller_User_Name, TaskName,\
    \ Command, Enabled, Hidden, EventCode\n| lookup windows_suspicious_tasks task_command\
    \ as Command \n| where tool == \"shell command use\" OR tool == \"suspicious paths\"\
    \n| eval command=TaskName, process=Command+if(isnotnull(Arguments),\" \".Arguments,\"\
    \"), src_user=Author, user = Caller_User_Name, dest = Computer, signature_id =\
    \ EventCode \n| `security_content_ctime(firstTime)` \n| `security_content_ctime(lastTime)`\n\
    | `windows_scheduled_task_with_suspicious_command_filter`"
provenance:
  source: splunk/security_content
  source_id: 1f44c126-c26a-4dd3-83bb-0f9a0f03ecc3
  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/windows_scheduled_task_with_suspicious_command.yml
notes:
  splunk_status: production
  splunk_data_source: []
  quarantine_reason: raw SPL — needs translation to AiSOC detection schema