The invention belongs to the field of oil gas safety engineering, and particularly relates to a device and method for monitoring natural gas pipeline leakage on line in real time through sensing cables. The method is a novel method for monitoring and positioning natural gas pipeline leakage through the sensing cables at present, and can be used for monitoring and positioning of other hydrocarbon medium pipeline leakage. The sensing cables 5, a resistance detector 1, a cable connector 4, a common cable 3, semi-permeable membrane detection tubes 6 and a front probe 2 are arranged, wherein the resistance detector and the common cable are connected, the common cable and the front probe are connected through the cable connector in an alternating mode, the front probe comprises a plurality of the sensing cables and a plurality of the semi-permeable membrane detection tubes, and the sensing cables are arranged in the semi-permeable membrane detection tubes, so that the aims of online real-time monitoring and positioning of natural gas pipeline leakage are effectively achieved. Accordingly, the device and method have the advantages of being simple in structure, high in flexibility, free of error alarms, long in use period and convenient to overhaul and replace.