nic.lk
We found 5 issues, 2 of them serious in nic.lk's email security, HTTPS, website and domain configuration.
Quick answers
- Can someone send fake email pretending to be nic.lk?
- Yes, probably. nic.lk has no valid DMARC policy, so many mail servers will deliver email that fakes its address.
- Does nic.lk have DMARC?
- No.
- Does nic.lk have an SPF record?
- Yes: v=spf1 a:mx1.nic.lk a:mx2.nic.lk a:mx1.domains.lk a:mx2domains.lk a:mx3.domains.lk a:smtp.nic.lk a:smtp.mrt.ac.lk ip4:203.94.66.130 ip4:203.143.19.4 ip6:2402:d000:100c::130 ~all
- Does nic.lk use DKIM?
- We didn't find DKIM keys at common locations (it may still use DKIM under another name).
- Is nic.lk's SSL certificate valid?
- No. Browsers will show a security warning (see the HTTPS section below).
- Does nic.lk support TLS 1.3?
- Yes.
- Does nic.lk still accept outdated TLS 1.0 or 1.1?
- Yes, it accepts TLS 1.1.
- Does nic.lk use HSTS?
- Yes.
- Is DNSSEC enabled for nic.lk?
- No.
How nic.lk compares
Scores higher than 9% 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 B
- Mail provider
- Unknown / self-hosted
- SPF
v=spf1 a:mx1.nic.lk a:mx2.nic.lk a:mx1.domains.lk a:mx2domains.lk a:mx3.domains.lk a:smtp.nic.lk a:smtp.mrt.ac.lk ip4:203.94.66.130 ip4:203.143.19.4 ip6:2402:d000:100c::130 ~all
No DMARC record high
DMARC tells receiving mail servers what to do with email that fails SPF/DKIM checks, and can send the domain's owner reports about who is sending as nic.lk. Without it, fake email that appears to come from nic.lk (spoofing) is often delivered. Gmail and Yahoo require DMARC for bulk senders.
Start in monitoring mode with a TXT record at _dmarc.nic.lk: v=DMARC1; p=none; rua=mailto:[email protected] (Create that mailbox first, or use a DMARC reporting service's address.) Review the reports for a few weeks, then move to p=quarantine and finally p=reject.
No DKIM keys found at common locations note
DKIM keys live at names only the sender knows, so we can only check common ones. nic.lk may still use DKIM. If it doesn't, its mail is easier to spoof and more likely to be filtered.
Turn on DKIM signing in your email provider's admin console and publish the key it gives you.
MTA-STS not enabled note
Without MTA-STS, an attacker on the network path could downgrade mail delivery to nic.lk to unencrypted. This is an advanced, optional hardening step.
Publish an MTA-STS policy file at https://mta-sts.nic.lk/.well-known/mta-sts.txt and a TXT record at _mta-sts.nic.lk.
- SPF is set up (~all soft fail)
HTTPS & certificate C
- Issued by
- Sectigo Limited
- Expires
- 2027-01-22 (52 days)
- Checked
- nic.lk and www.nic.lk
- Protocol
- TLSv1.3
- Key
- RSA 4096-bit
Certificate doesn't match nic.lk high
The certificate was issued for a different name, so browsers show a security warning.
Issue a certificate that covers both nic.lk and www.nic.lk.
Still accepts outdated TLS 1.1 medium
Modern browsers use TLS 1.2 or 1.3, but this server still agrees to connect with TLS 1.1. These old versions have known weaknesses; TLS 1.0 isn't allowed for card payments under PCI DSS, and both are kept alive only for very old devices.
Set the minimum TLS version to 1.2. On a CDN or hosting dashboard, look for a 'Minimum TLS version' setting (usually under SSL/TLS). On nginx: ssl_protocols TLSv1.2 TLSv1.3; On Apache: SSLProtocol -all +TLSv1.2 +TLSv1.3
- Supports TLS 1.3
- 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.
Missing X-Content-Type-Options: nosniff low
Without it, browsers may guess file types, which can let an uploaded file be run as a script.
Send the header: X-Content-Type-Options: nosniff
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
- HSTS enabled
- Protected against clickjacking
Domain & DNS A
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 nic.lk. 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.
Only 0 nameserver note
If that one DNS server goes down, the domain's website and email become unreachable.
Your DNS provider should list at least two nameservers; add all of them at your registrar.