Skip to content

Complete process and confidential metadata protection - #355

Draft
SpecterAoD wants to merge 23 commits into
mainfrom
fix/147-process-confidential-metadata
Draft

SpecterAoD wants to merge 23 commits into
mainfrom
fix/147-process-confidential-metadata

Conversation

@SpecterAoD

@SpecterAoD SpecterAoD commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

DE: R7/R8 aus #147 nach freigegebenem gemeinsamen Plan vollständig in einem PR bearbeiten. Draft bis alle konkreten P1–P5/M1–M7/V1–V2 abgenommen sind; kein Teilmerge. R6 bleibt auf Main abgeschlossen.
EN: Current signed head 8913f5c includes Main35822c685ef through a verified signed parent merge. Approved plan.

Bereich / Area Tatsächlicher Stand / Actual status
M2 path index Prelocked AVL records/root/occupancy and bounded fallible growth; actual conflict, Unicode, denial/unwind tests. Full traversal remains open.
M4 hidden sender Prelocked identity/result and complete signing/verification workspace, direct key/output borrows; original algorithms, parameters and wire bytes retained.
Framing/cursors Trailer/message encoding, retained STREAM/holdback cursors/counts prelocked and wiped before unlock. Full reports/transport remain open.
M6 registry Prelocked control/node arenas; overlap/prefix preserved, poison/release errors refuse new ingress. All four native suites accepted; no ordinary BTree guard records. Two unnecessary unsafe Send/Sync impls removed.
M1/M3 source records Actual source records, sort permutation, growth state and concrete iterator prelocked. Fieldwise fallible copies between protected arenas; stable ordering and direct native path borrowing. All four native suites pass at3dc0fdf.
Name folding Protected PathSet replaces top-level BTreeSet/plain lowercase strings; public build-time Unicode table eliminates private runtime expansion arrays. Exhaustive scalar and real selection cases pass on all four native platforms at5cf5747. Reject sigma combinations the reader already rejects. Original name/wire bytes retained.
Native read adapters Actual inspect/decrypt/list/check/encryption-source paths use prelocked UTF8/UTF16. Explicit Linux openat preserves the existing sandbox; verified Windows248-unit normalization/sharing. Original failing Linux regression retained and corrected without weakening a gate.
Native source metadata Actual walker metadata callers use prelocked libc/Windows SDK records; checked no-follow, sharing fallback and reparse semantics. Typed Windows defaults/fieldwise wiping avoid unnecessary assume_init/raw-wipe blocks. Local16-command acceptance and all four native Rust jobs pass at8ea8d76: Linux22/ARM972 tests each, latest1865 and Windows1686. Actual locked SDK/Find/link cases executed; full logs retained.
Linux startup Checked core-limit observation and mandatory Linux CLI refusal before argv/secret ingress. Local14-command acceptance,888 unchanged source hashes, six strict lints and22 CLI/process cases per feature configuration, including three actual syscall denials. Published atfc26cc9; all four full native Rust jobs pass: Linux22/ARM973 tests each, latest1867, Windows1686. Actual three-denial Linux parent executes.
P1–P5 Explicit library host contract, full verified Windows/native password helper and lifecycle remain OPEN.
Windows access probe Historical DACL probe exposed enabled-SeDebugPrivilege bypass, retained as a real failure. Newly explicitly approved own reduced-token/thread probe passes actual Windows job141011002581 atd5642d9: all seven sensitive rights denied, QueryLimited/Synchronize allowed, all primary privilege IDs/flags unchanged, own children reaped. No memory reads or host changes. This proves the reduced test context only, not administrator protection or whole R7.
Skipped records Protected record arena/growth state/concrete iterator; fallible path/reason/iteration API and CLI callers migrated. Lossy UTF8/UTF16 writes directly into protected output; actual Windows encoder including pending surrogate prelocked. Local16-command/899-source acceptance,97 file groups per feature configuration and69 selected integrations pass; native acceptance passes atbd8dfc5: Linux22/ARM978 tests each, latest1877, Windows1696. Actual unpaired-surrogate and physical locked encoder/arena/cursor cases execute. All25 checks pass, including eight fuzz targets and own Windows probe. No new unsafe/dependency.
Linux traversal Actual rustix RawDir, kernel output buffer, concrete iterator/entry, native-name/permutation/growth/sort/cursor arenas prelocked. No ordinary Linux read_dir/DirEntry/file_name/PathBuf traversal containers; direct borrowed native paths. Stable sorting, depth-first skip order, maximum depth, actual mid-read/partial-growth denial and exact FD/Kernel-lock cleanup pass. Local16-command/906-source acceptance,107 file groups per feature configuration and69 integrations; all four native Rust jobs pass at8ca6fb7: Linux22/ARM988 tests each, latest1897, Windows1696. Actual Linux denial/unwind/depth cases execute on both architectures; Windows is compatibility-only. All25 checks pass. No new own unsafe/dependency.
Windows NT caller New private synchronous directory handle and actual prelocked SDK status/aligned caller output, direct NtQueryDirectoryFile. Reuse protected opened-handle metadata query; reject non-directory/reparse-leaf and poison bad reopen/pre-open/buffer/native-error states. Local14-command/908-source acceptance passes. All four full native Rust jobs pass at aae9a: Linux22/ARM988 tests each, latest1897, Windows1708; all six actual Windows SDK parent cases execute in both feature configurations, including bounded own-handle/lock cleanup, small-buffer refusal, UTF16 output, reparse-leaf refusal and poisoned errors. All25 checks pass. Production migration is now published separately in this same PR; see next row. Four necessary production platform FFI blocks and one optional read-only own-handle observer; root-forbid retained.
Windows production traversal Published at8913f5c: actual NT output/parser/name arenas and UTF16 paths prelocked; direct protected WTF8 keys preserve std OsString order and distinguish unpaired surrogates. Shared Linux/Windows walker, direct source-slot copies, checked verbatim join/depth/skip semantics. Local16-command/918-source acceptance, six strict lints,110 file groups per feature configuration and69 integrations pass. All new Windows physical owner/cleanup/unwind/UTF16/join fixtures compile; native production execution is running, not yet accepted. No new root unsafe or dependency.
Main dependencies Main359/360/361 advanced to dba9c56 (beta6/license checker and unnamed Linux temporary files). Complete conflict-free23-file tree prepared locally with no deletion. New17-command source-bound full integration checkpoint includes actual kill/no-leftover and license-checker tests; running, not yet published. No Main write/release/tag.
Report follow-up Isolated local M5 implementation protects the entire report record, counts and signer/skip presence; migrates caller access to explicit getters and fallible construction before output. Still unvalidated/unpublished; full CLI/JSON transport remains open.
Remaining target/temp/publish/cleanup/identity records, report/progress/CLI/serialization and explicit disclosure/host contracts. All final compatibility/native/security/restore rows remain required.

