Most likely a crab of some sort, though thats just a guess
When did you last add any LR or coral frags to your tank? Might give an indication of old this creature is.
If it spends all its time under a rock it may be nocturnal? Try putting some food a few inches away from the rock after lights off. You might be able to get a good look at it.