An intelligent agent approach for security management