DE: Freigegebene Rust-Migration: SignedBy::key_id()/try_duplicate statt frei kopierbarer Identität; Report ohne Clone und mit redigiertem Debug; SkippedEntries statt Vec, fallible path()/reason()/try_iter(); format_v4::trailer -> Result. Caller gemeinsam migriert. CLI/JSON/v1–v4-Verträge erhalten. Root-forbid bleibt; notwendige native Grenzen ausschließlich im Plattformmodul mit geprüfter Lebensdauer, Ausrichtung, Länge und Handle-Eigentum.
EN: Identity, signature, framing, registry, native paths, source records, folding, metadata, skipped records, Linux traversal, Windows NT caller, production traversal.

DE: Quellgebundene lokale Metadaten-Abnahme:886 unveränderte Rust-/Manifest-Hashes,16 erfolgreiche Kommandos, Plattform-All-Feature-Lints für Linux/Windows-GNU, acht Plattformtests, vier strenge Root-Lints, je92 Dateigruppen mit/ohne API und57 Integrationen. Tatsächliches begrenztes Fehler-/Unwind-Kind ausgeführt; elf explizit ignorierte Kind-/Race-Einstiege sichtbar. Alle168 Paketversionen/Quellen/Checksummen erhalten, nur bestehende Abhängigkeitskanten erweitert.
EN: Native name checkpoint5cf: Linux22/ARM968 tests each, latest1857, Windows1676; full logs/exact heads/hashes retained. Exhaustive Unicode and actual selection cases execute in all four. All eight fuzz targets and usual MSRV/audit/history/workflow/hardening gates pass at5cf. Historical privileged-debug probe failure remains retained; separately approved reduced-context access probe succeeds, without a whole-R7 claim.

