I've never seen anything close to that thing, not sure if it's a nudibranch of some kind or something else. But I will say that I wouldn't let it stay in my tank, nor my DT.
Where did your rock come from, maybe that might give a direction to look into.