Realistic QKD system hacking and security