Security Of Interconnected Stochastic Dynamical Systems