Vettel, who was 4th in the morning, held on to end up the best non-Mercedes in third overall, six tenths off the pace and three tenths up on Fernando Alonso.
McLaren driver Kevin Magnussen was fifth fastest ahead of Ferrari driver Kimi Raikkonen, with Ricciardo sliding to seventh.
Tire struggles tainted Kimi Raikkonen's Friday practice sessions at the Hungarian Grand Prix but the Finn is hoping he can solve his issues using the data Ferrari gathered.
Raikkonen was happy with the soft tire and set the sixth fastest time, but said he struggled on the mediums, which are likely to be the tire drivers spend least time on during Sunday's race.
"In the afternoon, I went out for a second run on the medium tires, because the behavior of this compound seemed worse as the temperature went up and that affected the handling of the car, while on the soft I had no problems," he said.
"In the second part of the session I did a race simulation with both compounds: unfortunately when I fitted the mediums I had a problem with the left rear and I had to pit earlier than planned. The telemetry didn't show any problem on the car, so I hope that the data will point us in the right direction for the next two days."
Engineering director Pat Fry is not expecting Ferrari to find a big step forward this weekend.
The performance level over short and long runs are similar to those seen in recent races and it looks like being a very tough weekend," he said. "Overtaking opportunities are strictly limited and so, more than elsewhere, you need to get the best possible result in qualifying."
|3||Sebastian Vettel||Red Bull-Renault||1m25.111s||+0.629s||33|
|7||Daniel Ricciardo||Red Bull-Renault||1m25.983s||+1.501s||29|
|11||Daniil Kvyat||Toro Rosso-Renault||1m26.689s||+2.207s||42|
|12||Jean-Eric Vergne||Toro Rosso-Renault||1m26.703s||+2.221s||37|
|13||Nico Hulkenberg||Force India-Mercedes||1m26.789s||+2.307s||39|
|15||Sergio Perez||Force India-Mercedes||1m27.013s||+2.531s||39|