Resilience in chaos