As long as someone doesnt know the IP of the given miner you should be "safe" right ?
No. The attack occurred upstream, between the miner and the pool.
Thanks for confirming ckolivas

This is why I & others have been making so much noise about this - it's annoying for everyone - but it's for everyones good that it gets fixed
ASAP.
Are you listening, Bitmain?
Edit: It is also why miners should only buy hardware that uses Open Source software provided by ckolivas - so that it can be checked for any security issues or "strange goings on" by the cgminer devs or anyone else who wishes to do so.
Never buy hardware that uses Closed Source software - there's no way of knowing what it is doing.