A creature you're undetected by doesn't know where you are.
Kind
Condition
Group
Detection
When you are undetected by a creature, that creature can't see you at all, has no idea what space you occupy, and can't target you, though you still can be affected by abilities that target an area. When you're undetected by a creature, that creature is off-guard to you.
A creature you're undetected by can guess which square you're in to try targeting you. It must pick a square and attempt an attack. This works like targeting a hidden creature (requiring a DC 11 flat check, as described on page 434), but the flat check and attack roll are rolled in secret by the GM, who doesn't reveal whether the attack missed due to failing the flat check, failing the attack roll, or choosing the wrong square. They can Seek to try to find you, as described on page 417.
Detection conditions
Player Core groups Undetected with Hidden, Observed, Unnoticed.
Source: Pathfinder Player Core, p. 447
Bring Undetected into a Pathfinder 2e game with The DM Screen.