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.

feat(detections): migrate 16 quarantined osquery rules to native schema (det-endpoint-281..296)

Beenu1e46e94b98a8
diff --git a/detections/endpoint/osquery-linux-auditd-service-stop.yaml b/detections/endpoint/osquery-linux-auditd-service-stop.yaml
new file mode 100644
index 000000000..dce7eb7bb
--- /dev/null
+++ b/detections/endpoint/osquery-linux-auditd-service-stop.yaml
@@ -0,0 +1,24 @@
+id: det-endpoint-286
+name: Linux osqueryd Service Stop Detected via auditd
+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Linux osqueryd
+ Service Stop Detected via auditd'. Watch the 1 documented false-positive case before tuning.
+version: 1.0.0
+severity: high
+tags:
+- mitre.attack.t1489
+- tlp.white
+category: endpoint
+log_source:
+ product: linux
+ service: auditd
+detection:
+ condition: |
+ event_type == "osquery_query_row"
+ AND cmdline CONTAINS_ANY ["service osqueryd stop", "systemctl stop osqueryd"]
+false_positives:
+- Admin stopping osqueryd for maintenance (allow-listed)
+playbook: tpl-defense-evasion
+enabled: true
+author: AiSOC
+created: '2026-05-03'
+modified: '2026-05-03'
diff --git a/detections/endpoint/osquery-linux-baron-samedit-cve-2021-3156.yaml b/detections/endpoint/osquery-linux-baron-samedit-cve-2021-3156.yaml
new file mode 100644
index 000000000..2f169131b
--- /dev/null
+++ b/detections/endpoint/osquery-linux-baron-samedit-cve-2021-3156.yaml
@@ -0,0 +1,24 @@
+id: det-endpoint-285
+name: Baron Samedit CVE-2021-3156 Exploit Attempt
+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Baron Samedit CVE-2021-3156
+ Exploit Attempt'. Watch the 1 documented false-positive case before tuning.
+version: 1.0.0
+severity: medium
+tags:
+- mitre.attack.t1068
+- tlp.white
+category: endpoint
+log_source:
+ product: osquery
+ service: processes
+detection:
+ condition: |
+ event_type == "osquery_query_row"
+ AND cmdline STARTSWITH "sudoedit -s "
+false_positives:
+- Security testing in authorised environment
+playbook: tpl-privilege-escalation
+enabled: true
+author: AiSOC
+created: '2026-05-03'
+modified: '2026-05-03'
diff --git a/detections/endpoint/osquery-macos-account-created.yaml b/detections/endpoint/osquery-macos-account-created.yaml
new file mode 100644
index 000000000..e1a55042d
--- /dev/null
+++ b/detections/endpoint/osquery-macos-account-created.yaml
@@ -0,0 +1,24 @@
+id: det-endpoint-287
+name: macOS Local User Account Created
+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'macOS Local User
+ Account Created'. Watch the 1 documented false-positive case before tuning.
+version: 1.0.0
+severity: medium
+tags:
+- mitre.attack.t1136.001
+- tlp.white
+category: endpoint
+log_source:
+ product: osquery
+ service: processes
+detection:
+ condition: |
+ event_type == "osquery_query_row"
+ AND cmdline CONTAINS_ANY ["sysadminctl -addUser", "dscl . -create /Users/", "createhomedir -u "]
+false_positives:
+- IT administrator provisioning new user
+playbook: tpl-account-anomaly
+enabled: true
+author: AiSOC
+created: '2026-05-03'
+modified: '2026-05-03'
diff --git a/detections/endpoint/osquery-macos-amos-stealer-vm-check.yaml b/detections/endpoint/osquery-macos-amos-stealer-vm-check.yaml
new file mode 100644
index 000000000..8b5f882a4
--- /dev/null
+++ b/detections/endpoint/osquery-macos-amos-stealer-vm-check.yaml
@@ -0,0 +1,25 @@
+id: det-endpoint-281
+name: AMoS Stealer Virtual Machine Detection via osquery
+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'AMoS Stealer Virtual
+ Machine Detection via osquery'. Watch the 1 documented false-positive case before tuning.
+version: 1.0.0
+severity: high
+tags:
+- mitre.attack.t1059.002
+- tlp.white
+category: endpoint
+log_source:
+ product: osquery
+ service: processes
+detection:
+ condition: |
+ event_type == "osquery_query_row"
+ AND cmdline CONTAINS_ALL ["osascript", "system_profiler"]
+ AND cmdline CONTAINS_ANY ["VMware", "QEMU", "VirtualBox"]
+false_positives:
+- Admin/developer running virtual machine checks (allow-listed)
+playbook: tpl-malware-execution
+enabled: true
+author: AiSOC
+created: '2026-05-03'
+modified: '2026-05-03'
diff --git a/detections/endpoint/osquery-macos-data-chunking.yaml b/detections/endpoint/osquery-macos-data-chunking.yaml
new file mode 100644
index 000000000..647340f3a
--- /dev/null
+++ b/detections/endpoint/osquery-macos-data-chunking.yaml
@@ -0,0 +1,24 @@
+id: det-endpoint-282
+name: macOS Data Chunking via dd or split
+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'macOS Data Chunking
+ via dd or split'. Watch the 1 documented false-positive case before tuning.
+version: 1.0.0
+severity: high
+tags:
+- mitre.attack.t1030
+- tlp.white
+category: endpoint
+log_source:
+ product: osquery
+ service: processes
+detection:
+ condition: |
+ event_type == "osquery_query_row"
+ AND cmdline CONTAINS_ANY ["dd if=", "split -b"]
+false_positives:
+- Legitimate backup or data-processing script (allow-listed)
+playbook: tpl-data-exfil
+enabled: true
+author: AiSOC
+created: '2026-05-03'
+modified: '2026-05-03'
diff --git a/detections/endpoint/osquery-macos-gatekeeper-bypass.yaml b/detections/endpoint/osquery-macos-gatekeeper-bypass.yaml
new file mode 100644
index 000000000..0ef003dc1
--- /dev/null
+++ b/detections/endpoint/osquery-macos-gatekeeper-bypass.yaml
@@ -0,0 +1,24 @@
+id: det-endpoint-283
+name: macOS Gatekeeper Bypass Attempt
+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'macOS Gatekeeper
+ Bypass Attempt'. Watch the 1 documented false-positive case before tuning.
+version: 1.0.0
+severity: high
+tags:
+- mitre.attack.t1553.001
+- tlp.white
+category: endpoint
+log_source:
+ product: osquery
+ service: processes
+detection:
+ condition: |
+ event_type == "osquery_query_row"
+ AND cmdline CONTAINS_ANY ["com.apple.quarantine", "spctl --master-disable"]
+false_positives:
+- Developer removing quarantine attr for internal build (allow-listed)
+playbook: tpl-defense-evasion
+enabled: true
+author: AiSOC
+created: '2026-05-03'
+modified: '2026-05-03'
diff --git a/detections/endpoint/osquery-macos-hidden-file-directory.yaml b/detections/endpoint/osquery-macos-hidden-file-directory.yaml
new file mode 100644
index 000000000..ea6a4a76c
--- /dev/null
+++ b/detections/endpoint/osquery-macos-hidden-file-directory.yaml
@@ -0,0 +1,24 @@
+id: det-endpoint-288
+name: macOS Hidden File or Directory Created
+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'macOS Hidden File
+ or Directory Created'. Watch the 1 documented false-positive case before tuning.
+version: 1.0.0
+severity: medium
+tags:
+- mitre.attack.t1564.001
+- tlp.white
+category: endpoint
+log_source:
+ product: osquery
+ service: processes
+detection:
+ condition: |
+ event_type == "osquery_query_row"
+ AND cmdline CONTAINS_ANY ["chflags hidden", "xattr -wx com.apple"]
+false_positives:
+- Developer setting extended attributes for application bundle
+playbook: tpl-defense-evasion
+enabled: true
+author: AiSOC
+created: '2026-05-03'
+modified: '2026-05-03'
diff --git a/detections/endpoint/osquery-macos-kextload.yaml b/detections/endpoint/osquery-macos-kextload.yaml
new file mode 100644
index 000000000..ad9b5c0c1
--- /dev/null
+++ b/detections/endpoint/osquery-macos-kextload.yaml
@@ -0,0 +1,24 @@
+id: det-endpoint-289
+name: macOS Kernel Extension Loaded via kextload
+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'macOS Kernel Extension
+ Loaded via kextload'. Watch the 1 documented false-positive case before tuning.
+version: 1.0.0
+severity: high
+tags:
+- mitre.attack.t1543
+- tlp.white
+category: endpoint
+log_source:
+ product: osquery
+ service: processes
+detection:
+ condition: |
+ event_type == "osquery_query_row"
+ AND name == "kextload"
+false_positives:
+- Authorised kernel extension for security or virtualisation tool
+playbook: tpl-persistence
+enabled: true
+author: AiSOC
+created: '2026-05-03'
+modified: '2026-05-03'
diff --git a/detections/endpoint/osquery-macos-keyboard-event-tap.yaml b/detections/endpoint/osquery-macos-keyboard-event-tap.yaml
new file mode 100644
index 000000000..03d5b124b
--- /dev/null
+++ b/detections/endpoint/osquery-macos-keyboard-event-tap.yaml
@@ -0,0 +1,24 @@
+id: det-endpoint-296
+name: Process Tapping macOS Keyboard Events
+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Process Tapping
+ macOS Keyboard Events'. Watch the 1 documented false-positive case before tuning.
+version: 1.0.0
+severity: high
+tags:
+- mitre.attack.t1056.001
+- tlp.white
+category: endpoint
+log_source:
+ product: osquery
+ service: es_process_events
+detection:
+ condition: |
+ event_type == "osquery_query_row"
+ AND query_name CONTAINS "Keyboard_Event_Tap"
+false_positives:
+- Authorised accessibility software or approved input manager
+playbook: tpl-collection
+enabled: true
+author: AiSOC
+created: '2026-05-03'
+modified: '2026-05-03'
diff --git a/detections/endpoint/osquery-macos-keychain-dump.yaml b/detections/endpoint/osquery-macos-keychain-dump.yaml
new file mode 100644
index 000000000..daf4e57e8
--- /dev/null
+++ b/detections/endpoint/osquery-macos-keychain-dump.yaml
@@ -0,0 +1,24 @@
+id: det-endpoint-290
+name: macOS Keychain Dumping Attempt
+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'macOS Keychain
+ Dumping Attempt'. Watch the 1 documented false-positive case before tuning.
+version: 1.0.0
+severity: high
+tags:
+- mitre.attack.t1555.001
+- tlp.white
+category: endpoint
+log_source:
+ product: osquery
+ service: processes
+detection:
+ condition: |
+ event_type == "osquery_query_row"
+ AND cmdline CONTAINS_ANY ["dump-keychain -d", "find-certificate -p", "keychaindump", "Library/Keychains/"]
+false_positives:
+- Authorised credential management or backup script
+playbook: tpl-credential-theft
+enabled: true
+author: AiSOC
+created: '2026-05-03'
+modified: '2026-05-03'
diff --git a/detections/endpoint/osquery-macos-log-removal.yaml b/detections/endpoint/osquery-macos-log-removal.yaml
new file mode 100644
index 000000000..4c0a31d17
--- /dev/null
+++ b/detections/endpoint/osquery-macos-log-removal.yaml
@@ -0,0 +1,25 @@
+id: det-endpoint-291
+name: macOS System Log Removed or Manually Rotated
+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'macOS System Log
+ Removed or Manually Rotated'. Watch the 1 documented false-positive case before tuning.
+version: 1.0.0
+severity: medium
+tags:
+- mitre.attack.t1070
+- tlp.white
+category: endpoint
+log_source:
+ product: osquery
+ service: processes
+detection:
+ condition: |
+ event_type == "osquery_query_row"
+ AND cmdline CONTAINS_ALL ["system.log"]
+ AND cmdline CONTAINS_ANY ["rm ", "truncate", "audit -n"]
+false_positives:
+- Scheduled log rotation via cron or launchd
+playbook: tpl-defense-evasion
+enabled: true
+author: AiSOC
+created: '2026-05-03'
+modified: '2026-05-03'
diff --git a/detections/endpoint/osquery-macos-loginhook-persistence.yaml b/detections/endpoint/osquery-macos-loginhook-persistence.yaml
new file mode 100644
index 000000000..0c066a6b1
--- /dev/null
+++ b/detections/endpoint/osquery-macos-loginhook-persistence.yaml
@@ -0,0 +1,24 @@
+id: det-endpoint-292
+name: macOS LoginHook Persistence via defaults write
+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'macOS LoginHook
+ Persistence via defaults write'. Watch the 1 documented false-positive case before tuning.
+version: 1.0.0
+severity: high
+tags:
+- mitre.attack.t1037.002
+- tlp.white
+category: endpoint
+log_source:
+ product: osquery
+ service: processes
+detection:
+ condition: |
+ event_type == "osquery_query_row"
+ AND cmdline CONTAINS_ALL ["defaults", "write", "loginwindow", "LoginHook"]
+false_positives:
+- Authorised enterprise login script (allow-listed)
+playbook: tpl-persistence
+enabled: true
+author: AiSOC
+created: '2026-05-03'
+modified: '2026-05-03'
diff --git a/detections/endpoint/osquery-macos-lolbin-execution.yaml b/detections/endpoint/osquery-macos-lolbin-execution.yaml
new file mode 100644
index 000000000..1109996d7
--- /dev/null
+++ b/detections/endpoint/osquery-macos-lolbin-execution.yaml
@@ -0,0 +1,24 @@
+id: det-endpoint-293
+name: macOS Suspicious Living-Off-The-Land Binary Execution
+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'macOS Suspicious
+ Living-Off-The-Land Binary Execution'. Watch the 1 documented false-positive case before tuning.
+version: 1.0.0
+severity: low
+tags:
+- mitre.attack.t1059.004
+- tlp.white
+category: endpoint
+log_source:
+ product: osquery
+ service: processes
+detection:
+ condition: |
+ event_type == "osquery_query_row"
+ AND cmdline STARTSWITH_ANY ["funzip ", "openssl s_client", "openssl base64", "python -c import"]
+false_positives:
+- Developer using openssl for TLS testing (allow-listed)
+playbook: tpl-execution
+enabled: true
+author: AiSOC
+created: '2026-05-03'
+modified: '2026-05-03'
diff --git a/detections/endpoint/osquery-macos-network-share-discovery.yaml b/detections/endpoint/osquery-macos-network-share-discovery.yaml
new file mode 100644
index 000000000..0a34535dd
--- /dev/null
+++ b/detections/endpoint/osquery-macos-network-share-discovery.yaml
@@ -0,0 +1,24 @@
+id: det-endpoint-294
+name: macOS Network Share Discovery via showmount or smbutil
+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'macOS Network Share
+ Discovery via showmount or smbutil'. Watch the 1 documented false-positive case before tuning.
+version: 1.0.0
+severity: low
+tags:
+- mitre.attack.t1135
+- tlp.white
+category: endpoint
+log_source:
+ product: osquery
+ service: processes
+detection:
+ condition: |
+ event_type == "osquery_query_row"
+ AND name IN ["showmount", "smbutil"]
+false_positives:
+- Admin auditing network shares
+playbook: tpl-discovery
+enabled: true
+author: AiSOC
+created: '2026-05-03'
+modified: '2026-05-03'
diff --git a/detections/endpoint/osquery-macos-plutil-plist-modification.yaml b/detections/endpoint/osquery-macos-plutil-plist-modification.yaml
new file mode 100644
index 000000000..252012be9
--- /dev/null
+++ b/detections/endpoint/osquery-macos-plutil-plist-modification.yaml
@@ -0,0 +1,24 @@
+id: det-endpoint-295
+name: macOS Plist Modification via plutil
+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'macOS Plist Modification
+ via plutil'. Watch the 1 documented false-positive case before tuning.
+version: 1.0.0
+severity: medium
+tags:
+- mitre.attack.t1647
+- tlp.white
+category: endpoint
+log_source:
+ product: osquery
+ service: processes
+detection:
+ condition: |
+ event_type == "osquery_query_row"
+ AND path == "/usr/bin/plutil"
+false_positives:
+- Admin or developer editing plist files
+playbook: tpl-persistence
+enabled: true
+author: AiSOC
+created: '2026-05-03'
+modified: '2026-05-03'
diff --git a/detections/endpoint/osquery-macos-suspicious-plistbuddy.yaml b/detections/endpoint/osquery-macos-suspicious-plistbuddy.yaml
new file mode 100644
index 000000000..4bf3552d4
--- /dev/null
+++ b/detections/endpoint/osquery-macos-suspicious-plistbuddy.yaml
@@ -0,0 +1,25 @@
+id: det-endpoint-284
+name: Suspicious PlistBuddy LaunchAgent Modification
+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Suspicious PlistBuddy
+ LaunchAgent Modification'. Watch the 1 documented false-positive case before tuning.
+version: 1.0.0
+severity: high
+tags:
+- mitre.attack.t1543.001
+- tlp.white
+category: endpoint
+log_source:
+ product: osquery
+ service: processes
+detection:
+ condition: |
+ event_type == "osquery_query_row"
+ AND cmdline CONTAINS_ALL ["PlistBuddy"]
+ AND cmdline CONTAINS_ANY ["LaunchAgents", "RunAtLoad"]
+false_positives:
+- Legitimate plist management by administrator (allow-listed)
+playbook: tpl-persistence
+enabled: true
+author: AiSOC
+created: '2026-05-03'
+modified: '2026-05-03'
diff --git a/detections/fixtures/negative/osquery-linux-auditd-service-stop.json b/detections/fixtures/negative/osquery-linux-auditd-service-stop.json
new file mode 100644
index 000000000..3add488a1
--- /dev/null
+++ b/detections/fixtures/negative/osquery-linux-auditd-service-stop.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "prefix-service osqueryd stop-suffix",
+ "event_type": "not-osquery_query_row"
+}
diff --git a/detections/fixtures/negative/osquery-linux-baron-samedit-cve-2021-3156.json b/detections/fixtures/negative/osquery-linux-baron-samedit-cve-2021-3156.json
new file mode 100644
index 000000000..e4181464c
--- /dev/null
+++ b/detections/fixtures/negative/osquery-linux-baron-samedit-cve-2021-3156.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "sudoedit -s -tail",
+ "event_type": "not-osquery_query_row"
+}
diff --git a/detections/fixtures/negative/osquery-macos-account-created.json b/detections/fixtures/negative/osquery-macos-account-created.json
new file mode 100644
index 000000000..ab88abbe4
--- /dev/null
+++ b/detections/fixtures/negative/osquery-macos-account-created.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "prefix-sysadminctl -addUser-suffix",
+ "event_type": "not-osquery_query_row"
+}
diff --git a/detections/fixtures/negative/osquery-macos-amos-stealer-vm-check.json b/detections/fixtures/negative/osquery-macos-amos-stealer-vm-check.json
new file mode 100644
index 000000000..ee99d47ab
--- /dev/null
+++ b/detections/fixtures/negative/osquery-macos-amos-stealer-vm-check.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "osascriptsystem_profilerVMware",
+ "event_type": "not-osquery_query_row"
+}
diff --git a/detections/fixtures/negative/osquery-macos-data-chunking.json b/detections/fixtures/negative/osquery-macos-data-chunking.json
new file mode 100644
index 000000000..c8aa95798
--- /dev/null
+++ b/detections/fixtures/negative/osquery-macos-data-chunking.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "prefix-dd if=-suffix",
+ "event_type": "not-osquery_query_row"
+}
diff --git a/detections/fixtures/negative/osquery-macos-gatekeeper-bypass.json b/detections/fixtures/negative/osquery-macos-gatekeeper-bypass.json
new file mode 100644
index 000000000..a446afa47
--- /dev/null
+++ b/detections/fixtures/negative/osquery-macos-gatekeeper-bypass.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "prefix-com.apple.quarantine-suffix",
+ "event_type": "not-osquery_query_row"
+}
diff --git a/detections/fixtures/negative/osquery-macos-hidden-file-directory.json b/detections/fixtures/negative/osquery-macos-hidden-file-directory.json
new file mode 100644
index 000000000..30b77d664
--- /dev/null
+++ b/detections/fixtures/negative/osquery-macos-hidden-file-directory.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "prefix-chflags hidden-suffix",
+ "event_type": "not-osquery_query_row"
+}
diff --git a/detections/fixtures/negative/osquery-macos-kextload.json b/detections/fixtures/negative/osquery-macos-kextload.json
new file mode 100644
index 000000000..0289b24d0
--- /dev/null
+++ b/detections/fixtures/negative/osquery-macos-kextload.json
@@ -0,0 +1,4 @@
+{
+ "event_type": "not-osquery_query_row",
+ "name": "kextload"
+}
diff --git a/detections/fixtures/negative/osquery-macos-keyboard-event-tap.json b/detections/fixtures/negative/osquery-macos-keyboard-event-tap.json
new file mode 100644
index 000000000..56cc59798
--- /dev/null
+++ b/detections/fixtures/negative/osquery-macos-keyboard-event-tap.json
@@ -0,0 +1,4 @@
+{
+ "event_type": "not-osquery_query_row",
+ "query_name": "prefix-Keyboard_Event_Tap-suffix"
+}
diff --git a/detections/fixtures/negative/osquery-macos-keychain-dump.json b/detections/fixtures/negative/osquery-macos-keychain-dump.json
new file mode 100644
index 000000000..58bb4c33f
--- /dev/null
+++ b/detections/fixtures/negative/osquery-macos-keychain-dump.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "prefix-dump-keychain -d-suffix",
+ "event_type": "not-osquery_query_row"
+}
diff --git a/detections/fixtures/negative/osquery-macos-log-removal.json b/detections/fixtures/negative/osquery-macos-log-removal.json
new file mode 100644
index 000000000..468f72cfe
--- /dev/null
+++ b/detections/fixtures/negative/osquery-macos-log-removal.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "system.logrm ",
+ "event_type": "not-osquery_query_row"
+}
diff --git a/detections/fixtures/negative/osquery-macos-loginhook-persistence.json b/detections/fixtures/negative/osquery-macos-loginhook-persistence.json
new file mode 100644
index 000000000..c4f3f05f2
--- /dev/null
+++ b/detections/fixtures/negative/osquery-macos-loginhook-persistence.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "defaults write loginwindow LoginHook",
+ "event_type": "not-osquery_query_row"
+}
diff --git a/detections/fixtures/negative/osquery-macos-lolbin-execution.json b/detections/fixtures/negative/osquery-macos-lolbin-execution.json
new file mode 100644
index 000000000..ea7d645f7
--- /dev/null
+++ b/detections/fixtures/negative/osquery-macos-lolbin-execution.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "funzip -tail",
+ "event_type": "not-osquery_query_row"
+}
diff --git a/detections/fixtures/negative/osquery-macos-network-share-discovery.json b/detections/fixtures/negative/osquery-macos-network-share-discovery.json
new file mode 100644
index 000000000..2eb58419c
--- /dev/null
+++ b/detections/fixtures/negative/osquery-macos-network-share-discovery.json
@@ -0,0 +1,4 @@
+{
+ "event_type": "not-osquery_query_row",
+ "name": "showmount"
+}
diff --git a/detections/fixtures/negative/osquery-macos-plutil-plist-modification.json b/detections/fixtures/negative/osquery-macos-plutil-plist-modification.json
new file mode 100644
index 000000000..36df7153d
--- /dev/null
+++ b/detections/fixtures/negative/osquery-macos-plutil-plist-modification.json
@@ -0,0 +1,4 @@
+{
+ "event_type": "not-osquery_query_row",
+ "path": "/usr/bin/plutil"
+}
diff --git a/detections/fixtures/negative/osquery-macos-suspicious-plistbuddy.json b/detections/fixtures/negative/osquery-macos-suspicious-plistbuddy.json
new file mode 100644
index 000000000..63e0fa61f
--- /dev/null
+++ b/detections/fixtures/negative/osquery-macos-suspicious-plistbuddy.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "PlistBuddyLaunchAgents",
+ "event_type": "not-osquery_query_row"
+}
diff --git a/detections/fixtures/positive/osquery-linux-auditd-service-stop.json b/detections/fixtures/positive/osquery-linux-auditd-service-stop.json
new file mode 100644
index 000000000..c7b518899
--- /dev/null
+++ b/detections/fixtures/positive/osquery-linux-auditd-service-stop.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "prefix-service osqueryd stop-suffix",
+ "event_type": "osquery_query_row"
+}
diff --git a/detections/fixtures/positive/osquery-linux-baron-samedit-cve-2021-3156.json b/detections/fixtures/positive/osquery-linux-baron-samedit-cve-2021-3156.json
new file mode 100644
index 000000000..d140e702c
--- /dev/null
+++ b/detections/fixtures/positive/osquery-linux-baron-samedit-cve-2021-3156.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "sudoedit -s -tail",
+ "event_type": "osquery_query_row"
+}
diff --git a/detections/fixtures/positive/osquery-macos-account-created.json b/detections/fixtures/positive/osquery-macos-account-created.json
new file mode 100644
index 000000000..93d684e0f
--- /dev/null
+++ b/detections/fixtures/positive/osquery-macos-account-created.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "prefix-sysadminctl -addUser-suffix",
+ "event_type": "osquery_query_row"
+}
diff --git a/detections/fixtures/positive/osquery-macos-amos-stealer-vm-check.json b/detections/fixtures/positive/osquery-macos-amos-stealer-vm-check.json
new file mode 100644
index 000000000..f851499f7
--- /dev/null
+++ b/detections/fixtures/positive/osquery-macos-amos-stealer-vm-check.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "osascriptsystem_profilerVMware",
+ "event_type": "osquery_query_row"
+}
diff --git a/detections/fixtures/positive/osquery-macos-data-chunking.json b/detections/fixtures/positive/osquery-macos-data-chunking.json
new file mode 100644
index 000000000..f77d29309
--- /dev/null
+++ b/detections/fixtures/positive/osquery-macos-data-chunking.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "prefix-dd if=-suffix",
+ "event_type": "osquery_query_row"
+}
diff --git a/detections/fixtures/positive/osquery-macos-gatekeeper-bypass.json b/detections/fixtures/positive/osquery-macos-gatekeeper-bypass.json
new file mode 100644
index 000000000..773b15712
--- /dev/null
+++ b/detections/fixtures/positive/osquery-macos-gatekeeper-bypass.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "prefix-com.apple.quarantine-suffix",
+ "event_type": "osquery_query_row"
+}
diff --git a/detections/fixtures/positive/osquery-macos-hidden-file-directory.json b/detections/fixtures/positive/osquery-macos-hidden-file-directory.json
new file mode 100644
index 000000000..d29027859
--- /dev/null
+++ b/detections/fixtures/positive/osquery-macos-hidden-file-directory.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "prefix-chflags hidden-suffix",
+ "event_type": "osquery_query_row"
+}
diff --git a/detections/fixtures/positive/osquery-macos-kextload.json b/detections/fixtures/positive/osquery-macos-kextload.json
new file mode 100644
index 000000000..c689f19bc
--- /dev/null
+++ b/detections/fixtures/positive/osquery-macos-kextload.json
@@ -0,0 +1,4 @@
+{
+ "event_type": "osquery_query_row",
+ "name": "kextload"
+}
diff --git a/detections/fixtures/positive/osquery-macos-keyboard-event-tap.json b/detections/fixtures/positive/osquery-macos-keyboard-event-tap.json
new file mode 100644
index 000000000..0a48d4187
--- /dev/null
+++ b/detections/fixtures/positive/osquery-macos-keyboard-event-tap.json
@@ -0,0 +1,4 @@
+{
+ "event_type": "osquery_query_row",
+ "query_name": "prefix-Keyboard_Event_Tap-suffix"
+}
diff --git a/detections/fixtures/positive/osquery-macos-keychain-dump.json b/detections/fixtures/positive/osquery-macos-keychain-dump.json
new file mode 100644
index 000000000..3b30ea9f5
--- /dev/null
+++ b/detections/fixtures/positive/osquery-macos-keychain-dump.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "prefix-dump-keychain -d-suffix",
+ "event_type": "osquery_query_row"
+}
diff --git a/detections/fixtures/positive/osquery-macos-log-removal.json b/detections/fixtures/positive/osquery-macos-log-removal.json
new file mode 100644
index 000000000..b05e4959c
--- /dev/null
+++ b/detections/fixtures/positive/osquery-macos-log-removal.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "system.logrm ",
+ "event_type": "osquery_query_row"
+}
diff --git a/detections/fixtures/positive/osquery-macos-loginhook-persistence.json b/detections/fixtures/positive/osquery-macos-loginhook-persistence.json
new file mode 100644
index 000000000..c1b53c4ed
--- /dev/null
+++ b/detections/fixtures/positive/osquery-macos-loginhook-persistence.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "defaults write loginwindow LoginHook",
+ "event_type": "osquery_query_row"
+}
diff --git a/detections/fixtures/positive/osquery-macos-lolbin-execution.json b/detections/fixtures/positive/osquery-macos-lolbin-execution.json
new file mode 100644
index 000000000..a964c2e6e
--- /dev/null
+++ b/detections/fixtures/positive/osquery-macos-lolbin-execution.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "funzip -tail",
+ "event_type": "osquery_query_row"
+}
diff --git a/detections/fixtures/positive/osquery-macos-network-share-discovery.json b/detections/fixtures/positive/osquery-macos-network-share-discovery.json
new file mode 100644
index 000000000..d2f76ddcf
--- /dev/null
+++ b/detections/fixtures/positive/osquery-macos-network-share-discovery.json
@@ -0,0 +1,4 @@
+{
+ "event_type": "osquery_query_row",
+ "name": "showmount"
+}
diff --git a/detections/fixtures/positive/osquery-macos-plutil-plist-modification.json b/detections/fixtures/positive/osquery-macos-plutil-plist-modification.json
new file mode 100644
index 000000000..fd982cff1
--- /dev/null
+++ b/detections/fixtures/positive/osquery-macos-plutil-plist-modification.json
@@ -0,0 +1,4 @@
+{
+ "event_type": "osquery_query_row",
+ "path": "/usr/bin/plutil"
+}
diff --git a/detections/fixtures/positive/osquery-macos-suspicious-plistbuddy.json b/detections/fixtures/positive/osquery-macos-suspicious-plistbuddy.json
new file mode 100644
index 000000000..6d7882b5e
--- /dev/null
+++ b/detections/fixtures/positive/osquery-macos-suspicious-plistbuddy.json
@@ -0,0 +1,4 @@
+{
+ "cmdline": "PlistBuddyLaunchAgents",
+ "event_type": "osquery_query_row"
+}
diff --git a/detections/splunk-imports/_migrated/detect-baron-samedit-cve-2021-3156-via-osquery.yaml b/detections/splunk-imports/_migrated/detect-baron-samedit-cve-2021-3156-via-osquery.yaml
new file mode 100644
index 000000000..5f10910cd
--- /dev/null
+++ b/detections/splunk-imports/_migrated/detect-baron-samedit-cve-2021-3156-via-osquery.yaml
@@ -0,0 +1,35 @@
+id: splunk-security-content-1de31d5d-8fa6-4ee0-af89-17069134118a
+name: Detect Baron Samedit CVE-2021-3156 via OSQuery
+description: The following analytic detects the execution of the "sudoedit -s *" command,
+ which is associated with the Baron Samedit CVE-2021-3156 heap-based buffer overflow
+ vulnerability. This detection leverages the `osquery_process` data source to identify
+ instances where this specific command is run. This activity is significant because
+ it indicates an attempt to exploit a known vulnerability that allows privilege escalation.
+ If confirmed malicious, an attacker could gain full control of the system, execute
+ arbitrary code, or access sensitive data, leading to potential data breaches and
+ system disruptions.
+severity: medium
+enabled: false
+tags:
+ mitre:
+ - T1068
+ categories:
+ - endpoint
+references: []
+logsource:
+ product: splunk
+detection:
+ splunk_spl: '`osquery_process` | search "columns.cmdline"="sudoedit -s \\*" | `detect_baron_samedit_cve_2021_3156_via_osquery_filter`'
+provenance:
+ source: splunk/security_content
+ source_id: 1de31d5d-8fa6-4ee0-af89-17069134118a
+ 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/detect_baron_samedit_cve_2021_3156_via_osquery.yml
+notes:
+ splunk_status: experimental
+ splunk_data_source: []
+ quarantine_reason: 'upstream status: experimental'
diff --git a/detections/splunk-imports/_migrated/linux-auditd-osquery-service-stop.yaml b/detections/splunk-imports/_migrated/linux-auditd-osquery-service-stop.yaml
new file mode 100644
index 000000000..5e86918d9
--- /dev/null
+++ b/detections/splunk-imports/_migrated/linux-auditd-osquery-service-stop.yaml
@@ -0,0 +1,39 @@
+id: splunk-security-content-0c320fea-6e87-4b99-a884-74d09d4b655d
+name: Linux Auditd Osquery Service Stop
+description: The following analytic detects suspicious stopping of the `osquery` service,
+ which may indicate an attempt to disable monitoring and evade detection. `Osquery`
+ is a powerful tool used for querying system information and detecting anomalies,
+ and stopping its service can be a sign that an attacker is trying to disrupt security
+ monitoring or hide malicious activities. By monitoring for unusual or unauthorized
+ stops of the `osquery` service, this analytic helps identify potential efforts to
+ bypass security controls, enabling security teams to investigate and respond to
+ possible threats effectively.
+severity: medium
+enabled: false
+tags:
+ mitre:
+ - T1489
+ categories:
+ - endpoint
+references:
+- https://www.splunk.com/en_us/blog/security/deep-dive-on-persistence-privilege-escalation-technique-and-detection-in-linux-platform.html
+logsource:
+ product: splunk
+detection:
+ splunk_spl: "`linux_auditd` type=SERVICE_STOP unit IN (\"osqueryd\")\n | rename\
+ \ host as dest\n | stats count min(_time) as firstTime max(_time) as lastTime\n\
+ \ BY type pid comm\n exe unit dest\n | `security_content_ctime(firstTime)`\n\
+ \ | `security_content_ctime(lastTime)`\n | `linux_auditd_osquery_service_stop_filter`"
+provenance:
+ source: splunk/security_content
+ source_id: 0c320fea-6e87-4b99-a884-74d09d4b655d
+ 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/linux_auditd_osquery_service_stop.yml
+notes:
+ splunk_status: production
+ splunk_data_source: []
+ quarantine_reason: raw SPL — needs translation to AiSOC detection schema
diff --git a/detections/splunk-imports/_migrated/macos-account-created.yaml b/detections/splunk-imports/_migrated/macos-account-created.yaml
new file mode 100644
index 000000000..a4ee9051f
--- /dev/null
+++ b/detections/splunk-imports/_migrated/macos-account-created.yaml
@@ -0,0 +1,51 @@
+id: splunk-security-content-491004ae-694f-453e-b1e0-fc1e65daeea1
+name: MacOS Account Created
+description: 'The following analytic detects the creation of a new local user account
+ on a MacOS system. It leverages osquery logs to identify this activity.
+
+ Monitoring the creation of local accounts is crucial for a SOC as it can indicate
+ unauthorized access or lateral movement within the network.
+
+ If confirmed malicious, this activity could allow an attacker to establish persistence,
+ escalate privileges, or gain unauthorized access to sensitive systems and data.'
+severity: medium
+enabled: false
+tags:
+ mitre:
+ - T1136
+ categories:
+ - endpoint
+references:
+- https://osquery.readthedocs.io/en/stable/deployment/process-auditing/
+- https://ss64.com/mac/sysadminctl.html
+- https://ss64.com/mac/dseditgroup.html
+- https://ss64.com/mac/dscl.html
+logsource:
+ product: splunk
+detection:
+ splunk_spl: "| tstats `security_content_summariesonly`\n count min(_time) as firstTime\n\
+ \ max(_time) as lastTime\nfrom datamodel=Endpoint.Processes where\n\n(\n\
+ \ Processes.process = \"*sysadminctl\"\n Processes.process = \"*-addUser*\"\
+ \n)\nOR\n(\n Processes.process = \"*createhomedir*\"\n Processes.process\
+ \ = \"*-u*\"\n)\nOR\n(\n Processes.process = \"*dseditgroup*\"\n Processes.process\
+ \ IN (\n \"*edit*\",\n \"*-a*\"\n )\n)\nOR\n(\n Processes.process\
+ \ = \"*dscl*\"\n Processes.process = \"*-create*\"\n)\n\nby Processes.dest\
+ \ Processes.original_file_name Processes.parent_process_id\n Processes.process\
+ \ Processes.process_exec Processes.process_guid\n Processes.process_hash Processes.process_id\n\
+ \ Processes.process_current_directory Processes.process_name\n Processes.process_path\
+ \ Processes.user Processes.user_id\n Processes.vendor_product\n\n| `drop_dm_object_name(Processes)`\n\
+ | `security_content_ctime(firstTime)`\n| `security_content_ctime(lastTime)`\n\
+ | `macos_account_created_filter`"
+provenance:
+ source: splunk/security_content
+ source_id: 491004ae-694f-453e-b1e0-fc1e65daeea1
+ 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/macos_account_created.yml
+notes:
+ splunk_status: production
+ splunk_data_source: []
+ quarantine_reason: raw SPL — needs translation to AiSOC detection schema
diff --git a/detections/splunk-imports/_migrated/macos-amos-stealer-virtual-machine-check-activity.yaml b/detections/splunk-imports/_migrated/macos-amos-stealer-virtual-machine-check-activity.yaml
new file mode 100644
index 000000000..95b3f6d17
--- /dev/null
+++ b/detections/splunk-imports/_migrated/macos-amos-stealer-virtual-machine-check-activity.yaml
@@ -0,0 +1,48 @@
+id: splunk-security-content-4e41ad21-9761-426d-8aa1-083712ff9f30
+name: MacOS AMOS Stealer - Virtual Machine Check Activity
+description: 'The following analytic detects AMOS Stealer VM check activity on macOS.
+ It leverages osquery to monitor process events and identifies the execution of the
+ "osascript" command along with specific commandline strings.
+
+ This activity is significant as AMOS stealer was seen using this pattern in order
+ to check if the host is a Virtual Machine or not.
+
+ If confirmed malicious, this behavior indicate that the host is already infected
+ by the AMOS stealer, which could allow attackers to execute arbitrary code, escalate
+ privileges, steal information, or persist within the environment, posing a significant
+ security risk.'
+severity: medium
+enabled: false
+tags:
+ mitre:
+ - T1059.002
+ categories:
+ - endpoint
+references:
+- https://osquery.readthedocs.io/en/stable/deployment/process-auditing/
+- https://www.virustotal.com/gui/search/behaviour_processes%253A%2522osascript%2520-e%2520set%2522%2520AND%2520behaviour_processes%253A%2522system_profiler%2522%2520AND%2520(behaviour_processes%253A%2522VMware%2522%2520OR%2520behaviour_processes%253A%2522QEMU%2522)?type=files
+logsource:
+ product: splunk
+detection:
+ splunk_spl: "`osquery_macro`\nname=es_process_events\ncolumns.cmdline=\"*osascript*\"\
+ \ncolumns.cmdline=\"* -e *\"\ncolumns.cmdline=\"*set*\"\ncolumns.cmdline=\"*system_profiler*\"\
+ \ncolumns.cmdline IN (\"*VMware*\", \"*QEMU*\")\n\n| rename columns.* as *\n\n\
+ | stats min(_time) as firstTime max(_time) as lastTime\n values(cmdline) as\
+ \ cmdline,\n values(pid) as pid,\n values(parent) as parent,\n values(path)\
+ \ as path,\n values(signing_id) as signing_id,\n by username host\n\n| rename\n\
+ \ username as user,\n cmdline as process,\n parent as parent_process,\n path\
+ \ as process_path,\n host as dest\n\n| `security_content_ctime(firstTime)`\n\
+ | `security_content_ctime(lastTime)`\n| `macos_amos_stealer___virtual_machine_check_activity_filter`"
+provenance:
+ source: splunk/security_content
+ source_id: 4e41ad21-9761-426d-8aa1-083712ff9f30
+ 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/macos_amos_stealer___virtual_machine_check_activity.yml
+notes:
+ splunk_status: production
+ splunk_data_source: []
+ quarantine_reason: raw SPL — needs translation to AiSOC detection schema
diff --git a/detections/splunk-imports/_migrated/macos-data-chunking.yaml b/detections/splunk-imports/_migrated/macos-data-chunking.yaml
new file mode 100644
index 000000000..49a6347e7
--- /dev/null
+++ b/detections/splunk-imports/_migrated/macos-data-chunking.yaml
@@ -0,0 +1,49 @@
+id: splunk-security-content-7f1c8bed-9bd4-40b0-a1df-c262cbade0fc
+name: MacOS Data Chunking
+description: 'The following analytic detects suspicious data chunking activities that
+ involve the use of split or dd, potentially indicating an attempt to evade detection
+ by breaking large files into smaller parts.
+
+ Attackers may use this technique to bypass size-based security controls, facilitating
+ the covert exfiltration of sensitive data.
+
+ By monitoring for unusual or unauthorized use of these commands, this analytic helps
+ identify potential data exfiltration attempts, allowing security teams to intervene
+ and prevent the unauthorized transfer of critical information from the network.'
+severity: medium
+enabled: false
+tags:
+ mitre:
+ - T1030
+ categories:
+ - endpoint
+references:
+- https://osquery.readthedocs.io/en/stable/deployment/process-auditing/
+- https://ss64.com/mac/dd.html
+- https://ss64.com/mac/split.html
+logsource:
+ product: splunk
+detection:
+ splunk_spl: "| tstats `security_content_summariesonly`\n count min(_time) as firstTime\n\
+ \ max(_time) as lastTime\n\nfrom datamodel=Endpoint.Processes where\n\n\
+ (\n Processes.process = \"dd *\"\n Processes.process = \"* if=*\"\n)\n\
+ OR\n(\n Processes.process = \"*split *\"\n Processes.process=\"* -b *\"\n\
+ )\n\nby Processes.dest Processes.original_file_name Processes.parent_process_id\n\
+ \ Processes.process Processes.process_exec Processes.process_guid\n Processes.process_hash\
+ \ Processes.process_id\n Processes.process_current_directory Processes.process_name\n\
+ \ Processes.process_path Processes.user\n Processes.user_id Processes.vendor_product\n\
+ \n| `drop_dm_object_name(Processes)`\n| `security_content_ctime(firstTime)`\n\
+ | `security_content_ctime(lastTime)`\n| `macos_data_chunking_filter`"
+provenance:
+ source: splunk/security_content
+ source_id: 7f1c8bed-9bd4-40b0-a1df-c262cbade0fc
+ 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/macos_data_chunking.yml
+notes:
+ splunk_status: production
+ splunk_data_source: []
+ quarantine_reason: raw SPL — needs translation to AiSOC detection schema
diff --git a/detections/splunk-imports/_migrated/macos-gatekeeper-bypass.yaml b/detections/splunk-imports/_migrated/macos-gatekeeper-bypass.yaml
new file mode 100644
index 000000000..d3fbda808
--- /dev/null
+++ b/detections/splunk-imports/_migrated/macos-gatekeeper-bypass.yaml
@@ -0,0 +1,46 @@
+id: splunk-security-content-2c9346f3-bbeb-48ce-8411-fc13d09d83a5
+name: MacOS Gatekeeper Bypass
+description: 'Detects known MacOS security bypass techniques that may be used to enable
+ malicious code execution.
+
+ Specifically monitors for attempts to remove the com.apple.quarantine attribute
+ using xattr, or to disable Gatekeeper protections via spctl --master-disable, both
+ of which can allow untrusted or malicious applications to execute without standard
+ system safeguards.'
+severity: medium
+enabled: false
+tags:
+ mitre:
+ - T1553.001
+ categories:
+ - endpoint
+references:
+- https://osquery.readthedocs.io/en/stable/deployment/process-auditing/
+- https://ss64.com/mac/xattr.html
+- https://ss64.com/mac/spctl.html
+logsource:
+ product: splunk
+detection:
+ splunk_spl: "| tstats `security_content_summariesonly`\n count min(_time) as firstTime\n\
+ \ max(_time) as lastTime\n\nfrom datamodel=Endpoint.Processes where\n\n\
+ (\n Processes.process = \"*xattr*\"\n Processes.process = \"*com.apple.quarantine*\"\
+ \n)\nOR\n(\n Processes.process = \"*spctl*\"\n Processes.process = \"*master-disable*\"\
+ \n)\n\nby Processes.dest Processes.original_file_name Processes.parent_process_id\n\
+ \ Processes.process Processes.process_exec Processes.process_guid\n Processes.process_hash\
+ \ Processes.process_id\n Processes.process_current_directory Processes.process_name\n\
+ \ Processes.process_path Processes.user\n Processes.user_id Processes.vendor_product\n\
+ \n| `drop_dm_object_name(Processes)`\n| `security_content_ctime(firstTime)`\n\
+ | `security_content_ctime(lastTime)`\n| `macos_gatekeeper_bypass_filter`"
+provenance:
+ source: splunk/security_content
+ source_id: 2c9346f3-bbeb-48ce-8411-fc13d09d83a5
+ 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/macos_gatekeeper_bypass.yml
+notes:
+ splunk_status: production
+ splunk_data_source: []
+ quarantine_reason: raw SPL — needs translation to AiSOC detection schema
diff --git a/detections/splunk-imports/_migrated/macos-hidden-files-and-directories.yaml b/detections/splunk-imports/_migrated/macos-hidden-files-and-directories.yaml
new file mode 100644
index 000000000..efdb3e637
--- /dev/null
+++ b/detections/splunk-imports/_migrated/macos-hidden-files-and-directories.yaml
@@ -0,0 +1,51 @@
+id: splunk-security-content-51c43b7b-e406-45d2-9bad-5c67f07e6528
+name: MacOS Hidden Files and Directories
+description: 'The following analytic detects suspicious creation of hidden files and
+ directories, which may indicate an attacker''s attempt to conceal malicious activities
+ or unauthorized data.
+
+ Hidden files and directories are often used to evade detection by security tools
+ and administrators, providing a stealthy means for storing malware, logs, or sensitive
+ information.
+
+ By monitoring for unusual or unauthorized creation of hidden files and directories,
+ this analytic helps identify potential attempts to hide or unauthorized creation
+ of hidden files and directories, and helps identify potential attempts to hide malicious
+ operations, enabling security teams to uncover and address hidden threats effectively.'
+severity: medium
+enabled: false
+tags:
+ mitre:
+ - T1564.001
+ categories:
+ - endpoint
+references:
+- https://osquery.readthedocs.io/en/stable/deployment/process-auditing/
+- https://ss64.com/mac/chflags.html
+- https://ss64.com/mac/xattr.html
+logsource:
+ product: splunk
+detection:
+ splunk_spl: "| tstats `security_content_summariesonly` count min(_time) as firstTime\
+ \ max(_time) as lastTime from datamodel=Endpoint.Processes where\n\n(\n Processes.process=\"\
+ *chflags *\"\n Processes.process=\"* hidden*\"\n)\nOR\n(\n Processes.process=\"\
+ *xattr *\"\n Processes.process=\"* -wx *\"\n Processes.process=\"*com.apple.FinderInfo*\"\
+ \n)\n\nby Processes.dest Processes.original_file_name Processes.parent_process_id\n\
+ \ Processes.process Processes.process_exec Processes.process_guid\n Processes.process_hash\
+ \ Processes.process_id\n Processes.process_current_directory Processes.process_name\n\
+ \ Processes.process_path Processes.user\n Processes.user_id Processes.vendor_product\n\
+ \n| `drop_dm_object_name(Processes)`\n| `security_content_ctime(firstTime)`\n\
+ | `security_content_ctime(lastTime)`\n| `macos_hidden_files_and_directories_filter`"
+provenance:
+ source: splunk/security_content
+ source_id: 51c43b7b-e406-45d2-9bad-5c67f07e6528
+ 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/macos_hidden_files_and_directories.yml
+notes:
+ splunk_status: production
+ splunk_data_source: []
+ quarantine_reason: raw SPL — needs translation to AiSOC detection schema
diff --git a/detections/splunk-imports/_migrated/macos-kextload-usage.yaml b/detections/splunk-imports/_migrated/macos-kextload-usage.yaml
new file mode 100644
index 000000000..134fa9780
--- /dev/null
+++ b/detections/splunk-imports/_migrated/macos-kextload-usage.yaml
@@ -0,0 +1,43 @@
+id: splunk-security-content-9d680775-84a6-4625-a8ea-8182b9427ce4
+name: MacOS Kextload Usage
+description: 'Detects execution of the kextload command on macOS systems. The kextload
+ utility is used to manually load kernel extensions (KEXTs) into the macOS kernel,
+ which can introduce privileged code at the kernel level.
+
+ While legitimate for driver installation and system administration, misuse may indicate
+ attempts to install unauthorized, malicious, or persistence-enabling kernel extensions.'
+severity: medium
+enabled: false
+tags:
+ mitre:
+ - T1543
+ categories:
+ - endpoint
+references:
+- https://osquery.readthedocs.io/en/stable/deployment/process-auditing/
+- https://www.unix.com/man_page/osx/8/kextload/
+logsource:
+ product: splunk
+detection:
+ splunk_spl: "| tstats `security_content_summariesonly`\n count min(_time) as firstTime\n\
+ \ max(_time) as lastTime\n\nfrom datamodel=Endpoint.Processes where\n\n\
+ Processes.process_name = \"kextload\"\n\nAND NOT\n\nProcesses.process IN (\n \
+ \ \"*-help*\",\n \"* -h *\"\n)\n\nby Processes.dest Processes.original_file_name\
+ \ Processes.parent_process_id\n Processes.process Processes.process_exec Processes.process_guid\n\
+ \ Processes.process_hash Processes.process_id\n Processes.process_current_directory\
+ \ Processes.process_name\n Processes.process_path Processes.user\n Processes.user_id\
+ \ Processes.vendor_product\n\n| `drop_dm_object_name(Processes)`\n| `security_content_ctime(firstTime)`\n\
+ | `security_content_ctime(lastTime)`\n| `macos_kextload_usage_filter`"
+provenance:
+ source: splunk/security_content
+ source_id: 9d680775-84a6-4625-a8ea-8182b9427ce4
+ 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/macos_kextload_usage.yml
+notes:
+ splunk_status: production
+ splunk_data_source: []
+ quarantine_reason: raw SPL — needs translation to AiSOC detection schema
diff --git a/detections/splunk-imports/_migrated/macos-keychains-dumped.yaml b/detections/splunk-imports/_migrated/macos-keychains-dumped.yaml
new file mode 100644
index 000000000..5a8eed69a
--- /dev/null
+++ b/detections/splunk-imports/_migrated/macos-keychains-dumped.yaml
@@ -0,0 +1,61 @@
+id: splunk-security-content-dcb45a09-5e6f-441e-b2f8-cbbf923e36d9
+name: MacOS Keychains Dumped
+description: 'Detects command-line attempts to access or dump macOS Keychain data
+ using native utilities or direct file access.
+
+ This includes credential dumping via the `security` utility (e.g. `dump-keychain
+ -d`), bulk certificate export using `security find-certificate`, and direct file
+ copying of Keychain database files using utilities such as `cat`.
+
+ Keychain files are located in `~/Library/Keychains/`, `/Library/Keychains/`, and
+ `/Network/Library/Keychains/`.
+
+ This technique is commonly associated with post-exploitation credential harvesting,
+ where an attacker with local access seeks to escalate privileges or move laterally
+ by obtaining stored credentials for applications, Wi-Fi networks, system services,
+ and certificates.'
+severity: medium
+enabled: false
+tags:
+ mitre:
+ - T1555.001
+ categories:
+ - endpoint
+references:
+- https://osquery.readthedocs.io/en/stable/deployment/process-auditing/
+- https://gist.github.com/hfeeki/88c12f01d00534e09a84
+- https://ss64.com/mac/security-keychain-settings.html
+- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1555.001/T1555.001.md
+logsource:
+ product: splunk
+detection:
+ splunk_spl: "| tstats `security_content_summariesonly`\n count min(_time) as firstTime\n\
+ \ max(_time) as lastTime\n values(Processes.parent_process) AS parent_process\n\
+ \ values(Processes.parent_process_exec) AS parent_process_exec\n \
+ \ values(Processes.parent_process_id) AS parent_process_id\n values(Processes.parent_process_name)\
+ \ AS parent_process_name\n values(Processes.parent_process_path) AS parent_process_path\n\
+ \nFROM datamodel=Endpoint.Processes WHERE\n(\n Processes.process_path=\"/usr/bin/security\"\
+ \n AND\n (\n (\n Processes.process=\"*dump-keychain*\"\
+ \n Processes.process=\"*-d*\"\n )\n OR\n (\n \
+ \ Processes.process=\"*find-certificate*\"\n Processes.process=\"\
+ *-p*\"\n )\n )\n)\nOR\nProcesses.process=\"*keychaindump*\"\nOR\n(\n\
+ \ Processes.process_name IN (\n \"cat\",\n \"cp\",\n \"\
+ dd\",\n \"mv\"\n )\n Processes.process=\"*Library/Keychains/*\"\n\
+ \ Processes.process=\"*.keychain*\"\n)\nby Processes.action Processes.dest\
+ \ Processes.process Processes.process_hash\nProcesses.process_id Processes.process_name\
+ \ Processes.process_path\nProcesses.user Processes.vendor_product\n\n| `drop_dm_object_name(Processes)`\n\
+ | `security_content_ctime(firstTime)`\n| `security_content_ctime(lastTime)`\n\
+ | `macos_keychains_dumped_filter`"
+provenance:
+ source: splunk/security_content
+ source_id: dcb45a09-5e6f-441e-b2f8-cbbf923e36d9
+ 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/macos_keychains_dumped.yml
+notes:
+ splunk_status: production
+ splunk_data_source: []
+ quarantine_reason: raw SPL — needs translation to AiSOC detection schema
diff --git a/detections/splunk-imports/_migrated/macos-log-removal.yaml b/detections/splunk-imports/_migrated/macos-log-removal.yaml
new file mode 100644
index 000000000..489927978
--- /dev/null
+++ b/detections/splunk-imports/_migrated/macos-log-removal.yaml
@@ -0,0 +1,43 @@
+id: splunk-security-content-a7f2e891-3c4d-4a1b-9e6f-2b8d0c5a1f3e
+name: MacOS Log Removal
+description: 'Detects the deletion or modification of logs on MacOS systems by identifying
+ execution of the rm command with command-line arguments referencing system.log or
+ audit-related paths.
+
+ Adversaries may remove or alter log files to cover their tracks and hinder detection
+ and forensic analysis. This behavior commonly occurs during post-exploitation cleanup.'
+severity: medium
+enabled: false
+tags:
+ mitre:
+ - T1070
+ categories:
+ - endpoint
+references:
+- https://osquery.readthedocs.io/en/stable/deployment/process-auditing/
+logsource:
+ product: splunk
+detection:
+ splunk_spl: "| tstats `security_content_summariesonly`\n count min(_time) as firstTime\n\
+ \ max(_time) as lastTime\n\nfrom datamodel=Endpoint.Processes where\n\n\
+ Processes.process = \"*system.log*\"\nAND\n(\n (Processes.process = \"*rm *\"\
+ )\n OR\n (\n Processes.process = \"*audit*\"\n Processes.process\
+ \ = \"* -s *\"\n )\n)\n\nby Processes.dest Processes.original_file_name Processes.parent_process_id\n\
+ \ Processes.process Processes.process_exec Processes.process_guid\n Processes.process_hash\
+ \ Processes.process_id\n Processes.process_current_directory Processes.process_name\n\
+ \ Processes.process_path Processes.user\n Processes.user_id Processes.vendor_product\n\
+ \n| `drop_dm_object_name(Processes)`\n| `security_content_ctime(firstTime)`\n\
+ | `security_content_ctime(lastTime)`\n| `macos_log_removal_filter`"
+provenance:
+ source: splunk/security_content
+ source_id: a7f2e891-3c4d-4a1b-9e6f-2b8d0c5a1f3e
+ 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/macos_log_removal.yml
+notes:
+ splunk_status: production
+ splunk_data_source: []
+ quarantine_reason: raw SPL — needs translation to AiSOC detection schema
diff --git a/detections/splunk-imports/_migrated/macos-loginhook-persistence.yaml b/detections/splunk-imports/_migrated/macos-loginhook-persistence.yaml
new file mode 100644
index 000000000..60707939d
--- /dev/null
+++ b/detections/splunk-imports/_migrated/macos-loginhook-persistence.yaml
@@ -0,0 +1,44 @@
+id: splunk-security-content-a04832e7-9d1d-49b1-a684-e31bcd775c77
+name: MacOS LoginHook Persistence
+description: 'Identifies attempts to configure a macOS LoginHook via the defaults
+ utility. LoginHooks enable automatic execution of a script or program upon user
+ login and have historically been abused for persistence.
+
+ Creation or modification of this setting may indicate an attempt to establish startup
+ execution outside standard LaunchAgent mechanisms.'
+severity: medium
+enabled: false
+tags:
+ mitre:
+ - T1037.002
+ categories:
+ - endpoint
+references:
+- https://osquery.readthedocs.io/en/stable/deployment/process-auditing/
+- https://www.loobins.io/binaries/defaults/
+logsource:
+ product: splunk
+detection:
+ splunk_spl: "| tstats `security_content_summariesonly`\n count min(_time) as firstTime\n\
+ \ max(_time) as lastTime\n\nfrom datamodel=Endpoint.Processes where\n\n\
+ Processes.process = \"*defaults *\"\nProcesses.process = \"*write*\"\nProcesses.process\
+ \ = \"*loginwindow*\"\nProcesses.process = \"*loginhook*\"\n\nby Processes.dest\
+ \ Processes.original_file_name Processes.parent_process_id\n Processes.process\
+ \ Processes.process_exec Processes.process_guid\n Processes.process_hash Processes.process_id\n\
+ \ Processes.process_current_directory Processes.process_name\n Processes.process_path\
+ \ Processes.user\n Processes.user_id Processes.vendor_product\n\n| `drop_dm_object_name(Processes)`\n\
+ | `security_content_ctime(firstTime)`\n| `security_content_ctime(lastTime)`\n\
+ | `macos_loginhook_persistence_filter`"
+provenance:
+ source: splunk/security_content
+ source_id: a04832e7-9d1d-49b1-a684-e31bcd775c77
+ 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/macos_loginhook_persistence.yml
+notes:
+ splunk_status: production
+ splunk_data_source: []
+ quarantine_reason: raw SPL — needs translation to AiSOC detection schema
diff --git a/detections/splunk-imports/_migrated/macos-lolbin.yaml b/detections/splunk-imports/_migrated/macos-lolbin.yaml
new file mode 100644
index 000000000..0f9db5a4a
--- /dev/null
+++ b/detections/splunk-imports/_migrated/macos-lolbin.yaml
@@ -0,0 +1,49 @@
+id: splunk-security-content-58d270fb-5b39-418e-a855-4b8ac046805e
+name: MacOS LOLbin
+description: 'The following analytic detects multiple executions of Living off the
+ Land (LOLbin) binaries on macOS within a short period.
+
+ It leverages osquery to monitor process events and identifies commands such as "find",
+ "crontab", "screencapture", "openssl", "curl", "wget", "killall", and "funzip".
+ This activity is significant as LOLbins are often used by attackers to perform malicious
+ actions while evading detection.
+
+ If confirmed malicious, this behavior could allow attackers to execute arbitrary
+ code, escalate privileges, or persist within the environment, posing a significant
+ security risk.'
+severity: medium
+enabled: false
+tags:
+ mitre:
+ - T1059.004
+ categories:
+ - endpoint
+references:
+- https://osquery.readthedocs.io/en/stable/deployment/process-auditing/
+logsource:
+ product: splunk
+detection:
+ splunk_spl: "`osquery_macro`\nname=es_process_events\ncolumns.cmdline IN (\n \
+ \ \"chmod*\",\n \"crontab*\",\n \"curl*\",\n \"find*\",\n \"funzip*\"\
+ ,\n \"killall*\",\n \"openssl*\",\n \"screencapture*\",\n \"wget*\"\
+ ,\n)\n| rename columns.* as *\n| stats count min(_time) as firstTime\n \
+ \ max(_time) as lastTime\n values(cmdline) as cmdline\n \
+ \ values(pid) as pid\n values(parent) as parent\n \
+ \ values(path) as path\n values(signing_id) as signing_id\n\
+ \ dc(path) as dc_path\n BY username host\n\n| rename username\
+ \ as user\n cmdline as process\n path as process_path\n host\
+ \ as dest\n\n| where dc_path > 3\n| `security_content_ctime(firstTime)`\n| `security_content_ctime(lastTime)`\n\
+ | `macos_lolbin_filter`"
+provenance:
+ source: splunk/security_content
+ source_id: 58d270fb-5b39-418e-a855-4b8ac046805e
+ 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/macos_lolbin.yml
+notes:
+ splunk_status: production
+ splunk_data_source: []
+ quarantine_reason: raw SPL — needs translation to AiSOC detection schema
diff --git a/detections/splunk-imports/_migrated/macos-network-share-discovery.yaml b/detections/splunk-imports/_migrated/macos-network-share-discovery.yaml
new file mode 100644
index 000000000..7fc81b78c
--- /dev/null
+++ b/detections/splunk-imports/_migrated/macos-network-share-discovery.yaml
@@ -0,0 +1,40 @@
+id: splunk-security-content-a5f5fe52-8e50-4fb0-ad1b-780be6c0d857
+name: MacOS Network Share Discovery
+description: Identifies execution of network share enumeration commands (smbutil,
+ showmount) that can be leveraged by adversaries to discover accessible SMB and NFS
+ resources, supporting internal reconnaissance and potential lateral movement.
+severity: medium
+enabled: false
+tags:
+ mitre:
+ - T1135
+ categories:
+ - endpoint
+references:
+- https://osquery.readthedocs.io/en/stable/deployment/process-auditing/
+- https://leopard-adc.pepas.com/documentation/Darwin/Reference/ManPages/man8/showmount.8.html
+- https://www.unix.com/man_page/osx/1/smbutil/
+logsource:
+ product: splunk
+detection:
+ splunk_spl: "| tstats `security_content_summariesonly`\n count min(_time) as firstTime\n\
+ \ max(_time) as lastTime\n\nfrom datamodel=Endpoint.Processes where\n\n\
+ Processes.process IN (\"*showmount *\", \"*smbutil *\")\n\nby Processes.dest Processes.original_file_name\
+ \ Processes.parent_process_id\n Processes.process Processes.process_exec Processes.process_guid\n\
+ \ Processes.process_hash Processes.process_id\n Processes.process_current_directory\
+ \ Processes.process_name\n Processes.process_path Processes.user\n Processes.user_id\
+ \ Processes.vendor_product\n\n| `drop_dm_object_name(Processes)`\n| `security_content_ctime(firstTime)`\n\
+ | `security_content_ctime(lastTime)`\n| `macos_network_share_discovery_filter`"
+provenance:
+ source: splunk/security_content
+ source_id: a5f5fe52-8e50-4fb0-ad1b-780be6c0d857
+ 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/macos_network_share_discovery.yml
+notes:
+ splunk_status: production
+ splunk_data_source: []
+ quarantine_reason: raw SPL — needs translation to AiSOC detection schema
diff --git a/detections/splunk-imports/_migrated/macos-plutil.yaml b/detections/splunk-imports/_migrated/macos-plutil.yaml
new file mode 100644
index 000000000..8241ad0df
--- /dev/null
+++ b/detections/splunk-imports/_migrated/macos-plutil.yaml
@@ -0,0 +1,41 @@
+id: splunk-security-content-c11f2b57-92c1-4cd2-b46c-064eafb833ac
+name: MacOS plutil
+description: The following analytic detects the usage of the `plutil` command to modify
+ plist files on macOS systems. It leverages osquery to monitor process events, specifically
+ looking for executions of `/usr/bin/plutil`. This activity is significant because
+ adversaries can use `plutil` to alter plist files, potentially adding malicious
+ binaries or command-line arguments that execute upon user logon or system startup.
+ If confirmed malicious, this could allow attackers to achieve persistence, execute
+ arbitrary code, or escalate privileges, posing a significant threat to the system's
+ security.
+severity: medium
+enabled: false
+tags:
+ mitre:
+ - T1647
+ categories:
+ - endpoint
+references:
+- https://osquery.readthedocs.io/en/stable/deployment/process-auditing/
+logsource:
+ product: splunk
+detection:
+ splunk_spl: "`osquery_macro` name=es_process_events columns.path=/usr/bin/plutil\n\
+ \ | rename columns.* as *\n | stats count min(_time) as firstTime max(_time)\
+ \ as lastTime\n BY username host cmdline\n pid path parent\n signing_id\n\
+ \ | rename username as user, cmdline as process, path as process_path, host as\
+ \ dest\n | `security_content_ctime(firstTime)`\n | `security_content_ctime(lastTime)`\n\
+ \ | `macos_plutil_filter`"
+provenance:
+ source: splunk/security_content
+ source_id: c11f2b57-92c1-4cd2-b46c-064eafb833ac
+ 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/macos_plutil.yml
+notes:
+ splunk_status: production
+ splunk_data_source: []
+ quarantine_reason: raw SPL — needs translation to AiSOC detection schema
diff --git a/detections/splunk-imports/_migrated/processes-tapping-keyboard-events.yaml b/detections/splunk-imports/_migrated/processes-tapping-keyboard-events.yaml
new file mode 100644
index 000000000..2843d9d5b
--- /dev/null
+++ b/detections/splunk-imports/_migrated/processes-tapping-keyboard-events.yaml
@@ -0,0 +1,45 @@
+id: splunk-security-content-2a371608-331d-4034-ae2c-21dda8f1d0ec
+name: Processes Tapping Keyboard Events
+description: The following analytic detects processes on macOS systems that are tapping
+ keyboard events, potentially monitoring all keystrokes made by a user. It leverages
+ data from osquery results within the Alerts data model, focusing on specific process
+ names and command lines. This activity is significant as it is a common technique
+ used by Remote Access Trojans (RATs) to log keystrokes, posing a serious security
+ risk. If confirmed malicious, this could lead to unauthorized access to sensitive
+ information, including passwords and personal data, compromising the integrity and
+ confidentiality of the system.
+severity: medium
+enabled: false
+tags:
+ mitre: []
+ categories:
+ - endpoint
+references: []
+logsource:
+ product: splunk
+detection:
+ splunk_spl: '| from datamodel Alerts.Alerts
+
+ | search app=osquery:results name=pack_osx-attacks_Keyboard_Event_Taps
+
+ | rename columns.cmdline as cmd, columns.name as process_name, columns.pid as
+ process_id
+
+ | dedup host,process_name
+
+ | table host,process_name, cmd, process_id
+
+ | `processes_tapping_keyboard_events_filter`'
+provenance:
+ source: splunk/security_content
+ source_id: 2a371608-331d-4034-ae2c-21dda8f1d0ec
+ 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/processes_tapping_keyboard_events.yml
+notes:
+ splunk_status: experimental
+ splunk_data_source: []
+ quarantine_reason: 'upstream status: experimental'
diff --git a/detections/splunk-imports/_migrated/suspicious-plistbuddy-usage-via-osquery.yaml b/detections/splunk-imports/_migrated/suspicious-plistbuddy-usage-via-osquery.yaml
new file mode 100644
index 000000000..457bf9358
--- /dev/null
+++ b/detections/splunk-imports/_migrated/suspicious-plistbuddy-usage-via-osquery.yaml
@@ -0,0 +1,37 @@
+id: splunk-security-content-20ba6c32-c733-4a32-b64e-2688cf231399
+name: Suspicious PlistBuddy Usage via OSquery
+description: The following analytic detects the use of the PlistBuddy utility on macOS
+ to create or modify property list (.plist) files. It leverages OSQuery to monitor
+ process events, specifically looking for commands that interact with LaunchAgents
+ and set properties like RunAtLoad. This activity is significant because PlistBuddy
+ can be used to establish persistence mechanisms, as seen in malware like Silver
+ Sparrow. If confirmed malicious, this could allow an attacker to maintain persistence,
+ execute arbitrary commands, and potentially escalate privileges on the compromised
+ system.
+severity: medium
+enabled: false
+tags:
+ mitre:
+ - T1543.001
+ categories:
+ - endpoint
+references:
+- https://www.marcosantadev.com/manage-plist-files-plistbuddy/
+logsource:
+ product: splunk
+detection:
+ splunk_spl: "`osquery_process` \"columns.cmdline\"=\"*LaunchAgents*\" OR \"columns.cmdline\"\
+ =\"*RunAtLoad*\" OR \"columns.cmdline\"=\"*true*\"\n | `suspicious_plistbuddy_usage_via_osquery_filter`"
+provenance:
+ source: splunk/security_content
+ source_id: 20ba6c32-c733-4a32-b64e-2688cf231399
+ 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/suspicious_plistbuddy_usage_via_osquery.yml
+notes:
+ splunk_status: experimental
+ splunk_data_source: []
+ quarantine_reason: 'upstream status: experimental'
diff --git a/scripts/detection_specs_part3_endpoint.py b/scripts/detection_specs_part3_endpoint.py
index 89d7f257b..3082204bb 100644
--- a/scripts/detection_specs_part3_endpoint.py
+++ b/scripts/detection_specs_part3_endpoint.py
@@ -1058,6 +1058,280 @@ HOST_NETWORK_RULES: list[dict] = [
]
+# ---------------------------------------------------------------------------
+# osquery-native detections (migrated from splunk-imports/_quarantine/)
+# IDs: det-endpoint-281 … det-endpoint-296
+# ---------------------------------------------------------------------------
+OSQUERY_RULES: list[dict] = [
+ # 281 ── AMoS Stealer VM Check
+ S(
+ slug="osquery-macos-amos-stealer-vm-check",
+ name="AMoS Stealer Virtual Machine Detection via osquery",
+ severity="high",
+ mitre=["t1059.002"],
+ product="osquery",
+ service="processes",
+ when={
+ "event_type": "osquery_query_row",
+ "cmdline_contains_all": ["osascript", "system_profiler"],
+ "cmdline_contains_any": ["VMware", "QEMU", "VirtualBox"],
+ },
+ fp=["Admin/developer running virtual machine checks (allow-listed)"],
+ playbook="tpl-malware-execution",
+ ),
+ # 282 ── macOS Data Chunking
+ S(
+ slug="osquery-macos-data-chunking",
+ name="macOS Data Chunking via dd or split",
+ severity="high",
+ mitre=["t1030"],
+ product="osquery",
+ service="processes",
+ when={
+ "event_type": "osquery_query_row",
+ "cmdline_contains_any": ["dd if=", "split -b"],
+ },
+ fp=["Legitimate backup or data-processing script (allow-listed)"],
+ playbook="tpl-data-exfil",
+ ),
+ # 283 ── macOS Gatekeeper Bypass
+ S(
+ slug="osquery-macos-gatekeeper-bypass",
+ name="macOS Gatekeeper Bypass Attempt",
+ severity="high",
+ mitre=["t1553.001"],
+ product="osquery",
+ service="processes",
+ when={
+ "event_type": "osquery_query_row",
+ "cmdline_contains_any": [
+ "com.apple.quarantine",
+ "spctl --master-disable",
+ ],
+ },
+ fp=["Developer removing quarantine attr for internal build (allow-listed)"],
+ playbook="tpl-defense-evasion",
+ ),
+ # 284 ── Suspicious PlistBuddy LaunchAgent
+ S(
+ slug="osquery-macos-suspicious-plistbuddy",
+ name="Suspicious PlistBuddy LaunchAgent Modification",
+ severity="high",
+ mitre=["t1543.001"],
+ product="osquery",
+ service="processes",
+ when={
+ "event_type": "osquery_query_row",
+ "cmdline_contains_all": ["PlistBuddy"],
+ "cmdline_contains_any": ["LaunchAgents", "RunAtLoad"],
+ },
+ fp=["Legitimate plist management by administrator (allow-listed)"],
+ playbook="tpl-persistence",
+ ),
+ # 285 ── Baron Samedit CVE-2021-3156
+ S(
+ slug="osquery-linux-baron-samedit-cve-2021-3156",
+ name="Baron Samedit CVE-2021-3156 Exploit Attempt",
+ severity="medium",
+ mitre=["t1068"],
+ product="osquery",
+ service="processes",
+ when={
+ "event_type": "osquery_query_row",
+ "cmdline_startswith": "sudoedit -s ",
+ },
+ fp=["Security testing in authorised environment"],
+ playbook="tpl-privilege-escalation",
+ ),
+ # 286 ── Linux osqueryd Service Stop (auditd)
+ S(
+ slug="osquery-linux-auditd-service-stop",
+ name="Linux osqueryd Service Stop Detected via auditd",
+ severity="high",
+ mitre=["t1489"],
+ product="linux",
+ service="auditd",
+ when={
+ "event_type": "osquery_query_row",
+ "cmdline_contains_any": [
+ "service osqueryd stop",
+ "systemctl stop osqueryd",
+ ],
+ },
+ fp=["Admin stopping osqueryd for maintenance (allow-listed)"],
+ playbook="tpl-defense-evasion",
+ ),
+ # 287 ── macOS Account Created
+ S(
+ slug="osquery-macos-account-created",
+ name="macOS Local User Account Created",
+ severity="medium",
+ mitre=["t1136.001"],
+ product="osquery",
+ service="processes",
+ when={
+ "event_type": "osquery_query_row",
+ "cmdline_contains_any": [
+ "sysadminctl -addUser",
+ "dscl . -create /Users/",
+ "createhomedir -u ",
+ ],
+ },
+ fp=["IT administrator provisioning new user"],
+ playbook="tpl-account-anomaly",
+ ),
+ # 288 ── macOS Hidden File or Directory
+ S(
+ slug="osquery-macos-hidden-file-directory",
+ name="macOS Hidden File or Directory Created",
+ severity="medium",
+ mitre=["t1564.001"],
+ product="osquery",
+ service="processes",
+ when={
+ "event_type": "osquery_query_row",
+ "cmdline_contains_any": [
+ "chflags hidden",
+ "xattr -wx com.apple",
+ ],
+ },
+ fp=["Developer setting extended attributes for application bundle"],
+ playbook="tpl-defense-evasion",
+ ),
+ # 289 ── macOS kextload
+ S(
+ slug="osquery-macos-kextload",
+ name="macOS Kernel Extension Loaded via kextload",
+ severity="high",
+ mitre=["t1543"],
+ product="osquery",
+ service="processes",
+ when={
+ "event_type": "osquery_query_row",
+ "name": "kextload",
+ },
+ fp=["Authorised kernel extension for security or virtualisation tool"],
+ playbook="tpl-persistence",
+ ),
+ # 290 ── macOS Keychain Dump
+ S(
+ slug="osquery-macos-keychain-dump",
+ name="macOS Keychain Dumping Attempt",
+ severity="high",
+ mitre=["t1555.001"],
+ product="osquery",
+ service="processes",
+ when={
+ "event_type": "osquery_query_row",
+ "cmdline_contains_any": [
+ "dump-keychain -d",
+ "find-certificate -p",
+ "keychaindump",
+ "Library/Keychains/",
+ ],
+ },
+ fp=["Authorised credential management or backup script"],
+ playbook="tpl-credential-theft",
+ ),
+ # 291 ── macOS System Log Removal
+ S(
+ slug="osquery-macos-log-removal",
+ name="macOS System Log Removed or Manually Rotated",
+ severity="medium",
+ mitre=["t1070"],
+ product="osquery",
+ service="processes",
+ when={
+ "event_type": "osquery_query_row",
+ "cmdline_contains_all": ["system.log"],
+ "cmdline_contains_any": ["rm ", "truncate", "audit -n"],
+ },
+ fp=["Scheduled log rotation via cron or launchd"],
+ playbook="tpl-defense-evasion",
+ ),
+ # 292 ── macOS LoginHook Persistence
+ S(
+ slug="osquery-macos-loginhook-persistence",
+ name="macOS LoginHook Persistence via defaults write",
+ severity="high",
+ mitre=["t1037.002"],
+ product="osquery",
+ service="processes",
+ when={
+ "event_type": "osquery_query_row",
+ "cmdline_contains_all": ["defaults", "write", "loginwindow", "LoginHook"],
+ },
+ fp=["Authorised enterprise login script (allow-listed)"],
+ playbook="tpl-persistence",
+ ),
+ # 293 ── macOS LOLBin Execution
+ S(
+ slug="osquery-macos-lolbin-execution",
+ name="macOS Suspicious Living-Off-The-Land Binary Execution",
+ severity="low",
+ mitre=["t1059.004"],
+ product="osquery",
+ service="processes",
+ when={
+ "event_type": "osquery_query_row",
+ "cmdline_startswith_any": [
+ "funzip ",
+ "openssl s_client",
+ "openssl base64",
+ "python -c import",
+ ],
+ },
+ fp=["Developer using openssl for TLS testing (allow-listed)"],
+ playbook="tpl-execution",
+ ),
+ # 294 ── macOS Network Share Discovery
+ S(
+ slug="osquery-macos-network-share-discovery",
+ name="macOS Network Share Discovery via showmount or smbutil",
+ severity="low",
+ mitre=["t1135"],
+ product="osquery",
+ service="processes",
+ when={
+ "event_type": "osquery_query_row",
+ "name_in": ["showmount", "smbutil"],
+ },
+ fp=["Admin auditing network shares"],
+ playbook="tpl-discovery",
+ ),
+ # 295 ── macOS plutil Plist Modification
+ S(
+ slug="osquery-macos-plutil-plist-modification",
+ name="macOS Plist Modification via plutil",
+ severity="medium",
+ mitre=["t1647"],
+ product="osquery",
+ service="processes",
+ when={
+ "event_type": "osquery_query_row",
+ "path": "/usr/bin/plutil",
+ },
+ fp=["Admin or developer editing plist files"],
+ playbook="tpl-persistence",
+ ),
+ # 296 ── macOS Keyboard Event Tap
+ S(
+ slug="osquery-macos-keyboard-event-tap",
+ name="Process Tapping macOS Keyboard Events",
+ severity="high",
+ mitre=["t1056.001"],
+ product="osquery",
+ service="es_process_events",
+ when={
+ "event_type": "osquery_query_row",
+ "query_name_contains": "Keyboard_Event_Tap",
+ },
+ fp=["Authorised accessibility software or approved input manager"],
+ playbook="tpl-collection",
+ ),
+]
+
+
# ---------------------------------------------------------------------------
# Aggregate
# ---------------------------------------------------------------------------
@@ -1068,6 +1342,7 @@ ENDPOINT_EXTRA: list[dict] = (
+ CONTAINER_RULES
+ MOBILE_RULES
+ HOST_NETWORK_RULES
+ + OSQUERY_RULES
)
@@ -1079,4 +1354,5 @@ __all__ = [
"CONTAINER_RULES",
"MOBILE_RULES",
"HOST_NETWORK_RULES",
+ "OSQUERY_RULES",
]
diff --git a/services/connectors/app/connectors/fleetdm.py b/services/connectors/app/connectors/fleetdm.py
index 37470491c..df69b46f8 100644
--- a/services/connectors/app/connectors/fleetdm.py
+++ b/services/connectors/app/connectors/fleetdm.py
@@ -304,20 +304,34 @@ class FleetDMConnector(BaseConnector):
row = raw.get("row") or {}
table = _infer_table(query.get("query"))
host_name = row.get("host_hostname") or row.get("hostname")
- return {
- "source": self.connector_id,
- "category": "endpoint",
- "severity": _table_severity(table),
- "title": f"FleetDM query: {query.get('name') or query.get('id')}",
- "description": (query.get("query") or "")[:400],
- "alert_id": (f"fleetdm-q{query.get('id')}-h{row.get('host_id') or row.get('host_hostname')}"),
- "hostname": host_name,
- "host": host_name,
- "external_id": str(query.get("id")) if query.get("id") is not None else None,
- "osquery_table": table,
- "raw_event": row,
- "raw": raw,
- }
+
+ # Flatten osquery row columns to the top level so detection
+ # rules can match on them directly. AiSOC-canonical fields
+ # (source/category/severity/...) win on collision.
+ event: dict[str, Any] = {}
+ if isinstance(row, dict):
+ event.update(row)
+ event.update(
+ {
+ "source": self.connector_id,
+ "category": "endpoint",
+ "event_type": "osquery_query_row",
+ "severity": _table_severity(table),
+ "title": f"FleetDM query: {query.get('name') or query.get('id')}",
+ "description": (query.get("query") or "")[:400],
+ "alert_id": (
+ f"fleetdm-q{query.get('id')}-h{row.get('host_id') or row.get('host_hostname')}"
+ ),
+ "hostname": host_name,
+ "host": host_name,
+ "external_id": str(query.get("id")) if query.get("id") is not None else None,
+ "osquery_table": table,
+ "query_name": query.get("name"),
+ "raw_event": row,
+ "raw": raw,
+ }
+ )
+ return event
# ---------------------------------------------------------------------------
diff --git a/services/connectors/app/connectors/osctrl.py b/services/connectors/app/connectors/osctrl.py
index fa8efeb54..a83c9a123 100644
--- a/services/connectors/app/connectors/osctrl.py
+++ b/services/connectors/app/connectors/osctrl.py
@@ -266,20 +266,39 @@ class OsctrlConnector(BaseConnector):
table_name = query.get("query_table") or _infer_table(query.get("query"))
hostname = row.get("hostname") or row.get("host_identifier") or row.get("computer_name")
- return {
- "source": self.connector_id,
- "category": "endpoint",
- "severity": _osctrl_severity(table_name),
- "title": (f"osctrl query: {query.get('name') or query.get('uuid') or 'distributed-query'}"),
- "description": (query.get("query") or "")[:400],
- "alert_id": f"{query.get('name') or 'q'}::{row.get('uuid') or row.get('host_identifier') or ''}",
- "hostname": hostname,
- "host": hostname,
- "external_id": query.get("uuid"),
- "osquery_table": table_name,
- "raw_event": row,
- "raw": raw,
- }
+
+ # Flatten osquery row columns to the top level so detection
+ # rules can reference them directly in match_when clauses
+ # (the matcher only reads top-level fields). We start with the
+ # row dict and let the AiSOC-canonical fields below win on
+ # collision so source/category/severity stay correct.
+ event: dict[str, Any] = {}
+ if isinstance(row, dict):
+ event.update(row)
+ event.update(
+ {
+ "source": self.connector_id,
+ "category": "endpoint",
+ "event_type": "osquery_query_row",
+ "severity": _osctrl_severity(table_name),
+ "title": (
+ f"osctrl query: {query.get('name') or query.get('uuid') or 'distributed-query'}"
+ ),
+ "description": (query.get("query") or "")[:400],
+ "alert_id": (
+ f"{query.get('name') or 'q'}::"
+ f"{row.get('uuid') or row.get('host_identifier') or ''}"
+ ),
+ "hostname": hostname,
+ "host": hostname,
+ "external_id": query.get("uuid"),
+ "osquery_table": table_name,
+ "query_name": query.get("name") or query.get("query_name"),
+ "raw_event": row,
+ "raw": raw,
+ }
+ )
+ return event
# ---------------------------------------------------------------------------
diff --git a/services/connectors/tests/test_osquery_connectors.py b/services/connectors/tests/test_osquery_connectors.py
index 97cc15fcb..86c89fe9e 100644
--- a/services/connectors/tests/test_osquery_connectors.py
+++ b/services/connectors/tests/test_osquery_connectors.py
@@ -82,6 +82,15 @@ def test_osctrl_normalize_high_severity_for_persistence_table():
assert normalized["host"] == "macbook-01.corp"
assert normalized["osquery_table"] == "startup_items"
assert normalized["raw_event"]["path"] == "/Library/StartupItems/evil"
+ # Flattened osquery columns must be reachable at the top level so
+ # detection rules can match on them via match_when (the matcher
+ # only reads top-level fields).
+ assert normalized["path"] == "/Library/StartupItems/evil"
+ assert normalized["name"] == "evil.app"
+ assert normalized["query_name"] == "list-startup-items"
+ # event_type is the stable handle detection authors use to scope
+ # rules to osquery row events (vs. EndpointSecurity 'exec' events).
+ assert normalized["event_type"] == "osquery_query_row"
def test_osctrl_normalize_inventory_table_is_info():
@@ -239,6 +248,10 @@ def test_fleetdm_normalize_query_row_uses_table_severity():
assert norm["severity"] == "high"
assert norm["osquery_table"] == "scheduled_tasks"
assert norm["hostname"] == "win-jumphost"
+ # Flattened osquery columns reachable at the top level
+ assert norm["name"] == "evil-task"
+ assert norm["host_id"] == 22
+ assert norm["event_type"] == "osquery_query_row"
@pytest.mark.asyncio