CCR-CCD module: upgrade to new security model and bug fix