Hello
I have read many posts about this typical problem.
I looked for a quick and effective solution and after a long time I managed to get my rattle to stop making noise by 80-90% according to my subwoofer, which offers 250rms and will not always be at maximum performance, also depending on the music you listen to.
The objective was for the third brake light to go down a little and to do so I thought I could hold the cable underneath with a hook and a elastic band as you can see in the images bought in a Chinese bazaar.
Keep in mind that you can use anything else that is elastic, elastic bands deteriorate over time.
I hope this helps some.
Hooks

Elastic band
Hooked