I remember somebody trying to hook into the Apple Find My network (that is, do things with AirTags). They did that by… being a Mail.app plug-in or something to get the correct entitlements? That certainly sounds like the wrong permissions.
Ah, it was OpenHaystack: https://github.com/seemoo-lab/openhaystack#installation