Extensions of zero-dimensional dynamical systems and hyperbolic attractors