Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

STATVS mask: `**Password:** value` masks the closing `**` and leaves the password visible

Open IvanLeontev-stack opened this issue 1 month ago • 1 comments

Version: LifeOS 8.761.0.

What is broken: Markdown-bold labels are common in notes and chat logs. For **Password:** Kj8#mQ2pXz91 the masker places the span on the two asterisks after the colon; the password stays in clear text. **Token:** Zk82nqPxAbc123 behaves the same way (the ** is masked, the token is not).

Steps: await mask("**Password:** Kj8#mQ2pXz91", "k"); detect(...) returns one password span covering ** (offsets 11 to 13).

Expected: the value after the label is masked, as for Password: Kj8#mQ2pXz91.

Actual: **Password:⟦masked:password:…⟧ Kj8#mQ2pXz91.

Where: LifeOS/install/LIFEOS/STATVS/core/lib/mask.ts:833-835 (password label rules, value read by boundSpan) and :824-830 (secret_value rules); the closing emphasis marker sits between the colon and the space and is read as the value.

Suggestion: treat an emphasis run (**, __, *, _) directly after the separator as part of the label, then read the value.

IvanLeontev-stack avatar Oct 29 '26 10:10 IvanLeontev-stack

[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler

Thanks @IvanLeontev-stack, this was a real leak and a clean report. The masker (now part of Replay, the renamed STATVS) treats any short run of markdown decoration after a : label as syntax, so **Password:** value, __Token:__ value, table cells and backtick labels all mask the value itself. That fix is already in our source with a test covering 22 decorated-label shapes, and it ships in the next release.

danielmiessler avatar Nov 06 '26 13:11 danielmiessler