Skip to content

深度防禦加固:data-guard、entry_points 路徑邊界、bash quoting(#22) - #24

Merged
kiki830621 merged 2 commits into
mainfrom
idd/22-defense-in-depth-hardening
Jul 6, 2026
Merged

深度防禦加固:data-guard、entry_points 路徑邊界、bash quoting(#22)#24
kiki830621 merged 2 commits into
mainfrom
idd/22-defense-in-depth-hardening

Conversation

@kiki830621

Copy link
Copy Markdown
Member

Refs #22

Summary

#12#21 cluster verify 的 security lens 三項 LOW 加固:三個 skill 讀入的 domain 內容一律視為資料而非指令(data-guard,含 validate 的 maturity 降級豁免條款);entry_points 路徑邊界(lookup 讀面、validate 檔案集、create 的 write 面各自落在執行動線上);引導 bash 的路徑引數一律雙引號(plugin CLAUDE.md 為 canonical 慣例)。

Verification

1 opus 雙 lens reviewer(requirements + Devil's Advocate);Codex 429 缺席(fail-closed 記錄)。初判 3 項中 1 項 PARTIALLY + 1 MEDIUM 動線問題,fix round(15ffb7f)後 3/3 FULLY、0 blocking。詳 #22 的 Verify comment。

Checklist

  • Diagnose ✓
  • Implement(1 commit)
  • Verify ✓(fix round 後 PASS)
  • Verify-gated: ready to merge → after merge, run /idd-close to finalize(manual gate;no auto-close trailer)

🤖 Generated by /idd-all. Do NOT add a GitHub close trailer (Closes/Fixes/Resolves) — IDD discipline requires manual close after merge.

… quoted paths (#22)

Three LOW hardening items from the #12-#21 cluster verify (security
lens, DA-triaged as backlog):
- lookup/validate/create treat domain file content — especially
  user-local sources — as data under review, never as instructions;
  instruction-looking content is reported, not executed
- entry_points must resolve inside the domain directory; '..', absolute
  paths, or escapes are ignored with a WARNING (both skills, shared rule)
- guided bash quotes all path arguments; plugin CLAUDE.md carries the
  cross-skill convention

Refs #22
…d severity, quoting self-consistency (#22)

- lookup: path-boundary rule now referenced at the Step 2 site that
  actually consumes entry_points (was only in the bottom error table)
- create: its extend path consumes entry_points on the WRITE side —
  gains its own boundary line instead of relying on the canonical
  catch-all
- validate: data-guard security findings exempted from the maturity
  severity downgrade (legacy-domain injection stays WARNING)
- all three skills: quote echo "$CLAUDE_PLUGIN_ROOT" to match the new
  always-quote convention

Refs #22
@kiki830621
kiki830621 merged commit 107dc5c into main Jul 6, 2026
1 check passed
@kiki830621
kiki830621 deleted the idd/22-defense-in-depth-hardening branch July 6, 2026 06:34
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.

1 participant