DE: Linux-Startprüfung jetzt veröffentlicht: reproduzierter alter Panic101 bei echter Core-Rücklesungsverweigerung durch kontrollierten Exit1 vor Eingabe ersetzt. Kein Schutzflag bei fehlender Rücklesung, kein --no-sandbox-Bypass. Skip-/Namenskonvertierung jetzt veröffentlicht und lokal vollständig geprüft; alle vier nativen Rust-Prüfungen bestanden. Linux-Traversierung jetzt ebenfalls veröffentlicht und lokal vollständig abgenommen; alle vier nativen Rust-Prüfungen und25 Checks bestanden. Fehlgeschlagene ursprüngliche Budget-Testannahme und Diagnose bleiben erhalten. Windows-NT-Adapter samt echten Root-Caller-Fixtures jetzt veröffentlicht und lokal vollständig geprüft; native Abnahme vollständig bestanden: Linux22/ARM je988, latest1897, Windows1708 Tests, null Fehler. Alle25 Checks erfolgreich, vollständige Logs mit Head/Hashes geprüft. Der produktive Windows-Walker ist nun mit vollständiger lokaler Abnahme veröffentlicht; seine native Laufzeitabnahme läuft. Übrige R7/R8-Verträge bleiben offen.
EN: No blanket Windows/GUI shutdown. Support first as approved. Restricted inspector proposal now has explicit scoped owner approval and actual native success; full R7 support remains open.

DE: Vollständige Quellenarchive byte-/modusgeprüft; Indexbaum, GitHub-Signatur/Parent und alle zuvor ausgeschlossenen Windows-Prototypdateien erst nach konkreter Freigabe aufgenommen; exakten geprüften Indexbaum und Signatur/Parent bestätigt. Unabhängiger vollständiger Bundle-Restore/fsck/Signatur-/Rückweg-Abgleich folgt am kompletten gemeinsamen Endstand. Alle Worktrees/Branches/Sicherungen erhalten.
EN: No partial Main merge, release/deployment/install/deletion or host/account/Registry change. Preserve #117 authentication-before-output and mandatory #148/R6 locks. #128/#149/#150/#98 compared, unrelated scopes remain open. Source-symlink race338 remains explicit. No SonarCloud dependency.

Refs #147

DE: Eigentümerauftrag R7/R8 gemeinsam in einem PR; konkreter Plan vor Produktionscode. EN: Source-bound scope, platform/helper and API compatibility gates, native acceptance and exact rollback. No runtime or host-policy change. Co-authored-by: Codex <noreply@openai.com>
DE: Gemeinsamer R7/R8-Arbeitsstand in Draft355: gesperrter AVL-Pfadindex mit echten Denial-/Unwind-Nachweisen; gesperrte Absender-ID und geteilter Ergebnis-Slot, explizite fallible Rust-Ownership. Tatsächliche Prozessfähigkeiten auslesen. Konkrete eigene Windows-CI-DACL-Probe nach gesonderter Freigabe. Main356-Integritätstests vollständig erhalten. Noch kein R7/R8-Abschluss, kein Teilmerge.

