Underground Undercover

Underground Undercover is a quest and achievement/trophy in Fallout 4.

Quick walkthrough
Infiltrate The Institute and meet with The Patriot.

Quest stages

 * 1) Talk with Tinker Tom
 * 2) Upload Encrypted message on any institute terminal
 * 3) Read Patriot's reply
 * 4) Meet Patriot
 * 5) Follow Liam
 * 6) Talk to Liam
 * 7) Talk to Desdemona
 * 8) Enter report on terminal
 * 9) Talk with PAM
 * 10) Get password for code defender
 * 11) Return to Desdemona
 * 12) Meet with Z1-14
 * 13) Give password to Liam Binet
 * 14) Give Z1-14 a day
 * 15) (Optional) Deposit weapons for rebels
 * 16) Kill tunnel guards
 * 17) Return to Z1-14
 * 18) Continue working for father
 * 19) Complete the quest "Powering Up" for father
 * 20) Walk to your room
 * 21) Wait for a synth to stop you while walking
 * 22) Meet with Z1-14
 * 23) Warn Desdemona

Bugs

 * It is possible that Desdemona will not initiate dialogue when trying to warn her about the brotherhood.
 * This may be caused by Glory being dead. To fix go to Railroad HQ and use recycleactor 000508EE and 000508EE.moveto player in the console. There haven't been any reports of success with this fix though.
 * Try to load any save that you didn't kill any Brotherhood of Steel in their base (The Prydwen, Boston Airport and Cambridge Police Station)
 * Since the only step left in the quest is to warn Desdemona, you could forego the conversation completely and use the console command setstage rr201 1100 which completes the quest as though you completed the conversation with her.
 * This bug can also occur if the player has not killed any members of the Brotherhood of Steel in The Prydwen, Boston Airport, or the Cambridge Police Station, or if Glory is still alive.