the only such finite groups are cyclic of prime order.
Proof: Let $G$ be a finite group such that every nontrivial subgroup is self-normalizing. Let $p$ be a prime and $P$ be a $p$-Sylow subgroup, let $x \in Z(P)$ of order $p$, then $P$ normalizes (even centralizes) $x$, so $P \supset \langle x\rangle = N_G(\langle x \rangle) \supset P$, thus $P=\langle x \rangle$. Thus every $p$-Sylow subgroup of $G$ is cyclic of prime order. This implies that the order of $G$ is square-free, which implies that $G$ is supersolvable. But the condition also implies that $G$ is simple, so solvable+simple gets…