X-ray scanners are to be installed in two prisons in the North West, described as some of the "most challenging" in the country.
Liverpool and Preston will receive the technology specially developed for the Prison Service.
The "cutting edge" scanners, specially developed for the Prison Service, can produce "instant images from inside the human body" and reveal internally concealed contraband like drugs, phones and weapons, in a level of detail not previously available, according to the Ministry of Justice (MoJ).
Prisons with high volumes of remand prisoners, which the MoJ said pose the "greatest risk of smuggling", are being prioritised.
Earlier this month an inspection report found there had been , previously criticised as having some of the worst conditions ever seen by inspectors, but there were "still too many drugs entering the prison".
Installation will begin in the spring with all scanners anticipated to be in place by the summer.
Around £28 million, out of a £100 million fund to boost security in prisons, will be used to pay for all the scanners which are eventually hoped to be installed in the majority of closed adult male jails.
The contract for providing them has been awarded to company Adani Limited.
It follows the successful use of older models of similar scanners in the 10 Prisons Project to crack down on violence and drug use in other jails.
Aidan Shilson-Thomas, from the think tank Reform, said the plan will "get the ball rolling on stabilising the system" but said the MoJ "must ensure that the prisons have the resources to staff these new measures", adding: "The next step must be to help prisoners struggling with addiction, which in turn will reduce prison violence and re-offending."
Prisons Minister Lucy Frazer said: "New technology is a vital part of our efforts to stop those determined to wreak havoc in our jails.
"These scanners will help to stem the flow of contraband into jails and allow officers to focus on rehabilitation."