law, ethics, and compliance · lesson 6 of 8 · sources checked 2026-11-20
ethics of both sides
This lesson shows the costs that automation and detection put on people outside the run, and the controls that make those costs smaller.
status of this lesson: documented in my test systemthis page is not legal advice.
purpose
A collection run and a defense both put costs on people outside them. Examples are the owner of a home line, the site, and a real user that a detector blocks. Each cost raises an ethical question, and a control in the design can make the cost smaller.
objectives
- Identify the personal data of third parties in the artifacts of a collection run.
- Design a capture step that removes third-party data before storage.
- State the ethical questions about the source of proxy exit addresses.
- Describe the costs of rotation, retries, and a broad block for people outside the run.
- Compare three models for the disclosure of a fault in a product.
new terms
- artifact
- A file that a run records as evidence: a screenshot, the DOM, a HAR file, a script, or an index.
- exit IP
- The source address that the target sees for a proxied request.
- reverse DNS (rDNS)
- The host name that a DNS lookup returns for an IP address.
- scrub
- To remove, generalize, or replace with a typed placeholder a sensitive value before it is stored, shared, or released.
- residential proxy
- A proxy exit on a consumer device or line, usually in a rotating pool.
- proxy network
- A service that forwards client traffic through exit IP addresses that it controls or rents.
- rotate
- To change the exit IP, the provider, the ASN, or the proxy class between attempts.
- terminal failure
- A failure that cannot change on a retry, so the worker acknowledges it.
- carrier-grade NAT
- A mobile network design that puts many subscribers behind one public address.
- false positive
- A real user that a detector classifies as automation.
- verdict
- The result that a check gives. The sentence names the check: the oracle, a detector test page, a detection product, or a platform.
- signal
- One observed value that a detector uses as evidence.
how it works
An artifact of a run can hold data about a person who is not part of the run. A cost of a run can fall on a person who did not agree to it. A defense can also hurt real users.
third-party data in an artifact
A detector test page often shows the address that it sees. For a proxied run, this is the exit IP, and its reverse DNS (rDNS) name can name a home line.
Both values are personal data of the owner of that line, a third party.
Two parts of a capture can hold these values: a field of an API response, and the image of a screenshot. The design of the benchmark platform, my test system, removes them at capture, with a scrub step:
- Text: the capture step drops the address fields and masks each address in the text before storage.
- Screenshot: the step redacts the address in the page before the screenshot. If the redaction fails, it takes no screenshot.
- Evidence: a general scrubber can also remove detection evidence. Thus the step keeps the named detection cookies, and drops the page bodies and the personal data.
example A capture holds the fields exit_ip, rdns, and verdict. The stored artifact holds only verdict.
A scrub at serve time is too late. The data is then already in storage, in backups, and in logs.
where exit addresses come from
status of this section: from a public sourceA residential proxy exit is a device or line in a home. The owner of that device often does not know that a proxy network uses it.
In 2021, a study found 1,701 Android app packages from 963 apps with a proxy SDK. Many apps showed a consent dialog about the relay of traffic, but users found its words confusing. One SDK relayed traffic with no notice NDSS, source 1.
claim of a company Google states that it acted against one large residential proxy network in 2026. It links 13 brands, 4 SDKs, and about 7,400 second-tier servers to the network. It also states that many apps that it analyzed did not inform the user that they enrolled the device Google Threat Intelligence, source 2.
claim of a publisher A non-profit installed apps of one proxy network in a controlled lab. It states that a large majority of the tested apps did not show a meaningful consent dialog Qurium Media Foundation, source 3.
These facts give three questions for a buyer of proxy service:
- Did the owner of each exit device agree, with clear words?
- Does the owner know the risk to the line, for example a block of the address?
- Does the vendor state how it gets its exits, and can you check that statement?
costs that move to others
A rotation of the exit and a retry of a failed request move cost to people outside the run. The owner of the exit line gives bandwidth and can get a bad address reputation. The target gets more load. The proxy vendor can see a pattern of failures and raise an alert.
A retry after a refusal adds load and gives no new result. Thus a short list of terminal failures gets no retry.
example A request gets the status 403 with a block page. The status is on the terminal list, so the job stops and records the failure.
costs of a broad block
A defender can block an address that many real users share. One proxy device on a home network, or one mobile carrier address, can stand for many people.
claim of a company In 2024, Cloudflare stated that a broad block of IP addresses blocks real traffic from residential networks where one device is a proxy node. It also stated that many mobile users share one address behind carrier-grade NAT Cloudflare, source 4.
A user of a privacy browser or a privacy network can also look like a bot. Each such false positive has a cost: a lost sale, a lost visit, or a false accusation.
disclosure of a fault
A person can find a fault in a vendor product, on either side. Three common models of disclosure exist, and each has a cost:
| model | what occurs | gain | cost |
|---|---|---|---|
| Coordinated disclosure | The finder reports to the vendor first, and publishes after a time limit or a fix. | The vendor gets time to correct the fault. | A vendor can delay the fix. |
| Full disclosure | The finder publishes at once. | Users learn the risk fast. | Attackers learn it at the same time. |
| Private report | The vendor gets the facts, and nobody publishes. | No attacker learns the fault from the finder. | Users cannot see the risk. |
example For example, a finder sees that a product accepts an expired token. The finder can report it to the vendor and wait, publish it at once, or report it with no publication.
I take no position on the three models, and I give no working method for a fault.
the two sides
| automation side | detection side |
|---|---|
| Rotation and retries move cost to third parties: the owners of residential devices, the proxy vendors, and the targets. | A block on a mobile carrier address hits many real users. A privacy browser can look like a bot. A false accusation has a cost. |
design decisions
| option | gain | cost | when it is correct |
|---|---|---|---|
| Scrub at capture | Third-party data never reaches storage, backups, or logs. | Each capture path must have its own scrub step. | Always, for an artifact with addresses |
| Scrub at serve time | One scrub step for all paths | The data stays in storage and in backups. | Never as the only step |
| Keep named detection cookies | The artifact keeps its evidence. | The list of names must be correct and current. | When the artifact is evidence of the verdict of a detector |
| No retry after a terminal failure | Less load on the target and the exit line | Some jobs that a retry can save end early. | For a refusal, a block page, or a hard status |
| Block by behavior, not by address | Real users on a shared address keep access. | A model of behavior costs more than an address list. | When many users share one address |
| Telemetry off by default | No data leaves a device with no consent. | Fewer events for the vendor | Always, for a telemetry sensor: code in a product that sends events from the devices of users to the vendor |
diagram
third-party data leaves the artifact at capture, before storage
code example
The first example scrubs a capture before it reaches storage. It drops the address fields, masks addresses and host names in text, and keeps the named detection cookies.
example The addresses are documentation addresses, which a standard reserves for examples, and each host is a reserved example name.
Remove the exit IP and the reverse DNS name from a capture before the artifact reaches storage, and keep the named detection cookies as evidence.
import { readFileSync } from "node:fs";
// Synthetic captures. The addresses are documentation addresses, and each host is a reserved example name.
type Capture = { page: string; fields: Record<string, string>; cookies: Record<string, string> };
const DROP_FIELDS = ["ip", "exit_ip", "rdns", "hostname"];
const KEEP_COOKIES = ["det_session", "det_challenge"]; // Named detection cookies stay as evidence.
const IPV4 = /\b(?:\d{1,3}\.){3}\d{1,3}\b/g;
const RDNS = /\b[a-z0-9-]*\d+[a-z0-9-]*(?:\.[a-z0-9-]+)+\.(?:net|com|org)\b/gi;
function scrubText(s: string): string {
return s.replace(RDNS, "[host removed]").replace(IPV4, "[address removed]");
}
// Runs at capture, before the artifact reaches storage.
function scrubAtCapture(c: Capture): { kept: Capture; removed: number } {
let removed = 0;
const fields: Record<string, string> = {};
for (const [k, v] of Object.entries(c.fields)) {
if (DROP_FIELDS.includes(k)) { removed++; continue; }
const clean = scrubText(v);
if (clean !== v) removed++;
fields[k] = clean;
}
const cookies: Record<string, string> = {};
for (const [k, v] of Object.entries(c.cookies)) {
if (KEEP_COOKIES.includes(k)) cookies[k] = v;
else removed++;
}
return { kept: { page: c.page, fields, cookies }, removed };
}
// Argument 1: a JSON file with a list of captures.
const captures: Capture[] = JSON.parse(readFileSync(process.argv[2], "utf8"));
for (const c of captures) {
const { kept, removed } = scrubAtCapture(c);
console.log(`${c.page}: values removed: ${removed}`);
console.log(` stored: ${JSON.stringify(kept.fields)} cookies: ${Object.keys(kept.cookies).join(", ") || "none"}`);
}output
For each capture: the count of removed values, the stored fields, and the kept cookies.
p1: values removed: 3
stored: {"verdict":"pass"} cookies: det_session
p2: values removed: 1
stored: {"banner":"Your address [address removed] ([host removed]) is new","verdict":"challenge"} cookies: det_challengeI ran the code with the Node runtime and the flag --experimental-strip-types, on two synthetic captures:
- Capture p1 has an exit IP field, a reverse DNS field, a verdict, a detection cookie, and a cookie of a user setting.
- Capture p2 has a banner text with an address and a host name, a verdict, and a detection cookie.
The second example is a telemetry sensor for a product that other people install. It is off by default. With an opt-in, it sends only the fields of an allowlist, masks mail addresses and tokens, and cuts long values.
example All events and values are synthetic.
Send telemetry only after an opt-in, with a field allowlist, a length limit, and a scrub of tokens and mail addresses.
import { readFileSync } from "node:fs";
// Synthetic events. No field name belongs to a real product.
type Event = Record<string, string>;
type Settings = { optIn: boolean };
const ALLOWED = ["page", "verdict", "duration_ms", "error"]; // Each other field is dropped.
const MAX_LEN = 40;
const EMAIL = /[\w.+-]+@[\w-]+(?:\.[\w-]+)+/g;
const TOKEN = /\b(?:tok|key|sess)_[A-Za-z0-9]{8,}\b/g;
function clean(value: string): string {
const scrubbed = value.replace(EMAIL, "[email]").replace(TOKEN, "[token]");
return scrubbed.length > MAX_LEN ? scrubbed.slice(0, MAX_LEN) + "[cut]" : scrubbed;
}
// Off by default: with no opt-in, the sensor sends nothing.
function sensor(settings: Settings | undefined, e: Event): Event | null {
if (settings?.optIn !== true) return null;
const out: Event = {};
for (const k of ALLOWED) if (k in e) out[k] = clean(e[k]);
return out;
}
// Argument 1: a JSON file { "settings": Settings or null, "events": Event[] }.
const input = JSON.parse(readFileSync(process.argv[2], "utf8"));
for (const settings of [undefined, input.settings as Settings]) {
console.log(`opt-in: ${settings?.optIn === true}`);
for (const e of input.events as Event[]) {
const sent = sensor(settings, e);
console.log(` ${sent === null ? "nothing sent" : JSON.stringify(sent)}`);
}
}output
For each setting, one line for each event: nothing sent, or the fields that the sensor sends.
opt-in: false
nothing sent
nothing sent
opt-in: true
{"page":"/list","verdict":"pass","duration_ms":"812"}
{"page":"/login","verdict":"challenge","error":"retry for [email] with [token] failed af[cut]"}I ran the code in the same way, first with no setting and then with an opt-in. The file has two synthetic events. One event has a field with a mail address. One has an error text with a mail address and a token.
data
size of two actions against residential proxy networks, 2024 and 2026
status of this figure: from a public source
Fact table of two actions. 2024, the 911 S5 botnet: the indictment alleges more than 19,000,000 unique IP addresses, about 613,841 of them in the United States. 2026, one proxy network: the company links 13 brands and 4 SDKs to it, and about 7,400 second-tier servers.
| item | 2024 and 2026 actions |
|---|---|
| 2024 botnet: IP addresses, more than | 19000000 IP addresses |
| 2024 botnet: US IP addresses, about | 613841 IP addresses |
| 2026 network: brands linked | 13 brands |
| 2026 network: SDKs linked | 4 SDKs |
| 2026 network: second-tier servers | 7400 servers |
source: US Department of Justice, indictment (E.D. Tex.), and Google Threat Intelligence, statement of 2026-01-28 (public source, https://www.justice.gov/opa/media/1353516/dl, read 2026-11-12); date 2026-11-12
The chart compares the size of two public actions against residential proxy networks. The first is a takedown of 2024, with counts from its indictment. The second is a statement of a company of 2026. Each row has its own unit, and no row is a finding of a court.
failure modes
| problem | cause | correction |
|---|---|---|
| A stored artifact holds the exit IP of a home line. | The scrub runs at serve time, or not at all. | Scrub at capture, before storage. Treat the address as third-party personal data. |
| A screenshot shows the exit IP. | The text scrub cannot see data in pixels. | Redact the address in the page before the screenshot. Take no screenshot if the redaction fails. |
| The scrub removes the evidence of a verdict. | A general personal-data scrubber drops each cookie. | Keep the named detection cookies. Drop the page bodies and the personal data. |
| A proxy vendor raises an alert on a job. | The job retries after each failure. | Keep a short list of terminal failures with no retry. |
| Real users on a mobile network get a block. | The defense blocks an address that many users share. | Block by behavior, or examine the address with more signals before a block. |
| A sensor sends data that nobody agreed to. | The sensor is on by default and sends each field. | Make the sensor opt-in, with a field allowlist and a length limit. |
check questions
A capture of a detector test page holds four values. Which value is personal data of a third party?
- The verdict of the detector
- The name of a detection cookie
- The reverse DNS name of the exit line of a home user
- The status code of the response
answer
c. The reverse DNS name of the exit line of a home user
The reverse DNS name and the exit IP can identify the line of the owner of the exit device. That owner is not part of the run.
Where must the scrub of the exit IP run?
- At capture, before the artifact reaches storage
- At serve time, before a person reads the artifact
- In a weekly cleanup of the storage
answer
a. At capture, before the artifact reaches storage
A scrub at serve time or later is too late. The data is then already in storage, in backups, and in logs.
State the ethical questions that a buyer of residential proxy service must ask about the source of the exit addresses.
sample answer
Did the owner of each exit device agree, with clear words? Does the owner know the risk to the line, for example a block of the address? Does the vendor state how it gets its exits, and can the buyer check that statement?
Describe two costs that rotation and retries put on people outside the run, and one cost of a broad block of addresses.
sample answer
The owner of the exit line gives bandwidth and can get a bad address reputation. The target gets more load from each retry. A broad block of an address that many users share, for example a mobile carrier address, blocks real users.
In which model of disclosure do users learn the risk fast, but attackers learn it at the same time?
- Coordinated disclosure
- Full disclosure
- Private report
answer
b. Full disclosure
In full disclosure, the finder publishes at once. Users and attackers learn the fault at the same time.
exercise
exercise Do this task in your own lab, with synthetic data only. Use documentation addresses and reserved example names. Do not send a request to a site.
- Save the first code example in an empty folder of your lab.
- Write a JSON file with one capture.
- Give the capture a field
ipwith a documentation address and a fieldverdictwith the value "pass". - Add a field
notewith the textseen from host-7.example.net. - Add the cookies
det_sessionandcart. - Run the code with Node and the flag
--experimental-strip-types. - Record the count of removed values, the stored fields, and the kept cookies.
- Write which removed value was personal data of a third party, and which was not.
sample answer
This model answer uses the synthetic file of the task only.
The code removes 3 values. It drops the field ip, masks the host name in note as "[host removed]", and drops the cookie cart. The stored fields are verdict and note, and the kept cookie is det_session.
The address and the host name can identify the line of a third party, so they are personal data. The cookie cart is not evidence of a verdict, so the step drops it, but it is not data of a third party.
sources
- Your Phone is My Proxy (NDSS 2021), NDSS, paper, read 2026-11-12
- Statement on residential proxy networks (2026-01-28), Google Threat Intelligence, article, read 2026-11-20
- The uncomfortable truth behind 10 million Popa proxy requests (2026-06-23), Qurium Media Foundation, article, read 2026-11-20
- Residential proxy bot detection using machine learning (2024-06-24), Cloudflare, vendor page, read 2026-11-20
- My model of third-party data in a capture, of the costs that a run moves to others, and of the three models of disclosure, 2026-11 (not public).
- Benchmark platform, design (my test system): the scrub at capture, the redaction before a screenshot, and the list of terminal failures, 2026-11 (not public).