EN: Protect actual path index records and verified sender identities before population. Preserve wire/CLI/JSON contracts, explicitly migrate Rust key_id/Clone access, redact identity Debug. Add actual read-only process capability observation and approved bounded own Windows process-access probe. Integrate Main356 test/audit coverage. Full platform/helper, signature scratch, remaining metadata paths and joint acceptance stay open. Refs #147.
DE: Ausschließlich feste öffentliche Zugriffsmaske und Fehler des eigenen Inspectors protokollieren. DACL, Rechteumfang, strenge Denial-Prüfung und konkrete Freigabe unverändert. Erste native Probe bestätigt Policy-Readback, Zugriffstest scheitert; kein R7-Abschluss.

EN: Report the exact public access mask and owned inspector error for the native Windows experiment. Do not weaken assertions or change the approved own-process policy scope. Native denial remains unverified; joint R7/R8 work stays Draft. Refs #147.
DE: Native Probe zeigt erlaubtes PROCESS_VM_READ trotz bestätigter eigener DACL. Nur TOKEN_QUERY am eigenen CI-Prozesstoken öffnen, GetTokenInformation lesen und ausschließlich Debug-Privilege-enabled-Bool ausgeben. Keine Token-/Thread-/Konten-/Rechteänderung; keine Aktivierung von Privilegien, kein Skip und keine schwächere Denial-Prüfung.

EN: Diagnose whether ambient CI SeDebugPrivilege bypasses DACL checks, using read-only own-token observation. Strict Windows cross-Clippy passes with validated DWORD geometry. Native privilege state remains unproven until the next actual run; R7 stays open. Refs #147.
DE: Verborgenen Signierschlüssel einschließlich Identitätsmatrix vor Seed-Verarbeitung sperren; keine gewöhnlichen Verifikations-Cache-Kopien. Signatur direkt in gesperrte Ausgabe kodieren; vollständige verborgene Dekodier-/SHAKE128-/Matrix-/NTT-/Hint-/Hashpfade vorab sperren. Originale Formeln, Nonces und Wire-Bytes erhalten. Identitätsvergleich mit vorhandener subtle2.6.1 in beiden Featurekonfigurationen; Versionen und Lockfile unverändert.

