Making a rock "safe" can't really happen so to speak from my knowledge. If it just needs to be cleaned from parasites or chemicals then you can. What kind of rock is it? Can you upload a picture? Most coral reef type of rocks will raise the ph in your water and you can test it by putting a drop of vinegar on it. If it bubbles then you know it will raise the ph.
To clean it you can boil some really hot hot water and pour over it while cleaning with a brush to get anything off that may be on it.