## Website popularity rankings distort measurements of internet security

URL: https://theprimary.com/ai-tech/2026-12-01/tranco-web-security-sampling
Published: 2026-12-01T00:24:03.569Z
Updated: 2026-12-01T00:24:05.278Z
Category: AI-Tech

Testing only the most visited internet addresses distorts cybersecurity findings by up to ten percentage points, leaving the software risks of the wider web unmeasured.

When computer scientists set out to inspect the security of the World Wide Web, they cannot check every server. Billions of addresses exist, and analyzing even a small fraction of them requires significant computing power. Instead, researchers select a manageable slice of domains to scan, examine those targets in detail, and treat the outcome as an indicator of how safe the broader internet happens to be. For more than a decade, the standard convention in computer science research has been to test the most famous names first. Automated scanners routinely evaluate the top 1,000 or top 10,000 addresses on traffic popularity charts, assuming that the defensive posture of household names reflects the operational reality of global network infrastructure.

That assumption turns out to mislead researchers in consistent and measurable ways. The paper will appear in the ACM CCS 2027 proceedings and be presented in about 4 weeks. Computer scientists Xuenan Zhang, Yuqing Yang, and Giancarlo Pellegrino at the CISPA Helmholtz Center for Information Security in Saarbrücken, Germany, show that sampling top-ranked domains introduces severe distortion into web security data. The paper states that selecting only the highest-ranked domains fails to reflect the overall distribution of the web. Depending on the flaw under scrutiny, focusing exclusively on top domains can distort observed vulnerability rates by more than 10 percentage points compared to broader measures. Choosing the wrong underlying catalog of websites can leave vulnerability estimates off by nearly 20 percentage points.

The mechanics of automated security auditing explain why this gap emerges. To evaluate internet security, an investigator must first compile an address list of websites to evaluate. The investigator then configures auditing software to contact each address, render its pages in simulated browsers, and inspect how the site handles sensitive information. Running advanced analysis programs, such as tracking how data flows through JavaScript or evaluating encrypted communication handshakes, consumes heavy processing power and network bandwidth. Scanning hundreds of millions of sites with these deep analysis techniques remains computationally prohibitive. Because investigators cannot inspect every domain, they must select a subset to examine, and the mathematical rules governing that selection determine whether the final vulnerability tally mirrors reality or reflects an artificial slice of the internet.

Popularity rankings like Tranco rank addresses by traffic volume, aggregating user visits to sort domains from most popular to least popular. When researchers audit only the upper tier of these lists, they inspect websites that operate under distinct commercial conditions. Prominent organizations maintain dedicated engineering departments, hire external penetration testers, and deploy complex defensive layers. Smaller websites, community blogs, local merchants, and regional forums often rely on default server configurations or unmaintained software packages. An audit that examines only the most visited sites measures the defensive investments of well-funded organizations, leaving the software habits of the remaining internet unobserved.

## Why does picking the top websites distort security findings?

Focusing exclusively on the highest-ranking addresses creates a sample with zero probability of selecting any domain outside that privileged group. In their paper, Zhang, Yang, and Pellegrino categorize this practice as non-probability sampling, specifically Top N selection, because domains below the selected cutoff rank receive no chance of entering the study. Across the web measurement literature, researchers have historically relied on Top N selections ranging from the top 1,000 to the top 10,000 domains to evaluate security issues such as domain takeovers, defensive security header deployments, and browser fingerprinting scripts.

To evaluate how this sampling convention alters empirical conclusions, the authors report that they examined eight distinct sampling methods across a ground-truth dataset comprising 500,000 domains drawn from the Tranco popularity ranking and 24.8 million hosts extracted from public Common Crawl web archives. The analysis covered three broad classes of security flaws: client-side cross-site scripting, HTTP security header misconfigurations, and cryptographic transport layer security flaws. Client-side cross-site scripting occurs when untrusted user input reaches browser execution sinks without sanitization, an issue detectable purely through browser instrumentation without injecting dangerous server payloads. Security headers allow administrators to instruct browsers to restrict script execution or enforce encryption, using directives such as Content Security Policy, frame protection headers, and secure cookie attributes. Transport layer security covers cryptographic certificates and protocol versions that protect network traffic against eavesdropping.

When the authors applied Top N sampling to subsets of 10,000 domains drawn from their Tranco data, the paper reports that Top N sampling over- or under-estimated the true vulnerability values of the 500,000-domain collection by up to 10.6 percentage points. The authors found that simply increasing the number of domains audited within a Top N design does not remove this fundamental bias, because the selection still systematically ignores the lower ranks of the web ecosystem.

The underlying causes of these differences remain outside the paper's scope. Giancarlo told Primary that "our paper does not investigate why highly ranked websites are more or less affected by particular types of vulnerabilities or security configurations." He added that while the researchers observed that rates differ across ranking tiers, "explaining the causes of those differences is outside the scope of our study," because the core objective was "to quantify how the choice of sampling strategy can affect conclusions about the prevalence or impact of web security issues."

Investigators sometimes attempt to repair this distortion by using hybrid sampling, in which an audit combines a deterministic top-ranked prefix with random draws from lower tiers. Zhang, Yang, and Pellegrino decomposed these hybrid designs using Shapley value analysis, a mathematical method used to isolate the individual contributions of different components. The authors found that hybrid sampling provides no advantages over pure probability sampling, reporting that the deterministic prefix consistently contributes negatively to overall measurement accuracy. The hybrid design inherits the skew of the top-ranked sample and expends its remaining audit budget attempting to offset that initial distortion.

## How do different sampling strategies behave in practice?

