Amazon has a way to catch package-stealing thieves
qz.com
qz.com
I think parcel lockers are a great invention, but if you don't have them, you can have Amazon packages show up in their own lockers.
Since this is HN I'll leave it to the technological solution rather than questioning why delivery protocol is no longer to hand off to another human being.
Also, if a package with a dye pack were delivered to me, I'd be extremely pissed off. (Which I suspect is almost guaranteed to happen, if not by accident then by a thief that detects the trap and just ditches it at the next doorstep.)
My mailman drops packages for the building next door on my doorstep every once in a while and I just go walk it over to them fully avoiding the dye packs.