Repository navigation
fix: REP-018 star foil enters by VPN like the chain - #120
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The follow-up flagged in #119, which this was stacked on. #119 has merged, so this targets
maindirectly.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_shapeandidentity_transitionas 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:
users[0]);adversary_external), excluding the attack's address, so pool membership is not a reputation feature;tunnelipset 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;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 - 1logins.Verification
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, eachtunnelipthe source of that stream's first login, same identity._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.ruffdid not flag the redefinition. The helper is now_family_counts, and every failure from that run was in that file, which now passes.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 replicantclean.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-018benign_baselinenow says the admin enters by VPN and both streams carry one tunnel-up andpath_len - 1logins.docs/catalog-review-2026-10-07.md: dated follow-up row under defects.CHANGELOG.mdUnreleased,CLAUDE.mdnote 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.mdrecords the operator-visible change.Historical decision records were preserved or received a dated addendum.
Documentation claims were checked against the implemented behavior.
Scope boundary
--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.CLAUDE.mdis unchanged.Generated by Claude Code