After upgrading to Catalina 10.15.2, a few popups appeared and disappeared so fast that I could neither allow nor deny them, until today, when one popup lasted long enough for me to read that it requested permission to allow "mediasharingd". I neither allowed nor denied it, and it disappeared again after lingering on my screen just long enough to be read. A Google search for "mediasharingd" showed this Apple support thread as the top hit, followed immediately by the second most popular hit, which linked to an Apple support document, as shown in the first screenshot (below). From my desktop menu bar, I had clicked the bitten black Apple icon at the top left of my screen, then selected its first option, "about this Mac". That led me to the Mac OS user guide or manual (see my second screenshot). Having bounced in and out of today's "history" on my desktops so many times, I am not sure which of the many selections I made first, but I felt it was important to avoid selecting anything within the popups. The Apple Support Mac OS Catalina user guide suggested system preferences, which led me to the blue icon showing the yellow pedestrian triangle for "sharing". Because there are other iMac computers and iPhones in my household LAN (Local Area Network), I want to access at least some of my Apple ID iCloud library from all of them. So I allowed media sharing within that system preference/sharing window. At some point, a popup appeared, and it looked identical to the popup that had lingered for several seconds earlier today, immediately after logging in to my iMac. Again, I avoided making any clicks or selections in that suspected duplicate popup. After allowing media sharing in my sharing peferences, and arrangong the two screenshots, I restarted my iMac, and no similar popups have recurred. I don't know for certain whether I have allowed some ghost app to access my iCloud library, either hidden in one of my household devices, or out there in the fog of the clouds. I simply tried to follow instructions.
P.S. I don't have a valid url for my screenshots, so I was not allowed to post them. Bear with me, and perhaps I can provide actual links that will lead you along the same path I followed.