New York lost to an American League West opponent for the first time in eight games this season.
Justin Duchscherer (6-4) backed up the early offensive outburst by allowing New York a run on five hits over seven innings. He has won all five of his home starts this year and his performance gave Oakland plenty of breathing room to survive a three-run Yankees ninth.
Bobby Crosby doubled home the first run of the inning and Cust singled home both Hannahan and Crosby.
Rasner (3-4) was eventually charged with seven runs on nine hits in 3 2/3 innings.