に知られたら

if ... finds out

→ に
phrase Common #5,103
if ... finds out に marks the person who learns or finds out; the thing they learn about is often understood from context.
JA: 親に知られたら困る。
EN: It would be a problem if my parents found out.