crates.io
We found 3 issues in crates.io's email security, HTTPS, website and domain configuration.
Quick answers
- Can someone send fake email pretending to be crates.io?
- Yes, probably. crates.io's DMARC policy is “none” (monitoring only), so spoofed messages are still delivered.
- Does crates.io have DMARC?
- Yes, with the policy p=none.
- Does crates.io have an SPF record?
- Yes: v=spf1 include:mailgun.org ~all
- Does crates.io use DKIM?
- Yes. We found DKIM keys for: k1.
- Who provides email for crates.io?
- Mailgun, based on its mail (MX) records.
- Is crates.io's SSL certificate valid?
- Yes. Issued by GlobalSign nv-sa, valid until 2027-02-16 (76 days left).
- Does crates.io support TLS 1.3?
- Yes.
- Does crates.io still accept outdated TLS 1.0 or 1.1?
- No.
- Does crates.io use HSTS?
- Yes.
- Is DNSSEC enabled for crates.io?
- No.
How crates.io compares
Scores higher than 59% of the 10,000 most popular websites.
Its issues, and how common they are among popular sites
"Uncommon" means fewer than 1 in 10 popular sites have this problem. See the full research.
Email security A
- Mail provider
- Mailgun
- SPF
v=spf1 include:mailgun.org ~all- DMARC
v=DMARC1; p=none; rua=mailto:[email protected]; fo=1; ruf=mailto:[email protected]
DMARC is in monitoring-only mode (p=none) medium
p=none collects reports but doesn't stop spoofed email: forged messages from crates.io are still delivered. It's the right first step, but it isn't protection.
Once your reports show all legitimate mail passing, change the policy to p=quarantine, then p=reject.
DKIM uses an older 1024-bit key (selector k1) low
1024-bit keys still work but are below current recommendations. 2048-bit is the standard today.
When convenient, rotate to a 2048-bit key in your email provider's admin console.
MTA-STS not enabled note
Without MTA-STS, an attacker on the network path could downgrade mail delivery to crates.io to unencrypted. This is an advanced, optional hardening step.
Publish an MTA-STS policy file at https://mta-sts.crates.io/.well-known/mta-sts.txt and a TXT record at _mta-sts.crates.io.
- SPF is set up (~all soft fail)
- DKIM signing keys found (k1)
HTTPS & certificate A
- Issued by
- GlobalSign nv-sa
- Expires
- 2027-02-16 (76 days)
- Checked
- crates.io and www.crates.io
- Protocol
- TLSv1.3
- Key
- RSA 2048-bit
- Valid, trusted certificate (issued by GlobalSign nv-sa)
- Supports TLS 1.3
- Outdated TLS 1.0 and 1.1 are switched off
- Only strong encryption ciphers accepted
Website security headers A
No Content Security Policy low
A CSP limits which scripts a page can run, which reduces the damage from cross-site scripting (XSS) attacks and malicious third-party code.
Start with a report-only policy (Content-Security-Policy-Report-Only) to see what would break, then enforce it.
No Referrer-Policy header note
Modern browsers default to a reasonable policy, but setting one explicitly controls how much of the site's page addresses are shared with other sites when visitors click a link.
Send: Referrer-Policy: strict-origin-when-cross-origin
- HTTP redirects to HTTPS
- HSTS enabled
- Protected against clickjacking
- X-Content-Type-Options: nosniff set
Domain & DNS A
- Nameservers
- ns-1064.awsdns-05.org, ns-1543.awsdns-00.co.uk, ns-217.awsdns-27.com, ns-817.awsdns-38.net
DNSSEC isn't enabled note
DNSSEC signs a domain's DNS records so attackers can't forge them. Many large sites don't use it yet, so it doesn't affect the grade, but it's a worthwhile hardening step.
Many DNS providers can enable it with one click. If your registrar is different from your DNS provider, you'll also add a DS record at the registrar.
No CAA record note
A CAA record lists which certificate authorities may issue certificates for crates.io. Without one, any of them can. It's optional hardening and doesn't affect the grade.
Add a CAA record for the authority you use, e.g. 0 issue "letsencrypt.org". If you use a CDN, check which authorities it needs first.