Skip to content

fix(authz): derive visited_by from observed values to eliminate Firefox false positives - #118

Open
lorenzozanee wants to merge 1 commit into
CyberStrikeus:mainfrom
lorenzozanee:fix/visited-by-derived-observation
Open

fix(authz): derive visited_by from observed values to eliminate Firefox false positives#118
lorenzozanee wants to merge 1 commit into
CyberStrikeus:mainfrom
lorenzozanee:fix/visited-by-derived-observation

Conversation

@lorenzozanee

Copy link
Copy Markdown

What does this PR do?

Fixes #99 — Firefox-captured traffic never populates capture-time page_visited_by, so the authz tester lacks the visited-by signal and infers admin-only from the path, reporting false positives when both roles legitimately reach the same endpoint via UI. Derive visited_by from request_observation (distinct observed credential labels merged with any capture-time label) and surface it in the Access Context.

Type of change

  • Bug fix
  • New feature / agent
  • Security tool / MCP server / Bolt plugin
  • Agent skill / knowledge base
  • UI / TUI improvement
  • Documentation
  • Refactor / performance
  • CI / infrastructure

Security impact

  • This PR adds or modifies tool execution (shell, file, network)
  • This PR changes agent permissions or scope
  • This PR modifies authentication / authorization logic
  • This PR has no security impact

How did you verify it works?

Typecheck clean and existing session tests pass; verified Access Context now emits Visited by: for Firefox traffic without pageUrl.

Checklist

  • bun turbo typecheck passes
  • Tested locally with at least one LLM provider
  • PR is focused on a single change
  • No secrets, credentials, or API keys in the diff
  • Breaking changes are documented (if any)

…ox false positives

Firefox-captured traffic lacks capture-time page_visited_by, so the authz
tester infers admin-only from path alone and reports false positives when
both low/high roles legitimately reach the same endpoint via UI. The
per-credential reachability is already stored in request_observation for
both capture paths. Derive visited_by from distinct observed credential
labels (merged with any capture-time label) and surface it in the Access
Context for both the ingest prompt builder and subagent dispatch, and in
web_get_request_detail.

Fixes CyberStrikeus#99
@lorenzozanee
lorenzozanee requested a review from badchars as a code owner August 29, 2026 18:59
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.

Access-control false positives on Firefox-captured traffic: derive visited_by from observed values instead of capture-time labels

1 participant