Adjusting security configuration