Mastabas, Pyramids and rock-cut tombs (the big three Ancient Egyptian tomb types) all employed tricks and countermeasures to stop grave robbers. They used obfuscation, hiding burial chambers behind blind corridors. The rock-cut tombs are the ultimate expression of obfuscation, where the entire tomb is hidden away.