Potential dangers of humanoid robots

Humanoid robots are devices that could be used to improve our daily lives. But could they also be used for surveillance?