EXHIBIT 10.40 SECURITY AGREEMENT dated as of November 20, 1998