We propose a framework for stress testing the resilience of a financial network to external shocks affecting balance sheets. Whereas previous studies of contagion effects in financial networks have relied on large scale simulations, our approach uses a simple analytical criterion for resilience...