The most common and most likely answer to this crossword clue is the 10 letter word RESISTANCE
I've seen this crossword clue in The Guardian
R
E
S
I
S
T
A
N
C
E
More clues leading to the result RESISTANCE
- Fight on: one’s embedded in position
- Trained in secret as underground opposition
- Opposition of soldiers is evident in attitude
- Stand in as secret is out
- Republican sees I can’t organise opposition
- Rise awkwardly to position of defiance
- Underground movement providing opposition
- Opposition set is getting drunk in Scottish bar
- Insects are developing immunity
- Work in secret as an underground movement
Buddy explains!

The straight part
We know that "immunity" is the straight/definition part of the clue. The straight part is often a synonym or definition, in this case immunity = resistance.The cryptic/wordplay part
In cryptic crossword there's often an wordplay/cryptic part as well.This part involves a more complex hint, such as an anagram, homophone, hidden word, etc.
Sadly, We don't have an explanation for this specific crossword clue yet.
What does RESISTANCE mean?
RESISTANCE noun- The act of resisting, or the capacity to resist.
- A force that tends to oppose motion.
- Electrical resistance.
- An underground organisation engaged in a struggle for liberation from forceful occupation; a resistance movement.