Hey I had the exact same rattle noise, my mechanic found the heatshield on my downpipe had cracked, he fixed it somehow, not sure tho, was only a $30 fix.
Watch this video to see if it is the same noise
Subaru wrx rattle noise on throttle release - YouTube