US import prices rose 0.4% in July after a downwardly revised 0.1% decline in June, driven by higher consumer goods costs, in the latest sign that inflation could accelerate due to tariffs imposed by the Trump administration.