Gfci protection is required for 125 volt to 250 volt receptacles supplied by single phase branch circuits rated 150 volts or less to the ground.
Do receptacles in the attic have to be gfci.
Where gfcis are required.
Gfci receptacles are required in bathrooms garages crawl spaces basements laundry rooms and areas where a water source is present.
Gfci protection can be provided by a gfci receptacle one receptacle will protect others downstream in the circuit and the other protected receptacles should be marked as gfci protected a gfci circuit breaker in the electric panel or a gfci dead front often used for indoor spa tubs and mounted on the wall in the bathroom or.
Gfci protection is designed to prevent the shocks that might occur when a ground fault occurs and it can be provided by special gfci outlet receptacles or by a gfci circuit breaker that protects the entire circuit.
To begin with though there is no code violation involved with having a receptacle in your attic space.
Chapter 2 of the national electrical code nec does not specifically exclude outlets.
Gfci protection shall be provided for all 15a and 20a 125v single phase receptacles in dwelling unit unfinished portions or areas of basements not intended as habitable rooms.