Security forces in Jammu and Kashmir detained suspected militants in overnight raids in the Pir Panjal range following intelligence inputs on planned attacks.