Skip to content

fix: REP-018 star foil enters by VPN like the chain - #120

Merged
404SecNotFound merged 1 commit into
mainfrom
claude/rep018-foil-vpn-entry
Oct 19, 2026
Merged

404SecNotFound merged 1 commit into
mainfrom
claude/rep018-foil-vpn-entry

Conversation

@404SecNotFound

Copy link
Copy Markdown
Owner

Summary

The follow-up flagged in #119, which this was stacked on. #119 has merged, so this targets main directly.

The defect. REP-018's attack chain begins with a VPN tunnel-up, and its benign foil (an admin star: one workstation logging into several hosts) had no VPN record. So "the stream contains a VPN login" separated attack from foil in 60 of 60 seed-presets (20 seeds × 3 presets). The contract names only causal_path_shape and identity_transition as separating features. This is the class the 2026-10-07 catalog review fixed elsewhere; that review's REP-018 row checked ports and bytes, not record families.

The fix. The admin star enters by VPN too:

  • same identity as before (users[0]);
  • an entry address drawn from the chain's own external pool (adversary_external), excluding the attack's address, so pool membership is not a reputation feature;
  • drawn, not taken as the pool's last free entry, because a constant foil address is itself a feature;
  • tunnelip set to the star's source host, so the foil joins its first login the same way the chain does since test: catalog-wide statistical fidelity; REP-018 entry login joins hop 1 #119;
  • timed at anchor + 5 s, the star's existing offset.

The foil's draws come after the attack's, so the attack stream is byte-identical (compared across all 60 plans). Both streams now carry one tunnel-up and path_len - 1 logins.

Verification

  • Measured after the fix: VPN presence separates 0 of 60, and the foil entry takes 56 distinct addresses over the 60 plans.
  • Two checks added to REP-018's row in tests/test_foil_parity.py:
    • star_enters_by_vpn_like_the_chain: equal record-family counts across streams;
    • star_entry_shares_the_chain_pool_and_join: both entries from the same pool, distinct addresses, each tunnelip the source of that stream's first login, same identity.
  • Positive control: against the unfixed builder, both checks failed on every preset; with the fix, the whole foil parity file is green.
  • A mistake of mine caught before push: my first helper was named _families, which shadowed an existing helper of that name used by the common check for every technique. The full suite went red on REP-012, 013, 022, 030 and 043. ruff did not flag the redefinition. The helper is now _family_counts, and every failure from that run was in that file, which now passes.
  • Full suite run on this change before the rename and the rebase (only the shadowing failures). After both: test_foil_parity, test_catalog_fidelity, the catalog signal contracts, controls, duration, the 2026-09-26 engine and profile reviews, login status, scenario and advisory suites green. ruff, black --check, mypy replicant clean. main's tree equals the tree test: catalog-wide statistical fidelity; REP-018 entry login joins hop 1 #119 was tested on.

Documentation impact

  • replicant/data/technique-catalog.yaml: REP-018 benign_baseline now says the admin enters by VPN and both streams carry one tunnel-up and path_len - 1 logins.

  • docs/catalog-review-2026-10-07.md: dated follow-up row under defects.

  • CHANGELOG.md Unreleased, CLAUDE.md note with the rule: a foil parity check that compares fields but not record families has not checked parity.

  • Unaffected: the detection contract (its separable features are unchanged and now true), vendor references (no new key), scenarios (none uses REP-018), the web UI.

  • Maintained documentation changed alongside the behavior, or unaffected surfaces are explained above.

  • CHANGELOG.md records the operator-visible change.

  • Historical decision records were preserved or received a dated addendum.

  • Documentation claims were checked against the implemented behavior.

Scope boundary

  • With --controls both, the same identity appears in both streams. That was already true of the star's logins before this change; the foil VPN record extends it, and it is not a per-stream separating feature.
  • Nothing here observes a rule fire; the launch gate in CLAUDE.md is unchanged.

Generated by Claude Code

The chain began with a VPN tunnel-up and the admin-star foil had no VPN
record, so VPN presence separated attack from foil on 60 of 60
seed-presets, a feature the contract does not name. The star now enters
by VPN: same identity, an entry address drawn from the chain's external
pool, tunnelip set to the star's source. The attack stream is
byte-identical across those 60 plans.

Guards: equal record families, and the shared pool and join. Both failed
on every preset against the unfixed builder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NtL63gY2LQZtZwgNwDM8vs
@404SecNotFound
404SecNotFound merged commit 1c1a2d3 into main Oct 19, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants