Fred scored the only goal of the game as Brazil completed their World Cup preparations with a hard-fought 1-0 win over Serbia.
The Selecao were struggling to break down their European opponents when, in the 58th minute, the forward expertly controlled a long ball forward from Thiago Silva before prodding home.
Brazil had chances to add to their tally but were ultimately forced to settle for a narrow win.
Having not been tested by Panama in midweek, the World Cup hosts were at full-strength for the clash against Ljubinko Drulovic's side.
They were restrained for large spells, however, and coach Luiz Felipe Scolari will be aware improvement is required despite Fred's well-taken winner.
Brazil's victory may do little to fill an expectant nation with great confidence. However, with Neymar getting almost 80 minutes of action on his road to full fitness and Fred scoring his first in Brazil colours since the Confederations Cup, there are reasons for the hosts to be optimistic.
After a lively opening from both sides, Aleksandar Kolarov threatened first when he struck an effort wide of Julio Cesar's left-hand post after nine minutes.
Neymar then almost benefited from a block that fortuitously landed in his path - only for Ivanovic to produce a well-timed last-ditch tackle.
A combination of tenacious and robust defending helped keep Brazil's forwards well shackled, although Fred was next to threaten - his dipping strike veering off target 24 minutes in.
David Luiz was forced into a hurried clearance following Kolarov's fierce delivery before Aleksandar Mitrovic wasted the best chance of the half, heading wide with the goal at his mercy.
Luiz and Thiago Silva, who will team up at Paris Saint-Germain from next season, then got mixed up close to half-time, but an offside flag rescued Brazil as Lazar Markovic converted.
Scolari swapped Oscar for Willian at the break, presumably in an effort to shake things up, but Brazil still looked somewhat out of sorts.
Indeed, Dusan Tadic perhaps could have opened the scoring for Serbia had he gambled on reaching a cross lofted into the hosts' box.
Fred subsequently ensured first blood went to Brazil, the striker cleverly chesting Thiago Silva's delivery to take Branislav Ivanovic out of the game and then prodding the ball past Vladimir Stojkovic - despite having stumbled before doing so.
Neymar, lively but far from his dangerous best, then flashed an effort over the crossbar as his side sought to make the scoreline more emphatic.
There were to be no more goals, although Serbia's Milos Jojic and Brazil forward Jo hit the woodwork in the closing stages.
Brazil open their World Cup campaign against Croatia on June 12 and will be hopeful of a more fluent display.
|Coach: Luiz Felipe Scolari|
for Oscar 46'
for Paulinho 65'
for Dani Alves 72'
for Fred 75'
for Marcelo 76'
for Neymar 81'
|UAE v Iraq: Rare podium finish on offer|
|Ryan spurred on by Australia´s 2011 heartbreak|
|Montella will not sell Cuadrado cheap|
|Mali, Guinea furious with tie-breaking procedure|
|Luis Enrique defends Neymar´s behaviour|
|Chile 3 USA 2: Gonzalez´s brace extends Americans´ pain|
|Gabi: Referee lacked personality|
|Franjic cleared of serious injury|
|Our progression was deserved - Pochettino|
|Ivory Coast´s tournament starts now - Renard|
|Allegri rejects Juve criticism|
|Atletico´s Arda Turan escapes red card after throwing boot at assistant referee|
|Atletico Madrid 2 Barcelona 3 (agg 2-4): Neymar double secures semi-final spot|
|Parma 0 Juventus 1: Morata late show wins it for visitors|
|Sheffield United 2 Tottenham 2 (agg 2-3): Pochettino books Wembley final|
|Ecuador dismiss Vizuete|
|Championship Preview: Middlesbrough out to continue run, Bournemouth seek response|
|Guinea 1 Mali 1: Lots to decide Group D runners-up|
|Cameroon 0 Ivory Coast 1: Gradel strike sends Renard´s men through|
|Lots to be drawn to decide AFCON qualifiers|
|Eredivisie Preview: De Boer warning for Ajax, leaders PSV host Willem II|
|Bundesliga Preview: Leaders Bayern and Wolfsburg kick off Ruckrunde|
|Howard boost for Everton|
|Ligue 1 Preview: Jardim plays down Monaco title hopes ahead of Lyon showdown|
|Costa charged by FA for alleged Can stamp|
|O´Keefe joins Cardiff|
|Dons teenager Alli in demand|
|Gabriel seals Arsenal switch|
|Wolfsburg v Bayern Munich: Guardiola eyes ´big step´ to Bundesliga title|
|Paris Saint-Germain v Rennes: Montanier seeks another upset in French capital|
|Martinez rules out panic buys|
|Gilardino targets Fiorentina goals|
|Milan agree Bocchetti loan|
|League Two Preview: Cambridge and Luton prepare to renew rivalries|
|Ronaldo hit with two-match ban|
|West Brom complete McManaman deal|
|Sullivan hits back in Sakho row|
|Richards: Cuadrado suited to Premier League|
|Figo to challenge for FIFA presidency|
|Inzaghi out to freshen up struggling Milan|
|Wigan agree a fee for Mckay|
|Carver eyes strong finish|
|Bowen cools talk of Stoke swoop for Sandro and Traore|
|Lazio-bound Morrison lands in Rome|
|Mourinho fined £25k for ´campaign´ claims|
|Mainz bring in Castillo|
|Villa: Lambert will not be sacked|
|Monk hopeful of adding new faces|
|Sainsbury ready to replace Franjic|
|Beckenbauer hopeful of Guardiola stay|
|Mourinho hits back at Costa critics|
|Rodriguez grateful for ´fundamental´ Ronaldo support|
|La Liga Preview: Real want revenge against Socieded|
|No Dallas move for Essien|
|Bale rubbishes United link, Ronaldo rift|
|Sahin in ´good shape´ for Bundesliga resumption|
|Rodgers slams Costa´s stamp collection|
|Under-fire Inzaghi urges patience|
|Rodgers: Courtois saved Chelsea|
|Mashaba wants lessons to be learnt after AFCON exit|
|Mourinho refuses to wade into Costa incidents after Chelsea win|
|Football League Review: Bent double sends Derby second, Rotherham triumph|
|Chelsea 1 Liverpool 0 (aet, agg 2-1): Ivanovic settles action-packed League Cup semi-final|
|Milan 0 Lazio 1: Inzaghi future plunged into further doubt|
|Neymar dreaming of ending Brazil´s home hoodoo|
|South Africa 1 Ghana 2: Late Ayew winner seals qualification|
|Senegal 0 Algeria 2: Mahrez and Bentaleb dump Senegal out|
|Bocchetti poised to join Milan on loan|
|De Rossi suffers calf injury|
|Montano accuses Oldham of double standards after Evans saga|
|Bojan out for the season with ruptured cruciate|
|Cameroon v Ivory Coast: Renard defends Yaya Toure|
|Yanga-Mbiwa makes Roma move permanent|
|Guinea v Mali: Quarter-final berth on offer in Mongomo|
|Thohir: Inter not reliant on European football|
|Bremen land Vestergaard|
|Allegri refuses to rule out Cassano move|
|Mexes handed four-game ban after Lazio dismissal|
|Joyce reveals Valdes´ inspirational team-talk|
|CAF announces AFCON venue switches|
|Alcacer commits future to Valencia|
|Postecoglou calls for Aussie ´energy´|
|Everton confirm Eto´o departure to Sampdoria|
|Pochettino to stick with Vorm despite cup error|
|Barcelona are not favourites against Atletico, says Luis Enrique|
|Allegri wary of Parma backlash in Coppa Italia|
|Zidane urges Real to tie Ancelotti down|
|FIFPro: Transfer system failing football|
|Anderlecht condemn Standard´s Defour banner|
|Australia 2 UAE 0: Socceroos ease into home final|
|Barca overhaul youth system|
|FIFPro demands clubs respect contractual obligations|
|Mahmoud targeting World Cup place with Iraq|
|Fabregas wants Chelsea to show winning mentality|
|Rangers borrow £10m from Ashley´s Sports Direct|
|Lyon face anxious wait over Lacazette|
|Undermanned Lazio recall Perea|
|Ki wants South Korea to prove their superiority|
|Ghana´s Gyan wary of South Africa|
|Mashaba urges South Africa to attack|
|Benitez: Napoli deserved to win|
|Pacos de Ferreira 1 Benfica 0: Leaders fail from the spot|
|Serie A Review: Higuain at the double in controversial Napoli win, Udinese see off Empoli|