🌐 Distinguishing Surface Web, Deep Web & Dark Web Overlays
In Cyber Threat Intelligence (CTI), accurate layer taxonomy prevents analytical confusion. The Surface Web is publicly indexed via standard DNS and HTTP/HTTPS, the Deep Web includes unindexed clearnet resources behind logins, queries, or crawler directives, and the Dark Web consists of encrypted overlay networks (such as Tor, I2P, and Freenet) requiring specialized routing software.
Three-Tier Web Architecture Model
Compare discoverability, transport protocols, and name resolution across the Surface Web, Deep Web, and Darknet overlays.
Figure 1.1: Logical comparison of Surface Web, Deep Web, and Darknet overlay tiers.
1. Example 1: Resolving Surface Web DNS & HTTP Status
Verify standard ICANN DNS resolution and public HTTPS reachability for a Surface Web domain.
Bash / CLI (surface_check.sh)
dig +short nikita-infotech.com A && curl -sI -o /dev/null -w "HTTP Status: %{http_code}
" https://nikita-infotech.com/index.html
Output:
104.21.48.112
172.67.189.204
HTTP Status: 200
2. Example 2: Inspecting robots.txt Crawler Directives
Check
robots.txt rules that instruct compliant search engine spiders not to index specific Deep Web paths.
HTTP / robots.txt (inspect_robots.sh)
cat << 'EOF'
User-agent: *
Disallow: /admin/
Disallow: /internal-portal/
Disallow: /api/private/
EOF
Output:
User-agent: *
Disallow: /admin/
Disallow: /internal-portal/
Disallow: /api/private/
3. Example 3: Checking X-Robots-Tag Indexing Headers
Inspect HTTP response headers for
noindex directives that keep sensitive portals or staging pages out of search indexes.
Bash / CLI (check_noindex_header.sh)
curl -sI https://portal.example-corp.com/dashboard | grep -iE "^(HTTP/|x-robots-tag:)"
Output:
HTTP/2 401
x-robots-tag: noindex, nofollow, noarchive
4. Example 4: Detecting Authentication Walls on Deep Web Portals
Distinguish public Surface Web pages from authenticated Deep Web endpoints by inspecting unauthenticated HTTP response codes.
Python (auth_wall_probe.py)
endpoints = [
("https://example-corp.com/about", 200),
("https://sso.example-corp.com/saml/login", 302),
("https://api.example-corp.com/v2/payroll", 401)
]
for url, code in endpoints:
tier = "Surface Web" if code == 200 else "Deep Web (Auth / Redirect Gate)"
print(f"HTTP {code} | {tier:<34} | {url}")
Output:
HTTP 200 | Surface Web | https://example-corp.com/about
HTTP 302 | Deep Web (Auth / Redirect Gate) | https://sso.example-corp.com/saml/login
HTTP 401 | Deep Web (Auth / Redirect Gate) | https://api.example-corp.com/v2/payroll
5. Example 5: Classifying URLs Across Surface, Deep & Dark Layers
Classify candidate URLs automatically using domain, path, and pseudo-TLD rules in a CTI triage script.
Python (layer_classifier.py)
def classify_url(url: str) -> str:
u = url.lower()
if u.endswith(".onion") or ".onion/" in u:
return "Dark Web (Tor Overlay)"
if u.endswith(".i2p") or ".i2p/" in u:
return "Dark Web (I2P Overlay)"
if any(k in u for k in ["/login", "/sso", "/intranet", "staging.", "s3."]):
return "Deep Web (Unindexed Clearnet)"
return "Surface Web (Indexed Clearnet)"
urls = [
"https://nikita-infotech.com/index.html",
"https://staging.example-corp.com/app",
"http://leakarchive56charonionaddress234567890abcdefghijklmnopqr.onion"
]
for item in urls:
print(f"{classify_url(item):<32} <- {item[:45]}...")
Output:
Surface Web (Indexed Clearnet) <- https://nikita-infotech.com/index.html...
Deep Web (Unindexed Clearnet) <- https://staging.example-corp.com/app...
Dark Web (Tor Overlay) <- http://leakarchive56charonionaddress234567890...
6. Example 6: Detecting Standard DNS Failure on .onion Pseudo-TLDs
Demonstrate why
.onion addresses cannot be resolved by standard ICANN DNS servers and must pass through an overlay proxy.
Bash / CLI (onion_dns_check.sh)
nslookup duckduckgogg42xjoc72x3sjasowoarfbgcmvfimaftt6twagswzczad.onion 8.8.8.8
Output:
Server: 8.8.8.8
Address: 8.8.8.8#53
** server can't find duckduckgogg42xjoc72x3sjasowoarfbgcmvfimaftt6twagswzczad.onion: NXDOMAIN
7. Example 7: Fetching an .onion Service Through Tor SOCKS5h
Query a Tor hidden service over a local SOCKS5h proxy so name resolution and routing stay inside the Tor circuit.
Bash / CLI (tor_socks5h_fetch.sh)
curl --socks5-hostname 127.0.0.1:9050 -sI http://duckduckgogg42xjoc72x3sjasowoarfbgcmvfimaftt6twagswzczad.onion | head -n 3
Output:
HTTP/1.1 200 OK
Server: nginx
Content-Type: text/html; charset=UTF-8
8. Example 8: Auditing Certificate Transparency (CT) for Deep Web Subdomains
Discover unlinked or non-indexed Deep Web subdomains that received public TLS certificates in Certificate Transparency logs.
Python (ct_subdomain_audit.py)
ct_entries = [
"www.example-corp.com",
"vpn-gateway.example-corp.com",
"hr-intranet.example-corp.com",
"dev-api.example-corp.com"
]
deep_candidates = [sub for sub in ct_entries if not sub.startswith("www.")]
for host in deep_candidates:
print(f"[DEEP WEB CANDIDATE] {host}")
Output:
[DEEP WEB CANDIDATE] vpn-gateway.example-corp.com
[DEEP WEB CANDIDATE] hr-intranet.example-corp.com
[DEEP WEB CANDIDATE] dev-api.example-corp.com
9. Example 9: Correlating Leaked Credentials With Deep Web Portals
Match an indicator observed on a Dark Web leak channel against an exposed Deep Web login portal to prioritize immediate password resets and token revocation.
Python (correlate_leak_portal.py)
leaked_accounts = ["ops.lead@example-corp.com", "contractor@partner-vendor.io"]
deep_portals = {"example-corp.com": "https://sso.example-corp.com/login"}
for acct in leaked_accounts:
domain = acct.split("@", 1)[1]
if domain in deep_portals:
print(f"HIGH PRIORITY: {acct} matches Deep Web portal {deep_portals[domain]}")
Output:
HIGH PRIORITY: ops.lead@example-corp.com matches Deep Web portal https://sso.example-corp.com/login
10. Example 10: Summarizing Web Layer Telemetry Counts
Aggregate discovered assets across Surface Web, Deep Web, and Dark Web layers for an executive CTI & attack-surface report.
Python (layer_summary.py)
from collections import Counter
observed = [
"Surface Web", "Surface Web", "Deep Web", "Deep Web",
"Deep Web", "Dark Web", "Deep Web", "Surface Web"
]
counts = Counter(observed)
for layer, total in counts.items():
print(f"{layer:<15}: {total} observed assets")
Output:
Surface Web : 3 observed assets
Deep Web : 4 observed assets
Dark Web : 1 observed assets
Layer Comparison Matrix
Summary reference contrasting routing, resolution, visibility, and CTI relevance across web layers.
| Dimension | Surface Web | Deep Web | Dark Web Overlays |
|---|---|---|---|
| Routing & DNS | Standard TCP/IP + Public DNS | Standard TCP/IP + Public/Internal DNS | Encrypted Overlay + Pseudo-TLDs (.onion, .i2p) |
| Search Indexing | Indexed by search engines | Unindexed (auth, dynamic queries, directives) | Not indexed by clearnet search engines |
| Client Access | Standard browser / HTTP client | Standard browser / authenticated session | Tor Browser, I2P router, or overlay proxy |
| CTI Relevance | Public footprint, advisories & brand assets | Exposed login portals, APIs & cloud storage | Leak sites, stealer logs, forums & threat mentions |