That would be the "infamous" rear hatch! Quite a few threads here for DIY to toake care of that!
This is only one of the many that are here! Scroll down once you click on the link. There is a much better thread and a newer one with pics, I just cant seem to find it! Hope this helps!
http://www.xoutpost.com/x5-e53-forum/...knocking+noise
RR