Repository navigation
[New Rule] Potential On-Path Relay in a TCP Flow - #7258
eric-forte-elastic wants to merge 3 commits into
Conversation
|
Starting the rule tests ... |
|
Starting the rule tests ... |
There was a problem hiding this comment.
🟡 Changes recommended
The rule can miss relay attacks when a restored direct path replaces the pre-attack flow, so separate flow instances must be retained to evaluate direct-to-relay transitions.
1 open issue
What changed in this PR
Adds a network-flow detection rule for potential on-path TCP relays associated with ARP cache poisoning.
Changes:
- Correlates an original Ethernet path with two subsequent legs through a shared relay MAC address.
- Adds capture setup requirements and investigation guidance.
- Maps the detection to MITRE ATT&CK ARP Cache Poisoning.
| File | Description |
|---|---|
rules/network/credential_access_potential_on_path_relay_in_tcp_flow.toml |
Adds the ES|QL relay detection, metadata, and analyst guidance. |
Review effort: Balanced
|
Starting the rule tests ... |
There was a problem hiding this comment.
🔵 Needs a closer look
The multi-stage ES|QL correlation needs capture-backed validation on Stack 9.5 for key flow edge cases, which the unavailable RTA changes and execution results and the supplied screenshot could not establish.
No open issues 🎉
1 resolved since last review
Review effort: Balanced
bryans3c
left a comment
There was a problem hiding this comment.
Nice! Approving as not to block
| from = "now-9m" | ||
| interval = "5m" |
There was a problem hiding this comment.
Should we add alert suppression?
| language = "esql" | ||
| license = "Elastic License v2" | ||
| name = "Potential On-Path Relay in a TCP Flow" | ||
| note = """## Triage and analysis |
There was a problem hiding this comment.
Should we match the standard note? We could mention some coverage limits like connections opened after poisoning or proxying instead of forwarding.
| name = "ARP Cache Poisoning" | ||
| reference = "https://attack.mitre.org/techniques/T1557/002/" | ||
|
|
||
|
|
There was a problem hiding this comment.
Should we add the Collection tactic?

Pull Request
Issue link(s):
Summary - What I changed
Rule using network flows to detect ARP poisoning. Identifies an IPv4 TCP connection initially observed between two Ethernet addresses and then observed on two legs through a third MAC address. This path change can follow ARP cache poisoning of a host and its gateway. The alert identifies the potential relay so an analyst can verify how traffic was redirected.
How To Test
Data in stack and RTA
Checklist
bug,enhancement,schema,maintenance,Rule: New,Rule: Deprecation,Rule: Tuning,Hunt: New, orHunt: Tuningso guidelines can be generatedmeta:rapid-mergelabel if planning to merge within 24 hoursContributor checklist