AMENDED AND RESTATED SECURITY AGREEMENT (Grantor)