Probability-based sampling designs produce stable and unbiased measurements because every domain in the target directory holds a known, non-zero probability of being selected. In their comparative analysis across the 500,000-domain Tranco collection, the authors report that random sampling, systematic sampling, and stratified random sampling consistently stayed within a narrow margin of true underlying vulnerability values. Simple random sampling gives every domain an equal chance of inspection. Systematic sampling chooses targets at fixed numeric intervals after a randomized start. Stratified random sampling divides a dataset into distinct tiers, such as traffic buckets, and draws randomly from each tier in proportion to its size.

Because these probability methods distribute audit slots across all tiers of the ranking, they avoid over-representing the customized practices of the largest web platforms. In the authors' experiments, estimates generated by probability techniques converged smoothly toward ground-truth levels as sample sizes expanded. The authors observed that probability-based strategies yield stable, unbiased estimates for measuring vulnerability prevalence and domain impact across the examined security categories.

Giancarlo noted that probability methods hold up unless extreme domain distributions intervene. He told Primary that "one hypothetical case would be a vulnerability concentrated in a very small, well-defined subset of domains, where simple random sampling could become inefficient and stratified sampling would be more appropriate." Other distribution shifts remain possible, but Giancarlo said they would stem from "very specific technical configurations or circumstances" and that imagining them without a known mechanism remains "an intellectual exercise with limited practical implications."

To help investigators balance statistical accuracy against computing expense, Zhang, Yang, and Pellegrino formulated an adaptive probability sampling strategy. In practice, researchers rarely know the true prevalence of a vulnerability before beginning an audit, creating the risk of collecting too few samples to detect rare flaws or wasting resources by over-sampling common configurations. Under the authors' proposed protocol, researchers begin with an initial pilot sample comprising 1% to 2% of the domain population chosen through probability sampling, and then expand the sample size adaptively. The paper states that for most non-sparse security issues, measurement estimates stabilize once the sample size reaches 5% to 10% of the population.

That stabilization threshold has clear structural boundaries. Giancarlo told Primary that "the five-to-ten percent range breaks down for very rare vulnerabilities." In those scenarios, he explained, "if you are looking for a needle in a haystack, a small sample may simply contain too few positive cases to estimate prevalence reliably, so much larger samples may be necessary."

The expansion itself relies on standard statistical checks rather than an arbitrary stopping formula. Giancarlo told Primary that the team did not define a single variance metric, explaining that the operational idea is "to expand the sample incrementally and use standard statistical criteria to check whether the estimated proportion has stabilized." Once consecutive sample expansions produce negligible changes in the calculated proportion or confidence intervals, the sample size can be considered sufficient for the chosen level of precision.

## Why does dataset choice change the measurement outcome?

Selecting a mathematically sound sampling method still produces misleading conclusions if the underlying directory of domains does not represent the question under investigation. In web security research, experimental goals generally divide into impact studies and prevalence studies. Impact studies aim to evaluate how severely an issue affects users by weighting observations toward high-traffic domains where security failures compromise large populations. Prevalence studies seek to measure how widely a security flaw or defensive tool appears across the web as an entire technological ecosystem.

Popularity lists like Tranco, constructed from internet traffic rankings, naturally fit impact studies because their contents focus on heavily visited destinations. Web archives like Common Crawl, which aggregate crawled web addresses without ranking them by popularity, capture a much wider variety of obscure, specialized, and personal sites, making them better suited for prevalence investigations. Zhang, Yang, and Pellegrino evaluated what happens when researchers use a popularity list to answer a prevalence question. The authors report that applying random sampling to the Tranco dataset produced vulnerability estimates that remained up to 19.6 percentage points away from the Common Crawl baseline.

Even when the number of inspected domains was expanded, random sampling on Tranco exhibited a systematic average underestimation rate of 30% relative to the Common Crawl baseline. The paper states that sampling correctly from the wrong population still yields the wrong answer. High-traffic domains implement modern security headers and defensive configurations at rates different from the long tail of internet hosts. An audit that draws randomly from a popularity ranking measures prevalence within that directory, not prevalence across the public internet.

The structural divergence between the two catalogs explains this persistent gap. Giancarlo told Primary that "Tranco and Common Crawl represent quite different populations." Tranco, he explained, is constructed around traffic proxies and domain lookup activity, whereas Common Crawl collects web hosts without sorting them by prominence. Because the two sources assemble fundamentally distinct host collections, Giancarlo said, "the difference we observe is therefore not a failure of random sampling; it reflects the fact that popular websites and the much broader population captured by Common Crawl have different characteristics."

## What the findings cannot reveal

These findings evaluate sampling performance across historical crawls and domain lists, representing empirical simulations rather than exhaustive real-time censuses of every live server. The comparisons rely on 500,000 domains from Tranco and 24.8 million hosts from Common Crawl, and they do not claim to predict how security practices will evolve as new content delivery networks or automated security certificates alter server administration. Furthermore, peer review for this paper is over and it has been accepted for publication. The reported error bounds and stabilization thresholds apply specifically to the tested classes of client-side cross-site scripting, HTTP headers, and transport encryption configurations, meaning that vulnerabilities with unusual or highly clustered distributions might require different sample thresholds.

For academic researchers, security auditors, and standards organizations, the results provide an empirical caution against unexamined methodological habits. Studies that report web-wide vulnerability rates based solely on the top 1,000 or top 10,000 entries of commercial traffic charts do not show how vulnerable the web is; they show how secure the largest commercial platforms are. Adopting probability-based sampling protocols and choosing domain directories that reflect the intended research scope will allow future internet security surveys to deliver reproducible and accurate measurements.

The next methodological challenge lies in developing standard toolkits that automate adaptive sampling pipelines. As web scanners incorporate deeper interactive analysis and automated reasoning tools, maintaining rigorous sampling standards will allow researchers to gather trustworthy security intelligence while keeping computational requirements within practical boundaries.
