amended and restated SECURITY AGREEMENT