Locomotion of C. elegans can serve as a risk indicator in AgNPs-contaminated soil ecosystems. C. elegans-based probabilistic risk assessment framework is developed. Nematode-based biomarkers can detect metal-based NPs-induced toxicity on terrestrial ecosystems.