If it seems to be coming from the front of the engine, it could be the timing belt tensioner or the plastic cover. It's also pretty common for rattling noises to come from a broken exhaust manifold or a damaged catalytic converter.
A worst-case scenario would be broken piston skirts or worn wrist pins.

You could always drop the oil pan and look for chunks of aluminum.
HTH