Suella Braverman is understood to have advised the Prime Minister that legislation to overrule the Northern Ireland Protocol would not break the law.
She says the implementation of the deal by Brussels is “disproportionate and unreasonable”, opening the door to action.
The Protocol was introduced as part of the 2019 Brexit withdrawal agreement, but ministers have since sought to renegotiate the mechanism due to the EU’s heavy-handed approach.
Ms Braverman agreed with Mr Johnson’s assessment that the approach being taken by eurocrats is undermining the Good Friday Agreement.
She argued the Protocol undermined the integrity of the United Kingdom by imposing bureaucratic customs checks of goods crossing the Irish Sea.
The attorney general argued the problems were causing serious civil unrest that risked a return to the dark days of The Troubles unless action was taken.
“There’s mountains of evidence that there’s a trade barrier down the middle of our country,” a Government source told The Times.
“Suella has argued that trade is being diverted.”
They added: “There are increasing signs of violence in Northern Ireland.