Could be a number of things - the crash bars sound like agood starting point. Also check your tool kit under seat - the front spring spanner etc loves to rattle around... cut an old mouse pad to fit inside lid and glue in place. Next check your bash plate - could have lost a bolt and loves to rattle and vibrate. Also has the oil been changed recently? I once left my oil filter wrench in place as it was stuck, intending to tap it loose later. Refitted the bash plate etc and could not work out where the rattle was from until I located the wrench trapped under bash plate and jiggling around! Same thing happened tp a mate when he got his bike back from the dealer with a 'complimentary' oil filter wrench...
Anotrher thing is to check cebtre and side stands - the rubber grommets that cushion in up position... if missing...rattle.
Also remember that often a rattle may sound as if it is coming from one spot but is in fact resonating and travelling from another. Good luck and let us know.