A sleeper agent is a spy who is placed in a target country or organization not to undertake an immediate mission but to act as a potential asset if activated. Even if unactivated, the "sleeper agent" is still an asset and is still
playing an active role in sedition, espionage or possibly treason[a] by virtue of agreeing to act if activated.
https://en.wikipedia.org/wiki/Sleeper_agent