Security agencies have uncovered a plot by ISI-backed micro modules to carry out attacks at railway stations across India.