From Halopedia, the Halo wiki
Hat Trick medal is a Halo 5: Guardians medal awarded when the player gets three sniper rifle headshots in a row.