counterlure-cli 0.0.0-stage → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/SECURITY.md ADDED
@@ -0,0 +1,30 @@
1
+ # Security
2
+
3
+ ## Reporting a vulnerability
4
+
5
+ Report privately through GitHub: this repository's **Security** tab, **Report a vulnerability**. Do not open a public issue.
6
+
7
+ We acknowledge within 7 days and ask for a reasonable window to fix before disclosure. Credit is given unless you prefer otherwise.
8
+
9
+ In scope:
10
+
11
+ * this tool, including the crop and metadata handling in `lib/crop.js`
12
+ * the `counterlure-cli/1` protocol: envelope, padding, nonce and replay handling, reply signatures, proof of work
13
+ * the `/api/cli` endpoint of www.counterlure.com and of the onion service
14
+ * account signup and payment through the tool, and member messages
15
+ * the routing in `lib/route.js` and `lib/net.js`: Tor discovery, onion only over SOCKS, no silent fallback
16
+
17
+ Of particular interest: anything that lets a request or reply be read or altered in transit, lets unattributed reports count as more than one source, lets a report or check leak match information, lets source-photo metadata or other faces reach the server, reveals a user's network address beyond what the README states (on the default onion route, that is nothing), lets one account read or write another's messages, or opens an account without a matching payment.
18
+
19
+ Out of scope: other members' accounts, automated scanning of the website, volumetric testing, and attempts to get around Cloudflare's protections. Test protocol issues against your own server instead (see "Testing against your own server" in the README).
20
+
21
+ ## Release checks
22
+
23
+ Before each tagged release:
24
+
25
+ * The server key fingerprint in `lib/server-key.js` matches https://www.counterlure.com/api/cli/key and the website's CLI section.
26
+ * The onion address in `lib/route.js` matches the website's CLI section, and the service answers on it.
27
+ * The model hashes in `lib/faceprint.js` match OpenCV's published files, and `lib/faceprint.js` is identical to the server's copy, so local templates match what the service indexes.
28
+ * Dependencies are pinned to exact versions and `package-lock.json` is committed. CI installs with `--ignore-scripts`.
29
+ * GitHub Actions are pinned to commit hashes.
30
+ * `npm test` passes, including the crop metadata tests and fixed request sizes.