Mould under Windows?

I was clearing out our attic room today when I spotted this under the window (we rarely go into the room so I'm not sure how long it's been there)

Is this mould? What do I do and is it dangerous? I have a 2 year old and don't want her to get sick 😔