This is the public research summary of my bachelor’s thesis in Cybersecurity at the Universidad Internacional de La Rioja (UNIR), supervised by Dr Javier Bermejo Higuera and defended in October 2026. Its original title is Privacidad infraestructural y riesgo operacional de la ruta. Un Framework de Balance Activo para BGP, IXPs y redes de anonimato (Infrastructural privacy and operational route risk: an Active Balance Framework for BGP, IXPs and anonymity networks). The thesis was submitted as an experimental pilot: ten proofs of concept run in an isolated laboratory, supported by nineteen technical annexes.
Below: the question, the method, the findings and what the thesis does not claim. Operational detail that could be misused is deliberately left out.
Abstract
Communication privacy on the Internet is not exhausted by encryption: it also depends on the route that traffic takes underneath. Tor, VPNs and private DNS are not alternatives to the Internet but overlays that still travel across the same Autonomous Systems, exchange points and BGP decisions. The thesis proposes an Active Balance Framework that distinguishes, without identifying individuals, high-friction infrastructure (persistent, automated and scalable) from volatile human use that dissolves into background noise. Tor is used as the test bench, not the object of study: it is the most documented anonymity network and the only one with open simulation tools, which makes it representative of any system whose route metadata can be observed. Ten proofs of concept were executed in an isolated AWS laboratory, including a realistic 271-host private Tor network simulated with Shadow and tornettools. Role classification reached an accuracy of 1.000, the triage ranking reached an AUC of 1.000 with no false positives, and the aggregate friction signal survived simple jitter and modelled obfuscation defences because it operates at the Autonomous System layer. The policy conclusion is that hardening inter-domain routing should be recognised as a privacy safeguard, not only a resilience measure.
Research question and hypotheses
The central question is uncomfortable on purpose: how can a society strengthen security and privacy at the same time, without sliding into mass surveillance or criminal impunity? The thesis argues the dilemma looks irreducible because it is examined at the application layer, the wrong place.
Four working hypotheses were formulated so that each could fail:
- H1. The route and the routing plane condition the real exposure of traffic, partly independently of upper-layer encryption.
- H2. A controlled route diversion can increase the common observation surface around a VPN or a private Tor topology, without amounting to automatic de-anonymisation.
- H3. The statistical persistence of automated infrastructure is easier to classify than volatile human use.
- H4. Hardening the control plane (route filtering, RPKI origin validation) reduces exposure.
Method
The method combined a literature and regulatory review with an experimental programme in a single modular AWS laboratory. Autonomous Systems were modelled as logical policy units with FRRouting and Containerlab; the Tor network was generated with tornettools from public Tor Metrics data and run in the Shadow simulator at roughly 1% of the real network’s scale.
Ethical limits were part of the design. No routes were announced on the public Internet, the real Tor network was never a target, no third-party traffic was captured and no reusable offensive configuration was published. Each proof of concept had a baseline, a tension and a defence state, with a falsification criterion fixed in advance. The Tor simulation (PoC III) produced the datasets consumed by PoCs IV to X.
The Active Balance Framework
The framework is organised in three levels:
- Active Balance: every control is tuned by measuring, at the same time, the risk it removes and the collateral damage it introduces.
- Isonomic Model of Asymmetric Friction: equal baseline protection for everyone, with a differentiated response only when structural risk signals appear.
- Infrastructural Isonomy: a normative limit that forbids turning route, identity or jurisdiction into opaque criteria for degrading rights.
The rule that summarises it is «isonomy first, asymmetry second». Friction rises only on aggregated, persistent and verifiable signals: invalid routes, anomalous announcements, operational concentration, automation or AS-level exposure.
Friction, defined operationally
Friction is the observable deviation of an entity’s traffic pattern from the behaviour expected for its activity. A single person using an anonymity network produces sporadic, low-volume, aperiodic traffic towards an entry relay: low, scattered friction that is indistinguishable from noise. A service that answers many users at once produces convergence of connections, sustained volume, periodicity and continuity: high, localised friction. The framework is designed to react to the second and never to the first. It detects infrastructure, not people.
OBSERVADOR: triage, not attribution
The applied component is OBSERVADOR, a triage layer that sits between discovery (what a search index can find) and judicial attribution. Its output is not an identity but a ranked hypothesis for human review. Discovery tools find; OBSERVADOR prioritises; judicial investigation attributes. Its core was validated as PoC V; a deployable service is future work.
Key findings
All results below are reported in chapter 4.15 and Annex 5 of the thesis and refer to the isolated laboratory.
- The route is not neutral (PoC I). A /25 more-specific announcement in a three-AS topology diverted half of a victim’s /24, changed the AS path and concentrated flows at an observation point without breaking any encryption.
- Origin validation works against the attacker without resources (PoC II). A manual prefix list and RPKI route origin validation both removed the hijack; ROV did it without a hand-written filter. Signal-guided defence caused less collateral damage than a flat policy.
- Friction protects the individual (PoC III). A correlation attack trying to match each of 100 simulated clients to its server succeeded for 8 of 100, against a chance rate of 10% (permutation p = 0.814). Concurrent traffic hid the individual client–service relationship.
- Friction exposes the infrastructure (PoC IV). Using five aggregate friction metrics, a cross-validated L2-regularised logistic regression separated the 100 clients from the 10 servers with accuracy 1.000, against 0.909 for the majority-class baseline (p = 0.0001).
- Triage without attribution (PoC V). The integrated persistence index placed all ten servers in the top ten positions (AUC 1.000, no false positives). No single metric sufficed; the most discriminating was the bidirectional ratio, as servers send far more than they receive.
- Coverage is easy, depth is not (PoC VI). One controlled relay touched almost every stream but observed only 3.8% of each route; ten relays observed 37.8% and thirty 96.6%.
- Isonomy verified (PoC VIII). Sporadic human clients did not appear in the top-k of the triage ranking.
- The limit of route hardening (PoC IX). The set of streams seen through a BGP hijack and through operator cooperation at the same point was identical (Jaccard index 1.000). RPKI closes one path to observation, not the other.
- Jitter protects the individual, not the infrastructure (PoC X). Simple jitter kept per-flow correlation at chance level, while aggregate friction metrics barely changed. Under analytically modelled WTF-PAD-style padding, constant-rate shaping and MUFFLER-style connection splitting, the triage kept an AUC of 1.000. Forced jitter also left a distinctive timing-entropy signature, which became a fifth friction metric.
The key result is the asymmetry: the mechanism that hides the person exposes the persistent service.
Limitations
The thesis states its limits explicitly:
- Scale and simulation. Results come from a simulated Tor network at about 1% scale with 100 clients and 10 servers. The roughly 10% server-to-client ratio of the lab is not representative of the real network.
- Visibility assumption. The aggregate correlation model assumes an observer with broad visibility of the IPs connecting to the network. This works as a maximum-adversary model to bound exposure, not as a description of a guaranteed capability; partial visibility produces false negatives.
- Modelled defences. The advanced obfuscation defences in PoC X were modelled as transformations of the measured metrics, not injected into the simulation, and all three were static. An adaptive defence that used the classifier as an oracle is left as future work.
- Triage is not attribution. Legitimate high-availability services, including those critical for human rights, can share the friction profile of abusive infrastructure. Scores are hypotheses for human review under judicial safeguards, never evidence of guilt. Under an authoritarian regime the same signal could be misused: a governance problem, not an architectural one.
Policy contribution
The second core contribution is normative. RPKI, origin validation and MANRS are deployed and regulated mainly as resilience measures. The thesis argues that route geometry and observability are also a confidentiality surface, and that regulators, including those implementing NIS2, should frame inter-domain routing hardening as a safeguard for fundamental rights. Annex 18 sketches a governance model with prior judicial control, independent audit and a Routing Privacy Index. The practical side of this argument is covered in Routing and BGP security, and the wider context in Anonymity networks and The Internet Iceberg Is Upside Down.
How to cite
Macías Rubiales, J. (2026). Privacidad infraestructural y riesgo operacional de la ruta. Un Framework de Balance Activo para BGP, IXPs y redes de anonimato [Bachelor’s thesis, Universidad Internacional de La Rioja].
The experimental code, infrastructure templates and datasets are kept in a private repository. Researchers and reviewers can request access through the contact page.
Frequently asked questions
Does this research break Tor or VPNs?
No. The thesis never attacked the real Tor network and does not claim that Tor or VPNs are broken. It shows conditions of exposure under a specific adversary model in an isolated laboratory, and argues that privacy also depends on the route underneath. Its results support stronger route protection, not weaker anonymity tools.
What does asymmetric friction mean?
It means applying minimal friction to legitimate, volatile human use and increasing friction only where aggregated, verifiable signals show persistent, automated and scalable infrastructure. Everyone receives the same baseline protection first; differentiated responses come only afterwards, are proportional, and never rely on identity, content or political suspicion.
Is the Active Balance Framework a surveillance tool?
It is designed as the opposite of mass surveillance. It reacts to aggregate infrastructure patterns rather than individuals, produces ranked hypotheses for human review rather than identities, and requires judicial safeguards before any intrusive step. In the experiments, sporadic human clients never entered the triage shortlist.
