IDF soldiers confiscated close to a dozen pipe bombs at the Salem crossing near Jenin on Sunday, thwarting what might have been a major terrorist attack, probably against a nearby military court.Four Palestinians were arrested at the crossing and were found to be in possession of 11 pipe bombs, a homemade pistol and a commando knife. They were transferred to the Shin Bet (Israel Security Agency) for interrogation.RELATED:December sees significant rise in terror incidentsW. Bank: Israeli car shot in suspected terror attackThe four were last in line to enter the Samaria Military Court when one of the soldiers stationed at the crossing, from the Military Police, spotted wires protruding from under his jacket.The soldiers shut down the crossing and ordered the Palestinian to undress and discovered three pipe bombs.Another eight were discovered in his bag together with a homemade pistol, several bullets and a commando knife.“I don’t remember such a large cache of bombs caught on one person,” Lt.-Col. Erez, commander of the Haruv Battalion, said. The bombs were then destroyed by Border Police sappers.Three other Palestinians who were in line with the man carrying the weapons were also detained. The IDF suspects the attack was planned against the Samaria Military Court, since the line the Palestinians were standing in only goes into the court and back out. The thwarted attack comes a week after the IDF captured a number of weapons in a home in Kafr Salem, near Nablus, including an M-16 and an Uzi and after the Shin Bet recorded an increase in the number of attacks in December in the West Bank.