Attack and Agility both belong to the Pilot, not the Ship. See YT-1300.