Is this spell balanced for what it can do? Are there other issues with it?
Nystul's Magic Mask
Second level illusion
Casting Time: 1 action
Components: V, S, M (an item touched by or from the creature to impersonate)
Duration: 24 hours
You touch a creature, masking it with the personal aura of another creature. For the duration of the spell, the creature detects and functions to other effects as if it were that other creature. For example, an alarm spell that would not trigger for the other creature will not trigger for the target, and a sending spell will appear to come from the other creature. If an effect would need to determine if it affects the target or the other creature (for example, a sending spell send to the creature), determine randomly which of the creatures it will affect.
The spells purpose is to enable magical impersonation, which I believe could have many interesting applications (such as the ones mentioned in the examples, but not limited to them — you could also steal a replica of a leomund's secret chest and retrieve the original or any number of other ideas) and enable creative solutions to story challenges.
I am looking for review as a fundamental change effect like this could have issues I overlooked (one already identified in an answer: it provides a cheap alternative to Nondetection I had not considered as I was focused on the aspects of proactively using another identity).