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