Researchers at the University of Florida were collecting environmental DNA, genetic material shed into water, sand, and air, to track wildlife, when they noticed the samples also contained a surprising amount of human DNA.
The team deliberately tested how much human genetic information could be pulled from water, sand, and air samples never intended to capture people, and found human DNA in all of the wildlife samples, detailed enough to reveal the ancestry and disease-linked mutations of the people in the area.
The same technology used to monitor endangered species or track disease outbreaks can, almost as a byproduct, build a genetic profile of whoever happened to be nearby, something the researchers termed human genetic bycatch. Getting prior consent from everyone who shed that DNA would be near impossible, the authors noted. The authors called for new ethical guidelines before the practice becomes routine.

Read the original study
Whitmore et al., Nature Ecology & Evolution, 2023 · doi.org/10.1038/s41559-023-02056-2
Samples meant for turtles carried human secrets too.
Source
- Whitmore, L., McCauley, M., Farrell, J. A., Stammnitz, M. R., Koda, S. A., Mashkour, N., Summers, V., Osborne, T., Whilde, J., & Duffy, D. J. (2023). Inadvertent human genomic bycatch and intentional capture raise beneficial applications and ethical concerns with environmental DNA. Nature Ecology & Evolution, 7(6), 873–888. https://doi.org/10.1038/s41559-023-02056-2