The interaction between the quantum vacuum and a weak gravitational field is calculated for the vacuum fields of quantum electrodynamics. The result shows that the vacuum state is modified by the gravitational field, giving rise to a nonzero interaction energy. This suggests a model that fits in the main properties of the hypothetical dark matter in galactic haloes.