This thesis bases on CORBA standard and CORBA Security Reference Model, studies the security service of middleware, summarizes the function of a secure ORB, and explains that message protection and authentication be the basis of the security architecture.