DataDog / guarddog

:snake: :mag: GuardDog is a CLI tool to Identify malicious PyPI and npm packages
https://securitylabs.datadoghq.com/articles/guarddog-identify-malicious-pypi-packages/
Apache License 2.0
590 stars 43 forks source link

Fixing the timezone in dns lookups #385

Closed sobregosodd closed 3 months ago

sobregosodd commented 3 months ago

closes https://github.com/DataDog/guarddog/issues/387

The potentially_compromised_email_domain rule was producing results when comparing registration dates for some domains such as gmail.com

This PR forces to use timezone awareness to all obtained dates in order to compare them