Files
Max LvandClaude 553cdc7945 Add opt-in printable TCP salt experiment for ss-local (#3063)
Add `ss-local --printable-salt` / `"printable_salt": true`, disabled by
default. For each outgoing TCP salt it picks a prefix length uniformly
from 6-12 bytes and samples those bytes as printable ASCII (0x20-0x7e)
immediately before key derivation. The salt stays 32 bytes with no
framing or markers, so the wire format is unchanged and any stock
server interoperates. Only chacha20-ietf-poly1305 and aes-256-gcm are
accepted; other ciphers fail at startup. UDP, server responses, and
AEAD-2022 are untouched.

Crypto unit tests cover length distribution, empty first writes, exact
framing overhead, salt-tail preservation, byte-at-a-time decryption,
tampering and replay rejection. CLI tests check local-only exposure and
cipher rejection via flag, config key and bad config type. interop.py
gains --printable-salt and --server-bin for independent stock servers.

docs/printable-salt.md records the design, entropy bound, fingerprint
caveats and route-experiment procedure; docs/encoding-experiments.md
and tests/experiments/ hold the Base85/lowpop85/TLS outer-transport
prototypes. docs/measurements/printable-salt-2026-09-23/ archives the
sanitized results of the aborted field trials.

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-13 09:09:51 +08:00

42 lines
1.1 KiB
JSON

{
"status": "aborted_management_ssh_timeout",
"planned_phases": 2,
"completed_phases": 0,
"recorded_start": "2026-09-23T10:20:21Z",
"cleanup": {
"event": "cleanup",
"remote_exit": 255,
"capture_retrieved": true,
"utc": "2026-09-23T10:36:30Z"
},
"health_checks_passed": 32,
"modes": {
"stock": {
"recorded_transfers": 197,
"success": 197,
"small_count": 191,
"large_count": 6,
"small_median_ms": 173.38316699988354,
"large_median_mbps": 23.89289883802104
},
"modified": {
"recorded_transfers": 197,
"success": 197,
"small_count": 191,
"large_count": 6,
"small_median_ms": 172.58616700019047,
"large_median_mbps": 27.25382920437916
}
},
"unsolicited_replay": {
"mode": "stock",
"port": 32181,
"payload_bytes": 79,
"payload_sha256": "4ccffea9fe4f971ff965a11b7a3431d7f153ac0905903fb362ca37273064b7bf",
"delay_seconds": 3.1093130111694336,
"other_source": true,
"server_application_response_bytes": 0,
"attribution": "unknown"
}
}