Clearly nothing should rattle, so the first step should be to secure any loose parts you can find. That includes exhaust mountings, air ducts around the brake discs, heat shields around the exhaust, etc. If you still have a rattle after securing every source of the noise that is external to the engine, it must be from within the engine or gearbox.