The lone pair on the nitrogen of aniline attacks the carbon of the carbonyl in acetic anhydride in the first step. That carbon is annotated to show that it is electron deficient.
As for what "type" I'm not sure what you mean. Its a nucleophile attacking an electrophile, like all organic chemistry is. Its not usual to categorize carbonyl attacks as SN1 or SN2 or anything like that.