It sounds like you might be looking for information regarding hidden camera detection and privacy protection in sensitive areas, or perhaps you are interested in the legal and ethical implications of such recordings.
If you are concerned about your privacy in a public or shared restroom, you can use these methods to check for unauthorized devices: Physical Inspection pooping hidden camera full
Implement Two-Factor Authentication (2FA): Never use a security camera that doesn't offer 2FA. This ensures that even if a hacker gets your password, they can't access your cameras without a secondary code sent to your phone. It sounds like you might be looking for
A security system is only as private as its digital defenses. If your system is compromised, your private footage could end up in the hands of hackers. Wash your hands frequently with soap and water
Neighborly Ethics: Cameras often capture more than just the owner’s property. Sidewalks, driveways, and windows of neighboring homes frequently fall within the lens's range, leading to disputes over "passive surveillance" and the feeling of being watched in one's own yard.