We report a characterization of the spatial resolution of terahertz (THz) apertureless near-field imaging of metal lines deeply buried beneath a silicon dioxide layer. We find a good resolution for edge contrast, even in the case where the capping layer is considerably thicker than the tip radius. We find that contrast and resolution depend on demodulation frequency, thickness of the capping layer, and radius of the tip. Furthermore, we observe a distinct dependence of the contrast on the direction of the incoming radiation, in both experiments and simulations. Characterization of buried features can be a valuable tool in non-contact failure analysis of semiconductor devices.