Repository navigation
Replies: 1 comment
Mechanism confirmed from source — plus two things your mitigation list does not yet coverYour three-arm A/B is the right experiment (it isolates the label rather than What stamps the label
if (api.addMandatoryAce(
acl, abi.ACL_REVISION, abi.SUB_CONTAINERS_AND_OBJECTS_INHERIT, abi.SYSTEM_MANDATORY_LABEL_NO_WRITE_UP, lowLabelSidPtr,
) === 0) { … }one The Why it stands — and why that is not just an undocumented default
The cost being avoided is stated at Correction 1 — clearing the label yourself does not stickBecause that fast path needs the exact label, a manual (One thing worth separating, because two statements in this repo can otherwise look contradictory: the module README's "manual Correction 2 — there is a supported route to a revocable grant, just not one the desktop profile uses
Your ask #2 — the source answer is worse than "no switch today"A switch that keeps the token lowering but skips the label does not produce a weaker sandbox; it produces a workspace the sandbox can start a command in and the command cannot write to. The label rides the same It repairs nothing and writes no ACL — it reads the state and tells the model, in the same step, which condition is outstanding. What I will take from your reportYour A/B is the first measurement I have seen of the usability half of a consequence this codebase documents only on its security side. I am going to file the missing README sentence as the concrete ask, and add a read-only helper to the advisor's next release that reports, for a given directory: is the Low label present, is it inheritable, is the workspace capability grant standing, and what clearing the label would cost (label re-applied and tree re-propagated at the next grant). That turns your three manual arms into one command — and lets the next person with this question see the trade-off before deciding. |
Uh oh!
There was an error while loading. Please reload this page.
环境:Win10 家庭版 22H2(19045.7417),DSH 桌面版 0.2.0-rc.2(desktop 档),沙箱用的是自带的 dsh-sandbox-windows-acl。
问题:某个目录只要被 workspace-write 沙箱授权过一次,目录上就会被永久加上 Low 完整性标签(icacls 能看到 Mandatory Label\Low Mandatory Level:(OI)(CI)(NW)),外加一条 Everyone 拒绝删除子项的 ACE。README 里写了这个改动是常驻的、不会撤销,这我理解,但它有个 Windows 上的副作用:
这个目录里的所有文件,包括后来新建的(会继承 Low 标签),双击打开时都会弹系统的"打开文件 - 安全警告",提示"来自 Internet 的文件可能对你有所帮助……"。我自己手动新建一个 md,打开照样弹,日常用起来很烦。
我在这台机器上做了几组对照:
所以触发条件就是 Low 完整性标签本身(Windows 对低完整性文件的处理跟"从网上下载的文件"一样),和 Zone.Identifier 没关系。
建议:
谢谢。
All reactions