What size nails should be used to install attic vents?

In general, the nail used to fasten attic exhaust vents should penetrate the underside of the roof deck. 

Always follow the written Installation Instructions for the specific vent being installed. In general, the nail used should penetrate the underside of the roof deck.