A well-known conjecture states that a random symmetric n×n matrix with entries in {−1,1} is singular with probability Θ(n22−n). In this paper we prove that the probability of this event is at most exp(−Ω(n)), improving the best known bound of exp(−Ω(n1/4logn)), which was obtained recently by Ferber and Jain. The main new ingredient is an inverse Littlewood-Offord theorem in Zpn that applies under very mild conditions, whose statement is inspired by the method of hypergraph containers.