Definitely doesn't look like mold. However, I can't determine what it could be from the picture. If it's an inner wall in a permanently heated house, it doesn't matter. Just cover it up. Most likely, it's old remnants from when the beam was exposed in an unheated space. Just like the weathered wood and woodborer holes.