The yellow stuff in the attic is most likely either insulation or mold. If it's fluffy and looks like it's been sprayed on, it's probably insulation. If it's slimy and gross, it's probably mold.
Mold can be dangerous, so if you think that's what the yellow stuff is, you should call a professional to come take a look. If it's just insulation, there's no need to worry!