opseclint 1.1.0

Detection-coverage analyzer for Linux/auditd, Windows/Sysmon, and macOS/Endpoint Security: resolve shell/command actions to ATT&CK techniques, the telemetry they emit, and the detections that would fire.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
{
  "platform": "macos-es",
  "note": "Seed knowledge base. Detection references are representative of publicly available Sigma logic (SigmaHQ, product: macos) and should be validated against your deployed ruleset. Telemetry assumes a macOS host with an Endpoint Security (ESF) client and/or the unified log emitting process, file, and network events.",
  "entries": [
    {
      "id": "whoami",
      "command": "whoami",
      "description": "Current user discovery",
      "techniques": [{ "id": "T1033", "name": "System Owner/User Discovery" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/bin/whoami"],
      "detections": [{ "source": "Sigma", "rule": "System owner discovery (proc_creation_macos)", "confidence": "low" }],
      "noise": 40
    },
    {
      "id": "id",
      "command": "id",
      "description": "User and group identity discovery",
      "techniques": [{ "id": "T1033", "name": "System Owner/User Discovery" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/bin/id"],
      "detections": [{ "source": "Sigma", "rule": "System owner discovery (proc_creation_macos)", "confidence": "low" }],
      "noise": 40
    },
    {
      "id": "sw-vers",
      "command": "sw_vers",
      "description": "macOS version fingerprinting",
      "techniques": [{ "id": "T1082", "name": "System Information Discovery" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/bin/sw_vers"],
      "detections": [{ "source": "Sigma", "rule": "System information discovery (proc_creation_macos)", "confidence": "low" }],
      "noise": 30
    },
    {
      "id": "system-profiler",
      "command": "system_profiler",
      "description": "Detailed system/hardware inventory",
      "techniques": [{ "id": "T1082", "name": "System Information Discovery" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of system_profiler"],
      "detections": [{ "source": "Sigma", "rule": "system_profiler execution (proc_creation_macos)", "confidence": "low" }],
      "noise": 35
    },
    {
      "id": "networksetup",
      "command": "networksetup",
      "description": "Network configuration discovery / modification",
      "techniques": [{ "id": "T1016", "name": "System Network Configuration Discovery" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of networksetup"],
      "detections": [{ "source": "Sigma", "rule": "Network configuration discovery (proc_creation_macos)", "confidence": "low" }],
      "noise": 32
    },
    {
      "id": "mdfind",
      "command": "mdfind",
      "description": "Spotlight-backed file search — file and directory discovery",
      "techniques": [{ "id": "T1083", "name": "File and Directory Discovery" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of mdfind"],
      "detections": [{ "source": "Sigma", "rule": "Spotlight file discovery (proc_creation_macos)", "confidence": "low" }],
      "noise": 32
    },
    {
      "id": "dscl-list-users",
      "command": "dscl",
      "args_contains": "list /users",
      "description": "Local account enumeration via dscl",
      "techniques": [{ "id": "T1087.001", "name": "Account Discovery: Local Account" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of dscl with -list /Users"],
      "detections": [{ "source": "Sigma", "rule": "Local account discovery via dscl (proc_creation_macos)", "confidence": "medium" }],
      "noise": 45
    },
    {
      "id": "dscl-create-user",
      "command": "dscl",
      "args_contains": "-create",
      "description": "Local account creation via dscl — persistence",
      "techniques": [{ "id": "T1136.001", "name": "Create Account: Local Account" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of dscl with -create /Users/..."],
      "detections": [{ "source": "Sigma", "rule": "Local account creation via dscl (proc_creation_macos)", "confidence": "high" }],
      "noise": 68
    },
    {
      "id": "dseditgroup-admin",
      "raw_contains": "dseditgroup",
      "description": "Group membership modification (e.g. adding to admin) via dseditgroup",
      "techniques": [{ "id": "T1098", "name": "Account Manipulation" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of dseditgroup -o edit -a <user> admin"],
      "detections": [{ "source": "Sigma", "rule": "Admin group modification via dseditgroup (proc_creation_macos)", "confidence": "high" }],
      "noise": 64
    },
    {
      "id": "launch-agent-persist",
      "raw_contains": "launchagents",
      "description": "Writing a LaunchAgent plist — user logon persistence",
      "techniques": [{ "id": "T1543.001", "name": "Create or Modify System Process: Launch Agent" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_CREATE of ~/Library/LaunchAgents/*.plist"],
      "detections": [{ "source": "Sigma", "rule": "LaunchAgent persistence (file_event_macos)", "confidence": "high" }],
      "noise": 66
    },
    {
      "id": "launch-daemon-persist",
      "raw_contains": "launchdaemons",
      "description": "Writing a LaunchDaemon plist — system-wide persistence",
      "techniques": [{ "id": "T1543.004", "name": "Create or Modify System Process: Launch Daemon" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_CREATE of /Library/LaunchDaemons/*.plist"],
      "detections": [{ "source": "Sigma", "rule": "LaunchDaemon persistence (file_event_macos)", "confidence": "high" }],
      "noise": 70
    },
    {
      "id": "launchctl-load",
      "command": "launchctl",
      "args_contains": "load",
      "description": "Loading a launchd job — persistence / execution",
      "techniques": [
        { "id": "T1543.001", "name": "Create or Modify System Process: Launch Agent" },
        { "id": "T1569.001", "name": "System Services: Launchctl" }
      ],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of launchctl load"],
      "detections": [{ "source": "Sigma", "rule": "launchctl job load (proc_creation_macos)", "confidence": "medium" }],
      "noise": 52
    },
    {
      "id": "login-items-persist",
      "raw_contains": "loginitems",
      "description": "Adding a Login Item — logon persistence",
      "techniques": [{ "id": "T1547.015", "name": "Boot or Logon Autostart Execution: Login Items" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of osascript/defaults modifying Login Items"],
      "detections": [{ "source": "Sigma", "rule": "Login item persistence (proc_creation_macos)", "confidence": "medium" }],
      "noise": 58
    },
    {
      "id": "keychain-dump",
      "command": "security",
      "args_contains": "dump-keychain",
      "description": "Dumping the login keychain — credential access",
      "techniques": [{ "id": "T1555.001", "name": "Credentials from Password Stores: Keychain" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/bin/security dump-keychain", "ESF open of ~/Library/Keychains/login.keychain-db"],
      "detections": [{ "source": "Sigma", "rule": "Keychain dump via security (proc_creation_macos)", "confidence": "high" }],
      "noise": 78
    },
    {
      "id": "keychain-find",
      "raw_contains": "find-generic-password",
      "description": "Extracting a stored secret via security find-*-password",
      "techniques": [{ "id": "T1555.001", "name": "Credentials from Password Stores: Keychain" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of security find-generic-password -w"],
      "detections": [{ "source": "Sigma", "rule": "Keychain secret extraction (proc_creation_macos)", "confidence": "high" }],
      "noise": 72
    },
    {
      "id": "osascript",
      "command": "osascript",
      "args_contains": "-e",
      "description": "Inline AppleScript execution",
      "techniques": [{ "id": "T1059.002", "name": "Command and Scripting Interpreter: AppleScript" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of osascript -e"],
      "detections": [{ "source": "Sigma", "rule": "Inline AppleScript execution (proc_creation_macos)", "confidence": "medium" }],
      "noise": 55
    },
    {
      "id": "osascript-shell",
      "raw_contains": "do shell script",
      "description": "AppleScript spawning a shell (do shell script) — often privilege prompt abuse",
      "techniques": [{ "id": "T1059.002", "name": "Command and Scripting Interpreter: AppleScript" }],
      "telemetry": ["osascript spawning /bin/sh as a child process (ESF EXEC chain)"],
      "detections": [{ "source": "Sigma", "rule": "AppleScript do shell script (proc_creation_macos)", "confidence": "high" }],
      "noise": 66
    },
    {
      "id": "gatekeeper-disable",
      "raw_contains": "--master-disable",
      "description": "Disabling Gatekeeper via spctl --master-disable — defense evasion",
      "techniques": [{ "id": "T1553.001", "name": "Subvert Trust Controls: Gatekeeper Bypass" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of spctl --master-disable"],
      "detections": [{ "source": "Sigma", "rule": "Gatekeeper disabled via spctl (proc_creation_macos)", "confidence": "high" }],
      "noise": 74
    },
    {
      "id": "quarantine-removal",
      "raw_contains": "com.apple.quarantine",
      "description": "Removing the quarantine attribute — Gatekeeper bypass",
      "techniques": [{ "id": "T1553.001", "name": "Subvert Trust Controls: Gatekeeper Bypass" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_SETEXTATTR / xattr -d com.apple.quarantine"],
      "detections": [{ "source": "Sigma", "rule": "Quarantine attribute removal (proc_creation_macos)", "confidence": "medium" }],
      "noise": 60
    },
    {
      "id": "sip-disable",
      "raw_contains": "csrutil disable",
      "description": "Disabling System Integrity Protection — defense evasion",
      "techniques": [{ "id": "T1562.001", "name": "Impair Defenses: Disable or Modify Tools" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of csrutil disable (recovery context)"],
      "detections": [{ "source": "Sigma", "rule": "SIP disabled via csrutil (proc_creation_macos)", "confidence": "high" }],
      "noise": 78
    },
    {
      "id": "tcc-tamper",
      "raw_contains": "tcc.db",
      "description": "Direct access to the TCC database — privacy/permission control bypass",
      "techniques": [{ "id": "T1548.006", "name": "Abuse Elevation Control Mechanism: TCC Manipulation" }],
      "telemetry": ["ESF open/write of TCC.db under ~/Library/Application Support/com.apple.TCC"],
      "detections": [{ "source": "Sigma", "rule": "TCC database manipulation (file_event_macos)", "confidence": "high" }],
      "noise": 72
    },
    {
      "id": "kextload",
      "command": "kextload",
      "description": "Loading a kernel extension — potential rootkit / persistence",
      "techniques": [{ "id": "T1547.006", "name": "Boot or Logon Autostart Execution: Kernel Modules and Extensions" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of kextload / ES_EVENT_TYPE_NOTIFY_KEXTLOAD"],
      "detections": [{ "source": "Sigma", "rule": "Kernel extension load (proc_creation_macos)", "confidence": "medium" }],
      "noise": 62
    },
    {
      "id": "screencapture",
      "command": "screencapture",
      "description": "Screen capture — collection",
      "techniques": [{ "id": "T1113", "name": "Screen Capture" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of screencapture"],
      "detections": [{ "source": "Sigma", "rule": "Screen capture via screencapture (proc_creation_macos)", "confidence": "medium" }],
      "noise": 52
    },
    {
      "id": "clipboard-capture",
      "command": "pbpaste",
      "description": "Reading the clipboard — collection",
      "techniques": [{ "id": "T1115", "name": "Clipboard Data" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of pbpaste"],
      "detections": [{ "source": "Sigma", "rule": "Clipboard read via pbpaste (proc_creation_macos)", "confidence": "low" }],
      "noise": 45
    },
    {
      "id": "curl",
      "command": "curl",
      "description": "Remote file transfer / HTTP client — tool ingress or exfil",
      "techniques": [{ "id": "T1105", "name": "Ingress Tool Transfer" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of curl", "outbound network connection"],
      "detections": [{ "source": "Sigma", "rule": "File transfer via curl (proc_creation_macos)", "confidence": "medium" }],
      "noise": 55
    },
    {
      "id": "reverse-shell-devtcp",
      "raw_contains": "/dev/tcp",
      "description": "Bash /dev/tcp reverse shell — interactive C2 channel",
      "techniques": [
        { "id": "T1059.004", "name": "Command and Scripting Interpreter: Unix Shell" },
        { "id": "T1071", "name": "Application Layer Protocol" }
      ],
      "telemetry": ["ESF EXEC of bash followed by an outbound connection to the attacker"],
      "detections": [{ "source": "Sigma", "rule": "Reverse shell via /dev/tcp (proc_creation_macos)", "confidence": "high" }],
      "noise": 80
    },
    {
      "id": "history-clear",
      "raw_contains": "history -c",
      "description": "Shell command-history clearing — anti-forensics",
      "techniques": [{ "id": "T1070.003", "name": "Indicator Removal: Clear Command History" }],
      "telemetry": ["truncate/write of ~/.zsh_history or ~/.bash_history"],
      "detections": [{ "source": "Sigma", "rule": "Command history clearing (proc_creation_macos)", "confidence": "medium" }],
      "noise": 70
    },
    {
      "id": "unified-log-erase",
      "raw_contains": "log erase",
      "description": "Erasing the unified log — anti-forensics",
      "techniques": [{ "id": "T1070.002", "name": "Indicator Removal: Clear Linux or Mac System Logs" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/bin/log erase"],
      "detections": [{ "source": "Sigma", "rule": "Unified log erase (proc_creation_macos)", "confidence": "high" }],
      "noise": 72
    },
    {
      "id": "ps",
      "command": "ps",
      "description": "Running process discovery",
      "techniques": [{ "id": "T1057", "name": "Process Discovery" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /bin/ps"],
      "detections": [{ "source": "Sigma", "rule": "Process discovery via ps (proc_creation_macos)", "confidence": "low" }],
      "noise": 35
    },
    {
      "id": "netstat",
      "command": "netstat",
      "description": "Network connection discovery",
      "techniques": [{ "id": "T1049", "name": "System Network Connections Discovery" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/sbin/netstat"],
      "detections": [{ "source": "Sigma", "rule": "Network connection discovery (proc_creation_macos)", "confidence": "low" }],
      "noise": 40
    },
    {
      "id": "lsof-net",
      "command": "lsof",
      "args_contains": "-i",
      "description": "Open network socket enumeration via lsof -i",
      "techniques": [{ "id": "T1049", "name": "System Network Connections Discovery" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/sbin/lsof with -i"],
      "detections": [{ "source": "Sigma", "rule": "Network connection discovery (proc_creation_macos)", "confidence": "low" }],
      "noise": 40
    },
    {
      "id": "arp",
      "command": "arp",
      "description": "ARP cache enumeration — adjacent host discovery",
      "techniques": [{ "id": "T1018", "name": "Remote System Discovery" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/sbin/arp"],
      "detections": [{ "source": "Sigma", "rule": "Remote system discovery via arp (proc_creation_macos)", "confidence": "low" }],
      "noise": 40
    },
    {
      "id": "dscl-groups",
      "command": "dscl",
      "args_contains": "list /groups",
      "description": "Local group enumeration via dscl",
      "techniques": [{ "id": "T1069.001", "name": "Permission Groups Discovery: Local Groups" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/bin/dscl reading the local group node"],
      "detections": [{ "source": "Sigma", "rule": "Local group discovery via dscl (proc_creation_macos)", "confidence": "low" }],
      "noise": 35
    },
    {
      "id": "sudo-l",
      "command": "sudo",
      "args_contains": "-l",
      "description": "Enumeration of the current user's sudo privileges",
      "techniques": [{ "id": "T1069", "name": "Permission Groups Discovery" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/bin/sudo with -l", "sudo(8) logging the privilege listing to the unified log"],
      "detections": [{ "source": "Sigma", "rule": "sudo -l privilege enumeration (proc_creation_macos)", "confidence": "medium" }],
      "noise": 50
    },
    {
      "id": "last-login",
      "command": "last",
      "description": "Login history enumeration",
      "techniques": [{ "id": "T1087.001", "name": "Account Discovery: Local Account" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/bin/last reading utmpx"],
      "detections": [{ "source": "Sigma", "rule": "Login history discovery (proc_creation_macos)", "confidence": "low" }],
      "noise": 30
    },
    {
      "id": "spctl-status",
      "raw_contains": "spctl --status",
      "description": "Querying Gatekeeper assessment status — security-software discovery",
      "techniques": [{ "id": "T1518.001", "name": "Software Discovery: Security Software Discovery" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/sbin/spctl with --status"],
      "detections": [{ "source": "Sigma", "rule": "Gatekeeper status query (proc_creation_macos)", "confidence": "low" }],
      "noise": 35
    },
    {
      "id": "private-key-ssh",
      "raw_contains": "id_rsa",
      "description": "Access to an SSH RSA private key — unsecured credentials",
      "techniques": [{ "id": "T1552.004", "name": "Unsecured Credentials: Private Keys" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_OPEN of ~/.ssh/id_rsa"],
      "detections": [{ "source": "Sigma", "rule": "SSH private key access (file_event_macos)", "confidence": "medium" }],
      "noise": 65
    },
    {
      "id": "private-key-ed25519",
      "raw_contains": "id_ed25519",
      "description": "Access to an SSH Ed25519 private key — unsecured credentials",
      "techniques": [{ "id": "T1552.004", "name": "Unsecured Credentials: Private Keys" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_OPEN of ~/.ssh/id_ed25519"],
      "detections": [{ "source": "Sigma", "rule": "SSH private key access (file_event_macos)", "confidence": "medium" }],
      "noise": 65
    },
    {
      "id": "creds-in-files",
      "command": "grep",
      "args_contains": "password",
      "description": "Grepping the filesystem for passwords — credential hunting",
      "techniques": [{ "id": "T1552.001", "name": "Unsecured Credentials: Credentials In Files" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/bin/grep scanning for secrets"],
      "detections": [{ "source": "Sigma", "rule": "Credential search in files (proc_creation_macos)", "confidence": "low" }],
      "noise": 55
    },
    {
      "id": "shadowhash-dump",
      "raw_contains": "shadowhashdata",
      "description": "Reading ShadowHashData via dscl — local password-hash extraction",
      "techniques": [{ "id": "T1003", "name": "OS Credential Dumping" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/bin/dscl reading ShadowHashData", "elevated (root) access to the local directory-services record"],
      "detections": [{ "source": "Sigma", "rule": "ShadowHashData dump via dscl (proc_creation_macos)", "confidence": "high" }],
      "noise": 70
    },
    {
      "id": "browser-cookies",
      "raw_contains": "cookies.binarycookies",
      "description": "Reading Safari's binary cookie store — session-cookie theft",
      "techniques": [{ "id": "T1539", "name": "Steal Web Session Cookie" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_OPEN of ~/Library/Cookies/Cookies.binarycookies"],
      "detections": [{ "source": "Sigma", "rule": "Browser cookie store access (file_event_macos)", "confidence": "medium" }],
      "noise": 50
    },
    {
      "id": "chrome-logindata",
      "raw_contains": "chrome/default/login data",
      "description": "Reading Chrome's Login Data store — saved-credential theft",
      "techniques": [{ "id": "T1555.003", "name": "Credentials from Password Stores: Credentials from Web Browsers" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_OPEN of ~/Library/Application Support/Google/Chrome/Default/Login Data"],
      "detections": [{ "source": "Sigma", "rule": "Web-browser credential store access (file_event_macos)", "confidence": "medium" }],
      "noise": 55
    },
    {
      "id": "osascript-phish",
      "raw_contains": "with hidden answer",
      "description": "AppleScript password prompt (display dialog … with hidden answer) — GUI credential phishing",
      "techniques": [{ "id": "T1056.002", "name": "Input Capture: GUI Input Capture" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/bin/osascript rendering a credential dialog"],
      "detections": [{ "source": "Sigma", "rule": "osascript credential prompt (proc_creation_macos)", "confidence": "medium" }],
      "noise": 55
    },
    {
      "id": "python-c",
      "command": "python3",
      "args_contains": "-c",
      "description": "Inline Python execution — common for one-liner payloads",
      "techniques": [{ "id": "T1059.006", "name": "Command and Scripting Interpreter: Python" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of python3 with -c"],
      "detections": [{ "source": "Sigma", "rule": "Inline Python execution (proc_creation_macos)", "confidence": "low" }],
      "noise": 55
    },
    {
      "id": "netcat",
      "command": "nc",
      "description": "Raw TCP/UDP connection via nc — potential C2 or exfil channel",
      "techniques": [{ "id": "T1095", "name": "Non-Application Layer Protocol" }, { "id": "T1071", "name": "Application Layer Protocol" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/bin/nc", "outbound socket observed via a NetworkExtension flow / pf log"],
      "detections": [{ "source": "Sigma", "rule": "Netcat execution (proc_creation_macos)", "confidence": "medium" }],
      "noise": 70
    },
    {
      "id": "python-http-server",
      "command": "python3",
      "args_contains": "http.server",
      "description": "Ad-hoc HTTP server — data staging / exfiltration channel",
      "techniques": [{ "id": "T1105", "name": "Ingress Tool Transfer" }, { "id": "T1567", "name": "Exfiltration Over Web Service" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of python3 with http.server", "process binding a listening TCP socket"],
      "detections": [{ "source": "Sigma", "rule": "Ad-hoc Python HTTP server (proc_creation_macos)", "confidence": "medium" }],
      "noise": 55
    },
    {
      "id": "crontab-persist",
      "command": "crontab",
      "description": "Cron job listing or installation — scheduled-task persistence",
      "techniques": [{ "id": "T1053.003", "name": "Scheduled Task/Job: Cron" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/bin/crontab", "ES_EVENT_TYPE_NOTIFY_WRITE of /usr/lib/cron/tabs/<user>"],
      "detections": [{ "source": "Sigma", "rule": "Cron persistence via crontab (proc_creation_macos)", "confidence": "medium" }],
      "noise": 45
    },
    {
      "id": "emond-persist",
      "raw_contains": "emond",
      "description": "Writing an emond rule — event-monitor persistence",
      "techniques": [{ "id": "T1546.014", "name": "Event Triggered Execution: Emond" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_WRITE under /etc/emond.d/ or /private/var/db/emondClients"],
      "detections": [{ "source": "Sigma", "rule": "Emond rule persistence (file_event_macos)", "confidence": "high" }],
      "noise": 60
    },
    {
      "id": "periodic-persist",
      "raw_contains": "/etc/periodic",
      "description": "Dropping a periodic script — scheduled-task persistence",
      "techniques": [{ "id": "T1053.003", "name": "Scheduled Task/Job: Cron" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_WRITE under /etc/periodic/{daily,weekly,monthly}"],
      "detections": [{ "source": "Sigma", "rule": "Periodic script persistence (file_event_macos)", "confidence": "medium" }],
      "noise": 55
    },
    {
      "id": "loginhook-persist",
      "raw_contains": "loginhook",
      "description": "Setting a LoginHook via com.apple.loginwindow — logon persistence",
      "techniques": [{ "id": "T1037.002", "name": "Boot or Logon Initialization Scripts: Login Hook" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/bin/defaults writing com.apple.loginwindow LoginHook"],
      "detections": [{ "source": "Sigma", "rule": "LoginHook persistence (proc_creation_macos)", "confidence": "high" }],
      "noise": 60
    },
    {
      "id": "authorized-keys",
      "raw_contains": "authorized_keys",
      "description": "Modification of SSH authorized_keys — remote-access persistence",
      "techniques": [{ "id": "T1098.004", "name": "Account Manipulation: SSH Authorized Keys" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_WRITE of ~/.ssh/authorized_keys"],
      "detections": [{ "source": "Sigma", "rule": "authorized_keys modification (file_event_macos)", "confidence": "medium" }],
      "noise": 55
    },
    {
      "id": "shell-profile-persist",
      "raw_contains": ".zshrc",
      "description": "Modifying a shell rc file (.zshrc) — logon persistence",
      "techniques": [{ "id": "T1546.004", "name": "Event Triggered Execution: Unix Shell Configuration Modification" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_WRITE of ~/.zshrc"],
      "detections": [{ "source": "Sigma", "rule": "Shell profile modification (file_event_macos)", "confidence": "medium" }],
      "noise": 55
    },
    {
      "id": "hidden-user",
      "raw_contains": "ishidden",
      "description": "Creating an account with IsHidden — hidden local user for persistence",
      "techniques": [{ "id": "T1564.002", "name": "Hide Artifacts: Hidden Users" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/bin/dscl setting IsHidden on a user record"],
      "detections": [{ "source": "Sigma", "rule": "Hidden user creation via dscl (proc_creation_macos)", "confidence": "high" }],
      "noise": 55
    },
    {
      "id": "dyld-insert",
      "raw_contains": "dyld_insert_libraries",
      "description": "DYLD_INSERT_LIBRARIES injection — dynamic-linker hijacking",
      "techniques": [{ "id": "T1574.006", "name": "Hijack Execution Flow: Dynamic Linker Hijacking" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC with DYLD_INSERT_LIBRARIES in the environment"],
      "detections": [{ "source": "Sigma", "rule": "DYLD_INSERT_LIBRARIES injection (proc_creation_macos)", "confidence": "high" }],
      "noise": 78
    },
    {
      "id": "firewall-disable",
      "command": "socketfilterfw",
      "args_contains": "setglobalstate off",
      "description": "Disabling the application firewall via socketfilterfw — defense impairment",
      "techniques": [{ "id": "T1562.004", "name": "Impair Defenses: Disable or Modify System Firewall" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of socketfilterfw with --setglobalstate off"],
      "detections": [{ "source": "Sigma", "rule": "Application firewall disable (proc_creation_macos)", "confidence": "high" }],
      "noise": 55
    },
    {
      "id": "pfctl-disable",
      "command": "pfctl",
      "args_contains": "-d",
      "description": "Disabling the packet filter via pfctl -d — defense impairment",
      "techniques": [{ "id": "T1562.004", "name": "Impair Defenses: Disable or Modify System Firewall" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /sbin/pfctl with -d"],
      "detections": [{ "source": "Sigma", "rule": "Packet filter disable via pfctl (proc_creation_macos)", "confidence": "medium" }],
      "noise": 50
    },
    {
      "id": "chflags-hidden",
      "command": "chflags",
      "args_contains": "hidden",
      "description": "Setting the hidden flag — hide artifacts from Finder",
      "techniques": [{ "id": "T1564.001", "name": "Hide Artifacts: Hidden Files and Directories" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_SETFLAGS marking a path hidden"],
      "detections": [{ "source": "Sigma", "rule": "File hidden via chflags (proc_creation_macos)", "confidence": "low" }],
      "noise": 40
    },
    {
      "id": "chflags-uchg",
      "command": "chflags",
      "args_contains": "uchg",
      "description": "Setting the immutable (uchg) flag — protect a dropped artifact",
      "techniques": [{ "id": "T1222.002", "name": "File and Directory Permissions Modification: Linux and Mac" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_SETFLAGS setting the user-immutable flag"],
      "detections": [{ "source": "Sigma", "rule": "Immutable flag set via chflags (proc_creation_macos)", "confidence": "low" }],
      "noise": 45
    },
    {
      "id": "chmod-exec",
      "command": "chmod",
      "args_contains": "+x",
      "description": "Making a file executable — staging a dropped payload",
      "techniques": [{ "id": "T1222.002", "name": "File and Directory Permissions Modification: Linux and Mac" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_SETMODE adding the execute bit"],
      "detections": [{ "source": "Sigma", "rule": "Executable bit set via chmod (proc_creation_macos)", "confidence": "low" }],
      "noise": 40
    },
    {
      "id": "base64-decode",
      "command": "base64",
      "args_contains": "-d",
      "description": "Base64 decoding — deobfuscation of payloads",
      "techniques": [{ "id": "T1140", "name": "Deobfuscate/Decode Files or Information" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/bin/base64 in decode mode"],
      "detections": [{ "source": "Sigma", "rule": "Base64 decode (proc_creation_macos)", "confidence": "low" }],
      "noise": 45
    },
    {
      "id": "tar-archive",
      "command": "tar",
      "description": "Archiving data — collection prior to exfiltration",
      "techniques": [{ "id": "T1560.001", "name": "Archive Collected Data: Archive via Utility" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/bin/tar"],
      "detections": [{ "source": "Sigma", "rule": "Data archived via tar (proc_creation_macos)", "confidence": "low" }],
      "noise": 45
    },
    {
      "id": "ditto-archive",
      "command": "ditto",
      "description": "Archiving data via ditto — collection prior to exfiltration",
      "techniques": [{ "id": "T1560.001", "name": "Archive Collected Data: Archive via Utility" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/bin/ditto"],
      "detections": [{ "source": "Sigma", "rule": "Data archived via ditto (proc_creation_macos)", "confidence": "low" }],
      "noise": 40
    },
    {
      "id": "scp-exfil",
      "command": "scp",
      "description": "File transfer over SSH — ingress or exfiltration",
      "techniques": [{ "id": "T1105", "name": "Ingress Tool Transfer" }, { "id": "T1048", "name": "Exfiltration Over Alternative Protocol" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/bin/scp", "outbound SSH connection to a remote host"],
      "detections": [{ "source": "Sigma", "rule": "File transfer via scp (proc_creation_macos)", "confidence": "low" }],
      "noise": 45
    },
    {
      "id": "ssh-lateral",
      "command": "ssh",
      "description": "Interactive SSH — potential lateral movement",
      "techniques": [{ "id": "T1021.004", "name": "Remote Services: SSH" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /usr/bin/ssh", "outbound connection to a remote host on tcp/22"],
      "detections": [{ "source": "Sigma", "rule": "Interactive SSH session (proc_creation_macos)", "confidence": "low" }],
      "noise": 45
    },
    {
      "id": "ard-kickstart",
      "raw_contains": "kickstart -activate",
      "description": "Enabling Apple Remote Desktop via kickstart — remote-management foothold",
      "techniques": [{ "id": "T1021.005", "name": "Remote Services: VNC" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of the ARDAgent kickstart helper with -activate"],
      "detections": [{ "source": "Sigma", "rule": "Remote Management enabled via kickstart (proc_creation_macos)", "confidence": "high" }],
      "noise": 55
    },
    {
      "id": "screensharing-enable",
      "raw_contains": "com.apple.screensharing",
      "description": "Enabling the Screen Sharing (VNC) service — remote-access foothold",
      "techniques": [{ "id": "T1021.005", "name": "Remote Services: VNC" }],
      "telemetry": ["ES_EVENT_TYPE_NOTIFY_EXEC of /bin/launchctl loading com.apple.screensharing"],
      "detections": [{ "source": "Sigma", "rule": "Screen Sharing service enabled (proc_creation_macos)", "confidence": "medium" }],
      "noise": 50
    }
  ]
}