My network monitoring device picked up an abnormal upload action from my home assistant towards an external IP address in China. I cannot find which feature (either home assistant itself or one of my integrations) would do this, and why. For now, I have blocked data transfers to this IP, and all my integrations and HA features seem to operate as normal.
When I search for more information about the IP or the port, I end up with no results as to what this data transfer is for. I’m looking for help to analyze this behaviour, please advise.
I would say there is two options now.
None of them is particularly fun.
Open the integrations page (documentations) and see if it’s cloud or local.
If it’s cloud then disable the integration and see if that stopped the communication.
If not, then do the same with the next integration until you find the guilty integration.
Or…
Open the integrations page (documentations) and see if it’s cloud or local.
If it’s cloud then open the GitHub page and search for the IP in the code.
I assume the IP should be included somewhere in the GitHub code, but it could also be a DNS name so this method may not work at all.
When I look at the details in the warning again it starts to look like a HA installation that is shared on the internet through a portforward on the router.
I might not fully understand what you mean, but the only port thing I have configured is incoming traffic through my duckdns address directly towards port 8123 is forwarded to my HA frontend, which is password and 2FA protected.
The 1.39MB was sent from my network towards an outside address, for which I can see no apparent reason for it to do so
uPnP has been known to expose ports externally that it should not. Any hacker casting a wide net for exposed ports could have easily spotted an exposed Samba share, connected and downloaded what was exposed. As I said it has happened here before.
The China IP initiated a connection the the posters router, which is why its listed as the source.
The China IP then uploaded some data.
The terms that confuse is downloading and uploading, since these relate to the viewpoint.
In China the data was downloaded, because they moved towards China IP, but from the posters position the data was uploaded, because the data moved away from the posters IP.
The warning state only that data was moved from the posters IP to the China IP.
There is no info of how much data was moved the other way.
It could be just a few kilobytes in typical requests or it could be much more, if the China IP had write permission somewhere.
This missing information is typical for low-grade IDC systems, since logging and evaluating all that downloaded is a much much bigger task.