Nobody patches the vulnerability  in this case, fixes the broken chains that, repaired, would allow the drawbridge to be raised  but every time someone notices that a pack of enemy soldiers in unrecognized uniforms has infiltrated the castle and started killing people, descriptions matching these new uniforms are circulated to the guards.