Fungus can imitate signals from our immune system and prevent our body from responding to infection, new research has found.