Neck cord to which a security badge is often attached (7)
I believe the answer is:
lanyard
(Other definitions for lanyard that I've seen before include "Rope on ship's rigging" , "Dawdler" , "Line for extending or fastening ship's rigging" , "Part of rigging" , "Cord worn round neck" .)