Skip to content

feat: REP-046 VPN login from an unfamiliar source network - #117

Merged
404SecNotFound merged 1 commit into
mainfrom
claude/rep046-unfamiliar-vpn-source
Oct 9, 2026
Merged

404SecNotFound merged 1 commit into
mainfrom
claude/rep046-unfamiliar-vpn-source

Conversation

@404SecNotFound

Copy link
Copy Markdown
Owner

Summary

The fifth and last item of the ranked backlog in docs/catalog-review-2026-10-07.md, built by the owner's decision and behind the launch gate in CLAUDE.md, which is unchanged. Cut from main after #116 merged.

REP-046, VPN login from an unfamiliar source network (Initial Access, T1078 and T1133; UC-030). Round 4's proposal of the same id, built as the hard case of REP-011: a first login from a network absent from the user's history violates no velocity constraint, so a geovelocity rule cannot fire on it. Detection needs a per-user source history.

Shape. Two self-contained populations of users, disjoint by name and shuffled so neither takes the base directory pool. Each has a compressed history (REP-008's convention, stated in the run summary) in which every user logs in from a primary and a rarely used secondary network. In the window:

  • the attack user logs in 1, 2 or 4 times (by preset) from one fresh address in a network another user in the same population uses and the attack user never has;
  • the foil user logs in the same number of times from one fresh address in that user's own secondary network, which one other user also uses;
  • every other user keeps logging in from addresses their history used.

Each population carries its own history, so --controls negative is meaningful alone.

The foil differs on one feature only. A new address, a rare network, a network the organisation has seen and a network another user uses are true of both logins. Only per-user network novelty separates them. The test asserts each of those verdicts on every seed at every preset. The round-4 proposal's foil (other users' genuine travel) was set aside: it differs from the attack on nothing, so it cannot be a negative control. Its base-rate point is in the transferability note instead.

Honest about the granularity. A network is a /28 of the benign documentation /24, because every login must come from one pool (a second pool would be a free reputation feature) and the documentation ranges hold only three /24s. The entry says a production baseline keys on /24 or ASN. No country tag is emitted; the entry needs no GeoIP.

Ids. The build keeps REP-046, as REP-028 kept its triage id. Round 4's UC-028 was taken by REP-053 meanwhile, so it is UC-030. The catalog header now states the rule, and records that REP-054 was built from round 3's REP-036 and should have kept that id. Renumbering is the owner's call.

No vendor profile changed. The login is the existing tunnel-up on all three vendors. A newsrc diagram glyph is added, because the newdest glyph is labelled "new dst".

Verification

  • tests/test_rep046_unfamiliar_vpn_source.py, 127 cases over 20 seeds at 3 presets: both populations' shape (users, two networks each, the shared benign pool, no country tag, tunnel-up only, window bounds), the attack login's network new to the user and used by another user with a fresh address, the foil login's network in the user's history, rare, and used by another user with a fresh address, disjoint populations, the five rule verdicts on every seed at every preset, pooled parity on history size and window timing, the compressed warm-up stated in the run summary, rendering on all three vendors, --duration bounding the span with counts kept, and the ceiling binding counts.
  • The guard caught a builder defect while it was being written: a habitual window login could use an address assigned to the user but never drawn in the history, so it looked fresh. Fixed before this PR; habitual window logins now reuse only addresses the history used.
  • Positive controls, each run against a deliberately broken builder, observed to fail, then restored:
    • foil from a network the foil user never used: the foil guard failed;
    • attack network from the adversary pool: the shared-pool guard failed on seed 1 at low (203.0.113.4 outside the benign pool);
    • attack address reused from another user's history: the fresh-address guard failed.
  • tests/test_foil_parity.py runs its common checks on REP-046 automatically; green. tests/test_duration.py covers it by parameter; green. Catalog, contract, README-sync, controls, detection-metadata, vendor golden and web API suites green with the counts at 31.
  • Full Python suite green, ruff, black --check, mypy replicant clean. Frontend: 255 tests green (the diagram coverage test now includes REP-046 and the newsrc glyph), tsc -b clean.

Documentation impact

  • replicant/data/technique-catalog.yaml: the entry, the header count, and the id rule with the REP-054 record.

  • replicant/data/detection-contracts.yaml: REP-046 contract (distinct sources per user; temporal span; per-user network history as the only separable feature).

  • README.md: catalog row and the three count statements (30 to 31).

  • docs/catalog-review-2026-10-07.md: dated implementation note on backlog item 5, including the defect the guard caught and the positive controls.

  • docs/technique-catalog-expansion-research-round4.md: dated implementation note on REP-046: why the foil, the country field and the 15-user preset changed.

  • CHANGELOG.md Unreleased, CLAUDE.md dated implementation note.

  • Unaffected: the three vendor CEF references (no new field or record), docs/run-manifest.md (no manifest field changed), scenarios (REP-046 joins none), the web UI beyond the glyph (it reads the catalog API).

  • 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

  • The Entra ID Protection detector-class names are [Unverified], quoted from the round-4 record.
  • The history is compressed into one hour of event time, so a production baseline measured in days sees a short history; the run summary says so.
  • Nothing here observes a rule fire; the launch gate in CLAUDE.md is unchanged.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NtL63gY2LQZtZwgNwDM8vs


Generated by Claude Code

Fifth entry under the catalog's tactic-gap rule and round 4's proposal
of the same id (Initial Access, T1078 and T1133; UC-030), built behind
the launch gate by the owner's decision. A first login from a network
absent from the user's history violates no velocity constraint, so
REP-011 cannot fire on it.

Two self-contained populations of users, disjoint by name, each with a
compressed history where every user logs in from a primary and a rarely
used secondary /28 network of one documentation /24. The attack user
logs in from a fresh address in a network another user uses and they
never have; the foil user logs in from a fresh address in their own
rarely used network, which another user also uses. A new address, a
rare network, an organisation-wide network and another user's network
are true of both, so per-user network novelty is the only separating
feature. No country tag; no vendor profile changed; a newsrc glyph is
added.

Guards in tests/test_rep046_unfamiliar_vpn_source.py over 20 seeds at 3
presets; the guard caught a builder defect before review (a habitual
login from an address the history never drew looked fresh). Positive
controls: a foil from a never-used network, an attack network from the
adversary pool, and an attack address reused from another user's
history each failed their guard.

The catalog header now states the id rule and records that REP-054
should have kept round 3's REP-036.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NtL63gY2LQZtZwgNwDM8vs
@404SecNotFound
404SecNotFound merged commit be2bef9 into main Oct 9, 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