elastic / elastic/detection-rules

[New Rule] Suspicious Spotlight Importer

Open
#2,564 1 comment 0 reactions 1 assignee Assigned to @shashank-elastic View on GitHub
backlog OS: macOS Rule: New
Dominant language
Python
Stars
2.7k
Forks
696
Avg merge
4d 17h
Merged PRs (30d)
87

Description

## Description

Detects the creation of or modification of Spotlight Importers. This activity should be very rare and may indicate a threat attempting to persist via a malicious Spotlight Importer.

### Target indexes

logs-*

### Target Operating Systems

macOS

### Tested ECS Version
1.11.0

### Query
```sql
file where event.action != "deletion" and file.path : ("/System/Library/Spotlight/*", "/Library/Spotlight/*", "/Users/*/Library/Spotlight/*") and not file.path : "/Users/*/Library/Caches/*" and not process.code_signature.signing_id : ("com.apple.searchd", "com.apple.ditto")
```

### References
https://theevilbit.github.io/beyond/beyond_0011/

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.