Security is an important obstacle to the application of mobile agent technology. After analyzing the security problems and current status of research work, several methods are proposed to solve some of the problems, and are implemented in the mobile agent system Mogent. These methods can prevent or solve some of the security problems.