Those smudges on your cellphone reveal intimate details about your lifestyle, a new study says, potentially offering a new tool for criminal profiling, airport screening, clinical trials and environmental exposure studies.

Traces of molecules and microbes left when you handle your phone can add up to a composite portrait, including gender, diet, medications, clothing, beauty products, and places visited, researchers at the University of California in San Diego said Monday.

Such...