Found it. It's Unearthed by Amie Kauffman and Megan Spooner.
When Earth intercepts a message from a long-extinct alien race, it seems like the solution the planet has been waiting for. The Undying's advanced technology has the potential to undo environmental damage and turn lives around, and Gaia, their former home planet, is a treasure trove waiting to be uncovered.
For Jules Addison and his fellow scholars, the discovery of an alien culture offers unprecedented opportunity for study... as long as scavengers like Amelia Radcliffe don't loot everything first. Mia and Jules' different reasons for smuggling themselves onto Gaia put them immediately at odds, but after escaping a dangerous confrontation with other scavvers, they form a fragile alliance.
In order to penetrate the Undying temple and reach the tech and information hidden within, the two must decode the ancient race's secrets and survive their traps. But the more they learn about the Undying, the more their presence in the temple seems to be part of a grand design that could spell the end of the human race...