You will need to cut a square of drywall at the very top of your wall in order to give you access to drill through the top plate of your wall.
Run wires not accessible from outside to attic.
Yes this should be corrected and it would be good to have the wiring and all the circuit connections inspected as well.
Running wires inside rigid conduit.
One method is to run individual wires in a conduit system such as intermediate conduit rigid conduit or schedule 40 or 80 vinyl conduit.
If the wires are within 7 of the attic access hole or along any attic flooring you ll need.
Don t forget to include the vertical distance up to the attic and back down again.
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 second method is to run cable.
Raul no this is not a standard practice and is most likely the result of improper installation of electrical attic wiring.
Make the opening about 12 x 12 to give you room to get the drill in.
The attic wiring should be protected and secured to ceiling joists or other wood structural supports.
The original plan was to run security camera wires up through soffit into attic down into basement but that no longer is an option.
To run the wires inside rigid conduit you ll need a hacksaw a pipe bender capable of bending 1 2 in.
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.
Rigid conduit with an outside diameter of 3 4 in and a fish tape long enough to reach through the buried pipe.
Step 2 find your attic access.
If sheltered from direct.
Measure the distance between the two sites you want to run wire between and make sure you will have enough wire.
Cut the opening in the ceiling for your new electrical box.