Whenever i do attic wiring i remove the insulation and staple it to the ceiling joist.
Disturb attic insulation to run wire.
Familiarize yourself with the footing situation.
If there is access above the light in an attic or kneewall space you can remove the wire from the existing fixture box and install it in a junction box.
The following links will assist you with your electrical question.
Put on safety goggles gloves and a mask to protect yourself from drywall debris and the fiberglass insulation then cut a hole in the drywall with a.
The attic wiring should be protected and secured to ceiling joists or other wood structural supports.
How id do it if you put your cables to the edge where the apex of the roof meet the ceiling so you basically end up with your wireing loom at the edge of your attic then clip your cables along the ceiling joists 50mm from the plaster board then its clear of insulation and if you need to lay a floor you can but do try to avoide drilling hole through the joists as you will not meet the.
Yes this should be corrected and it would be good to have the wiring and all the circuit connections inspected as well.
Climb through the attic access using a ladder if necessary and look into the attic space.
I was also under the impression that if wiring is in an attic space that it may need to be derated because it can get very hot up there.
Trace the outline of the box onto the wall.
You can then splice on a new piece of wire make sure it is the same wire gauge and run the new piece from the junction box back to the fixture box.
An attic that is accessible which is defined by the nec as having a permanently installed stair or ladder in place must have protection for any cables that run across the top of the attic floor joists or within 7 feet where they run across the face of rafters or studs.