SENIOR NOTE SECURITY AGREEMENT