Attack handling in threads