The immigration officer makes the decision as to whether certain indicators have been triggered, thereby requiring that the application be referred to CBSA. CBSA, if they believe there's a national security admissibility issue, will then refer the file to CSIS. Then CSIS undertakes the analysis as quickly as possible.
We will frequently make a recommendation in terms of whether that individual would be inadmissible to Canada on national security grounds, but ultimately the decision about admissibility is made by IRCC.