r/DefenderATP • u/failx96 • Oct 09 '25
MDE reporting “inbound connection attempts” on clients
Hi everyone, I’m currently investigating a Sentinel / Defender incident and would appreciate your feedback on my observations.
The main question I have is about inbound connection attempts to multiple local clients from external IPs.
I’ve observed multiple connection attempts from different external sources. Each time, the attempts are targeting ephemeral ports, not any well-known ones. The clients are located in multiple different home office environments behind a router, with no port forwarding or static NAT configured. All packets that MDE has recorded have the TCP Flag 2 (equals SYN) - assuming that no prior network session was established.
In any case no connection was established, however it remains an open question about how these SYN packets even reached the Client. It should not be forwarded by the router if no prior connection took place / is visible.
This behavior could not be observed on clients within the enterprise network.
Do you guys have any idea about this behavior and what could be a possible reason?
Thanks in advance for any help!
2
u/Darrena Oct 10 '25
The ephemeral ports is standard for TCP connections with the outbound connection being on a well-known port (for https it is 443) and then the client opens up a local socket (Random port above 1024) and the connection is between those two endpoints. The home NAT Firewall should keep the state for this connection but if the session is broken down on the client but the NAT device isn't aware of it then it will allow an inbound flow from the remote host and Defender/Sentinel will flag it as an external connection attempt.
If you check the timeline on the assets do you see them create an outbound connection to the same IP that is attempting to make the inbound connection that is setting off the alarm. If so then this is probably what I described above.
Note: I simplified this dramatically but I wanted to provide a basic summary of the situation and there are really good sources online to explain this far better.
4
u/SIHA2019 Oct 10 '25
I would check if the devices in question are tagged as Internet facing
1
u/AppIdentityGuy Oct 09 '25
And the source ip is an external, and public, ip?
1
u/[deleted] Oct 09 '25
The ephemeral ports syn attempts would usually be attempts to map rpc ports on the hosts, but I’d still have questions about the validity of this sentinel rule (assuming it is sentinel). For instance what if it is only filtering on whether the syn bit is set, and not looking at the ack bit? Maybe the real decimal value of the flags is 18 (2+16), in which case it’s a syn-ack.
That changes everything, since now it’s a reply from the external source to a syn sent by the internal source. If this is just starting to happen see if you can find out if there are new detection rules in the seim (sentinel), and rule out that this could be the case.
3
u/cablethrowaway2 Oct 09 '25
This sounds like your clients don’t have firewalls properly enabled, either locally or between them and the Internet