It's certainly the case that ASIO did not issue an adverse security assessment at the time of his (visa) application,
The reason he's in custody is because his visa has been cancelled. The reason his visa has been cancelled is because he's received an adverse security assessment,