I rather think you are.
I have to agree with Pete.
Fix the box, socket and cable, all of which designed for fixed installation, to the fabric of the building. If you think the socket will get wet, re-site it elsewhere or replace it with a suitably rated socket.
You even suggested replacing...