Repository navigation
docs(security-planning): name the version-pin overrides and the fidelity probe in the security model - #3389
Conversation
…ity probe in the security model Revalidated SECURITY.md against the scripts and bumped ms.date. - B1 Tampering said the runtime rejects a version mismatch. It does, unless the operator passes --pinned-version or --diagnostic-override; both are recorded in the manifest and neither relaxes the Authenticode check. - Components now lists scripts/Deserialize-Tm7.ps1, which G-SPF-2 already describes, the agent review request schema, and agent-review-request.json. Closes microsoft#3370 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Jamie Kim (jkim323)
left a comment
There was a problem hiding this comment.
Thank you for improving the security model documentation, Anshuman Prakash (@Anshuman-Prakash)! Auditing security-planning/SECURITY.md against the scripts and surfacing Deserialize-Tm7.ps1, tm7-agent-review-request.schema.json, agent-review-request.json, and the --pinned-version / --diagnostic-override flags makes the threat model much clearer.
After reviewing the update against the scripts, schemas, and repository conventions, we have a few suggested adjustments before merge:
- Clarify in
Bucket B1 > Tampering(SECURITY.md:142, wrapped under 500 characters) thatdiscover_tmt_applicationstill prefersDEFAULT_PINNED_VERSIONduring discovery,--diagnostic-overridealso accepts unavailable (None) version metadata across%LOCALAPPDATA%\Apps\2.0, andrequired_tmt_version/diagnostic_overrideare recorded inmanifest.json(feedback-manifest.jsonrecordspinned_tmt_versiononly). - Tighten
Componentsitems 4-6 (SECURITY.md:54-56) to noteDeserialize-Tm7.ps1's standalone unpinned 32-bit invocation andLoadFrom/ReadObjectbehavior, distinguish runtime-enforced schemas from test-checkedtm7-agent-review-request.schema.json, and mentionfeedback-manifest.jsonplus the conditional stop-state gate and unredacted screenshot handoff foragent-review-request.json. - Synchronize the
security-planningrow indocs/security/security-model.md#skill-security-modelsanddocs/security/README.md#skill-security-models(alongsideSECURITY.md's intro, overview, and Data Flow) and refreshms.dateon your final edit. - Restore
## Checklistand the canonical## Security Considerationsitems from.github/pull_request_template.md, runnpm run validate:local,npm run spell-check, andnpm run lint:md-linkswhen apwsh+ Node environment is available (or let us know if you'd like help verifying them), and align the PR description's manifest andgenerate_tm7.pyoverlay-source notes.
Please feel free to comment if you have questions about any of these suggestions, and we're happy to discuss further.
…ty-planning-security-model
- B1 Tampering: discovery still prefers DEFAULT_PINNED_VERSION, the diagnostic override also accepts unreadable version metadata, and only manifest.json records the override - Components 4-6: the fidelity probe is standalone, unpinned and 32-bit; one schema is test-checked rather than runtime-enforced; feedback-manifest.json and the agent review request gate are named - Sync the intro, posture overview, data flow and the two skill-security-model registry rows Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Thanks Jamie Kim (@jkim323), all four are in 830e0b5. I re-read each point against the scripts before writing it down. B1 Tampering. Split into three bullets, each under 500 characters. It now says that Components 4-6. Item 4 describes the probe as standalone, with its own discovery and no version pin, re-launched under the 32-bit host, using Sync. The intro, posture overview and Data Flow in PR description. Restored Gates. No |
|
Thank you for addressing the feedback Anshuman Prakash (Anshuman Prakash (@Anshuman-Prakash)). Can you please resolve the merge conflict please? Happy to approve once that is buttoned up! |
…ty-planning-security-model # Conflicts: # .github/skills/project-planning/security-planning/SECURITY.md
|
Jamie Kim (@jkim323) conflict resolved in 28f9fd0. It was only the |
Pull Request
Description
Revalidates the security-planning skill's
SECURITY.mdagainst the scripts it describes, fixes the places where it had fallen behind them, and refreshesms.date.The version pin has two operator overrides the model did not mention. B1 Tampering said the runtime "rejects mismatches rather than proceeding with an unverified binary".
evaluate_version_policyinvalidate_tm7_with_tmt.pyreturns allowed as soon asdiagnostic_overrideis set, before it compares anything, so an executable whose version metadata is unreadable (None) is accepted too.--pinned-versionreplaces the version the policy compares against, butdiscover_tmt_applicationstill prefers a candidate atDEFAULT_PINNED_VERSIONwhen it selects among trusted executables. The section now says so, and adds the two facts that bound the exception:discover_tmt_applicationfilters candidates throughis_trusted_tmt_executablebefore any version is compared.manifest.jsonrecords both choices asrequired_tmt_versionanddiagnostic_override, in the validation and the feedback-loop paths.feedback-manifest.jsonrecordspinned_tmt_versiononly, so an override is not visible there.Components omitted the PowerShell fidelity probe. G-SPF-2 already describes the risk of
scripts/Deserialize-Tm7.ps1loading a TMT assembly in-process, but the script was not in the component list. It is now described as what it is: standalone (only the test suite and an operator invoke it, not the Python harness), with its own assembly discovery and no version pin, re-launched under the 32-bit Windows PowerShell host, loading each signature-checked assembly withAssembly.LoadFromand calling the tool serializer'sReadObject.The agent review request was missing.
assets/schemas/holds three contracts, not two. The overlay and feedback-manifest contracts are enforced at runtime byvalidate_layout_overlayandvalidate_feedback_manifest;tm7-agent-review-request.schema.jsonis only checked by the test suite. A feedback-loop run writesagent-review-request.jsononly when it stops asautomated-ready-pending-human,repeated-defect-no-improvementormax-iterationswith surface metrics captured. Its text goes through the evidence redactor, but it hands the reviewer paths to screenshots whose pixels are never redacted.Registry rows synchronized. The intro, Security Posture Overview and Data Flow in
SECURITY.md, and thesecurity-planningrows indocs/security/security-model.mdanddocs/security/README.md, now name the fidelity probe; the repo-wide row also names the version-pin overrides as a residual gap. I leftms.dateon those two docs pages alone, since I changed one row in each and did not revalidate the rest of either page.What I checked and left alone because it still holds:
7.3.51110.1DEFAULT_PINNED_VERSIONdiscover_tmt_applicationapproval_state: pendingvalidate_tm7_with_tmt.py,tm7_visual_feedback.py_resolve_layout_overlayingenerate_tm7.py, which callsvalidate_layout_overlayintm7_visual_feedback.pyWORKSPACE_OWNER_MARKER,prepare_owned_workspacescripts/;urllib.parseis used for URL splitting onlyI did not re-derive the likelihood and impact ratings; those are judgments, not facts I can check against code.
Related Issue(s)
Closes #3370
Type of Change
Select all that apply:
Code & Documentation:
Testing
Read-through against
scripts/validate_tm7_with_tmt.py,scripts/tm7_visual_feedback.py,scripts/generate_tm7.py,scripts/Deserialize-Tm7.ps1,tests/test_validate_tm7_with_tmt.py,SKILL.mdandreferences/tm7-generation.mdatmain. No code changed.There is no
pwshon this machine, so I ran the Node-based gates directly at their pinned versions on the three changed files:cspell@10.4.0with the repo config and thespell-checkglobmarkdown-table-formatter@1.7.0(lint:tables)markdownlint-cli2@0.24.0(lint:md) ondocs/security/*.md.github/skills/**is ignored by.markdownlint-cli2.jsoncNot run:
npm run validate:localas a whole,lint:md-linksandlint:frontmatter, which arepwshscripts. The change adds no links, and the only frontmatter edit isms.dateonSECURITY.md. Help verifying those three would be welcome.Checklist
Required Checks
AI Artifact Contributions
hve-builderreview mode to review contributionhve-builderreviewRequired Local Checks
The following local-safe validation commands must pass before merging:
npm run validate:local(needspwsh; partial, see Testing)npm run validate:docs(not run)npm run spell-check(run ascspell@10.4.0on the changed files)npm run lint:md-links(needspwsh; no links added)Security Considerations
🤖 Generated with Claude Code