EN: Direct protected-feature provider lint, strict root lint with/without API, ten DSA groups including actual denial/unwind children and all13 sender integration tests pass. Final local recheck: all721 source hashes unchanged, API all-target Clippy, ten DSA and61 file-module groups pass. No private payload/address assertion output. Current native/fuzz/audit acceptance and remaining metadata/process/helper gaps stay open; one joint Draft355, no partial merge. The reduced own CI-thread proposal is documentation only; unapproved token-changing executable sources remain unpublished locally. Refs #147.
DE: Private Trailer- und Signaturnachricht-Bytes direkt in vorab gesperrte Ziele kodieren; STREAM- und Rückhalte-Zähler vor Klartexteingang sperren. Fallible Trailer-API dokumentieren, ML-DSA-Patchmanifest berichtigen. R7/R8 bleiben gemeinsam in Draft PR355 offen. EN: Prelock framing bytes and retained counters without wire changes; preserve strict provenance checks and all existing signature/stream coverage. Strict API/no-API lint, 67 file and five stream groups per configuration, 29 integrations, format/limits/provenance pass with unchanged source hashes. No new unsafe; unapproved Windows token probe excluded.
DE: Alle neun Änderungen aus Main357 dc04d6f vollständig im gemeinsamen R7/R8-Draft erhalten; Konflikte der bereits übernommenen Integritätsdokumentation gegen den aktuellen Main-Stand abgleichen. Geschützte Framingmodule und API-Migration bleiben erhalten. EN: Preserve every Main357 race/attack regression and strict audit gate; no production logic or policy rollback. Full bundle/source backup verified, attack matrix source validator passes; unpublished registry and unapproved Windows prototype sources remain byte/mode-preserved. Native integrated acceptance pending.
DE: Gewöhnliche BTree-Records durch vor Befüllung gesperrte Kontroll-/Node-Arenen ersetzen; Wachstum zwischen gesperrten Zielen, Wipe vor Unlock, echte Kernel-Fehler/Poisoning fail-closed. Root-forbid bleibt; zwei unsafe Send/Sync-Impls entfallen, eng geprüfte reine Windows-Testabfrage ergänzt. EN: Preserve overlap/refcounts/prefix ownership and exact final kernel baseline; no recursive bootstrap, fallback, version upgrade or host-policy change. Source-bound full suites:280 API/250 no-API groups,31 integrations; final four strict lints and16 hardening groups per feature configuration include actual own-unmap release failure. Complete source archive verified, three unapproved Windows token prototype files excluded. Joint R7/R8 remains Draft pending native final acceptance and other plan rows.
DE: Nativen rustc/LLVM-Codegenerierungsabbruch reproduziert: COFF-Objekte mit16/64KiB Ausrichtung scheitern,8KiB funktionieren. Kontroll-/Node-Ausrichtung unter Windows auf8KiB setzen, ELF/Linux/ARM64 bei64KiB belassen. Reale OS-Seitengeometrie bleibt strikt erforderlich. EN: No weakened memory gate or fallback. Four strict lint configurations and16 hardening groups per feature configuration pass with865 source hashes unchanged across twelve final checks. Full GNU library build is not claimed: existing toolchain lacks dlltool; native MSVC test/release jobs remain required. No installation, privilege change, unsafe addition or unapproved token probe.
DE: Native MSVC-Linkfehler LNK1164 am8KiB-Objektstand abgleichen. Windows-Kontroll-/Node-Ausrichtung auf die unveränderte standardmäßige PE-Image-Ausrichtung4KiB setzen; ELF/Linux/ARM64 bleiben64KiB. Keine /ALIGN- oder Härtungsflagänderung; reale OS-Seitengeometrie weiterhin zwingend. EN: Twelve source-bound checks pass with865 hashes unchanged, including four strict lints and16 hardening groups per feature configuration. Actual local4KiB object/image generation passes; observed permissive lld behavior is not substituted for native MSVC. Full native builds and memory observations pending; three unapproved token prototype files preserved.
DE: Tatsächliche Leseeingänge mit vorab gesperrten nativen Pfaden und kompatibler Windows-Normalisierung schützen. Alle lokalen Prüfungen bestanden; native Pfadabnahme und übrige R7/R8-Lücken bleiben offen. EN: Preserve wire formats and read sharing, keep Root forbid, isolate three reviewed native FFI calls. Record completed native registry acceptance separately; no partial Main merge.
DE: Explizit openat statt altem x86-open-Syscall, ohne Sandbox-Regeländerung. Echte native Positiv-/Negativ-Sandboxproben und ursprünglicher CLI-Fehlerfall in beiden Featurevarianten bestanden. EN: Four strict feature/platform lints and all fourteen source-bound checks pass. Preserve protected path storage and existing syscall policy; retain original failed native logs. Joint R7/R8 remains Draft.
DE: Quellrecords, Sortierindizes und konkreten Iterator vor privater Befüllung sperren; feldweises fallibles Wachstum und echte Speicherfehler prüfen. Alle 13 lokalen Prüfungen mit 876 unveränderten Quellen bestanden. R7/R8 bleiben gemeinsam in Arbeit. EN: Prelock source records, ordering and concrete iterator before private ingress; verify fallible fieldwise growth and real lock denial. All 13 source-bound local checks pass; native acceptance remains pending. No unsafe addition or security gate change.
DE: Geschützten Pfadindex für Top-Level-Namen wiederverwenden, ungeschützte Kleinschreibkopien und private Unicode-Expansionsarrays entfernen. Sigma-Konflikte vor Archivschreiben ablehnen. 13 Prüfungen, 879 unveränderte Quellen, vier strenge Lints, je88 Dateigruppen und57 Integrationen bestanden. EN: Generate public Unicode folding data at build time; write private names directly into locked targets. Exhaustive scalar oracle and real selection regressions pass; package includes build.rs. Native acceptance pending. Joint R7/R8 remains in progress; no new unsafe.
DE: Tatsächliche libc-/Windows-SDK-Metadaten vor Kernel-Ausgabe sperren, Quell-Caller migrieren und No-Follow-/Sharing-/Reparse-Vertrag erhalten. Unnötige Windows-Initialisierungs-/Raw-Wipe-unsafe-Blöcke mit typisierten Defaults und vollständiger Feldlöschung vermeiden. EN: All 16 source-bound local checks pass on886 unchanged sources: strict platform/root feature lints, eight platform tests,92 file groups per configuration and57 integrations. Real bounded denial/unwind and invalid-path tests pass; Windows native execution pending. All168 dependency versions/sources/checksums retained. Root forbids unsafe; joint R7/R8 remains in progress.
DE: Core-Limit-Rücklesung fallibel prüfen und Linux-CLI vor argv/Secrets bei nicht nachgewiesenem Schutz verweigern. Echte begrenzte Syscall-Verweigerungen und beide Featurekonfigurationen geprüft. EN: Checked native getter, mandatory pre-ingress gate and actual denial tests; joint R7/R8 remains in progress, no partial merge.
DE: Konkret freigegebene CI-Probe senkt Privilegien nur im eigenen Token-Duplikat und Inspector-Thread; unveränderte sieben Zugriffsverweigerungen und vollständigen Primärprivileg-Zustand prüfen. EN: Scoped approved experiment, no memory reads or host changes; privileged bypass retained explicitly, no complete R7 acceptance.
DE: Skip-Records, Arena-/Wachstumszustand und konkreten Iterator vor Befüllung sperren; fallible Borrow-Aufrufer gemeinsam migrieren. UTF8/UTF16-Ersatz direkt gesperrt, konkreter Windows-Encoder samt pending surrogate geschützt. EN: Source-bound16-command/899-source acceptance, real resource denial/unwind and69 selected integrations pass; native acceptance pending, remaining joint R7/R8 scope stays open.
DE: Vorhandenes sicheres Rustix RawDir liest in gesperrten Caller-Puffer; konkrete Iteratoren/Records und Namens-/Permutations-/Cursor-Arenen vor Befüllung sperren. Keine gewöhnlichen Linux read_dir/DirEntry/PathBuf-Traversierungscontainer oder neue eigene unsafe-Grenze. EN: Source-bound16-command/906-source acceptance,107 file groups per feature configuration,69 integrations and actual denial/unwind/handle/depth checks pass; native acceptance and remaining joint R7/R8 scope stay open.
DE: Privaten synchronen Handle und echte SDK-/Caller-Ausgabe vor NT-Verzeichnisabfrage sperren; geoeffneten Handle pruefen und Fehlerzustaende strikt sperren. Vorhandenen geschuetzten Metadaten-Query wiederverwenden, keine Root-unsafe-Grenze. EN: Four necessary platform FFI blocks plus read-only optional own-handle fixture;14 commands/908 exact source hashes pass. Native fixtures pending; production Windows traversal and joint R7/R8 remain open.
DE: NT-Ausgabe, Parser, native Namen/Pfade und WTF8-Sortierschluessel vor privater Befuellung sperren; vorhandenen Linux-Walker/Quellslot wiederverwenden. 16 lokale Pruefungen bei918 unveraenderten Quellen bestanden. Keine neue unsafe-Stelle oder Abhaengigkeit; native Windows-Produktionsabnahme und R7/R8-Gesamtvertraege offen.

EN: Reuse protected native arenas, direct source copies and checked synchronous NT output. Preserve raw UTF16, stable std WTF8 ordering, verbatim join and depth/skip rules; bounded own cleanup/unwind and physical-owner fixtures. Full source-bound local acceptance passes; native acceptance pending. Same joint Draft355, no Main merge. Refs #147

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

1 participant