elastic / elastic/detection-rules

[New Rule] TLS Traffic Intercept on MacOS

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

Description

## Description

Based on the reference [links](https://objectivebythesea.com/v2/talks/OBTS_v2_Zohar.pdf) for the "WebProxy Settings Modification" detection rule if an attacker wants to intercept TLS from a Mac system they will attempt to install a webproxy service and also install a new Root Certificate. Doing only one step without the other is less likely to indicate an attack.

I recommend an EQL rule that creates a critical alert when both alerts are seen on a single host within a 24h timespan. The long timespan is because sometimes making changes to the webproxy requires a reboot so it is possible the attacker could do these as two discreet actions.

## Required Info

### Target indexes
.siem-signals-*

### Additional requirements
The "WebProxy Settings Modification" and the "Attempt to Install Root Certificate" rules need to be deployed for this to work. The `.siem-signals-*` index pattern needs to be available to the detection engine as well. If the users are using Kibana spaces they may want to update the index pattern to use `.siem-signals--*`.

### Target Operating Systems
macOS

## Optional Info

### Query

```
sequence by host.name with maxspan=24h
[any where signal.rule.name == "WebProxy Settings Modification"]
[any where signal.rule.name == "Attempt to Install Root Certificate"]
```

The order of the creation of the detections may be either way so it would probably be good to account for cases where each of them come first.

Note that this will break if the user duplicates the rule to make a custom named copy of the signal rather than use the built in name.

### New fields required in ECS/data sources for this rule?

### Related issues or PRs

### References

## Example Data

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.