﻿# Full-text search permissions: hidden files can affect ranking

A FAST 2005 study shows how global ranking statistics can reveal hidden-file information after result filtering, under a specified historical threat model.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/full-text-search-global-statistics-permission-leakage/
Language: en

## A historical search-security result with a precise threat model

The FAST 2005 paper [A Security Model for Full-Text File System Search in Multi-User Environments](https://www.usenix.org/conference/fast-05/security-model-full-text-file-system-search-multi-user-environments) asks whether a shared index can reveal information about files a user cannot search. Its answer concerns more than displaying a forbidden document: relevance scores and result order can depend on hidden content.

This is a historical Unix filesystem study. It does not establish a vulnerability in current desktop products or modern vector databases. Its enduring engineering question is whether observable search behavior depends on a collection larger than the requesting user's authorized view.

## Hiding documents after ranking can leave information behind

The [full paper](https://static.usenix.org/event/fast05/tech/full_papers/buettcher/buettcher_html/) analyzes a system that computes relevance using global collection statistics, then removes inaccessible files. Visible files can still receive scores influenced by terms appearing in hidden files. Removing the hidden rows therefore does not remove their contribution to the scoring calculation.

The authors demonstrate inference of term-occurrence statistics from returned scores and, under their assumptions, from relative order without scores. The result depends on a specified ranking model and the ability to influence searchable content. It should not be retold as unrestricted recovery of arbitrary private files from any search interface.

## The proposed boundary reaches into statistics

The paper's alternative integrates permission restrictions into query processing. Only postings from files searchable by the requesting user reach the query processor, and ranking statistics are derived from that same restricted view. This goes further than checking whether the final returned identifier is allowed.

The distinction helps explain why a candidate filter and a complete confidentiality claim are different. The existing [filtered HNSW guide](/journal/qdrant-payload-index-filtered-hnsw/) addresses eligible search populations. The historical paper adds a separate question about how shared statistics influence the observable answer. Applying that question to another engine requires examining its actual scoring and indexing architecture.

## Permission changes and index changes have different clocks

The implementation maintains a representation of searchable file extents. Removing an extent can immediately exclude a deleted file from query processing while expensive physical index updates are deferred. Under the paper's model, the query uses a fixed permission view established when processing begins.

This creates a concrete operational question: what is the promised boundary after a permission change? A system may refresh document visibility yet retain shared statistics or cached rankings from another state. A correctness test should state the selected consistency policy rather than silently assume immediate revocation across every artifact. Filesystem access and application-level search authorization are related but separately implemented decisions.

## A defensive comparison preserves the authorized view

A useful isolated fixture keeps the requesting user's visible documents and queries fixed while changing only inaccessible material. It compares returned identifiers, scores, ordering and other exposed aggregates. Any difference then deserves explanation under the intended confidentiality contract. The [field-weighting guide](/journal/weaviate-bm25f-field-weighting/) provides related context about how ranking evidence enters the calculation.

This is a proposed diagnostic for a controlled test collection, not a claim that a specific current engine fails it. The paper's performance measurements use an old workstation and synthetic permission assignments; they cannot specify today's overhead. Its concrete contribution is the demonstrated gap between filtering forbidden rows and preventing hidden content from influencing ranked search results.
