docs(data): define configuration vulnerability annotations - #80
Open
Du-professor wants to merge 2 commits into
Open
docs(data): define configuration vulnerability annotations#80Du-professor wants to merge 2 commits into
Du-professor wants to merge 2 commits into
Conversation
Du-professor
marked this pull request as ready for review
July 29, 2026 05:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #8
Summary
This PR defines a consistent annotation model for configuration and non-taint
vulnerabilities and applies it to the four OpenClaw Dockerfile samples
identified by Issue #8.
The work is intentionally independent from the separate code-location-repair work. It was created
from
Tencent/VulnGym:mainin a separate worktree and branch, contains nocommits from that work, and changes only:
config_vuln_annotation.mdconfig_vuln_diff.csvdata/entries.jsonlAnnotation model
entry_pointanchors theconfiguration block,
critical_operationidentifies the narrow dangerousdirective, and
tracecontains only meaningful state transitions.entry_pointanchors the inspectedconfiguration scope and
critical_operationanchors runtime activation orthe explicit end of the scope.
tracemay be empty and is not populated with routine instructions merelyto imitate a taint flow.
and do not overstate container-root impact as guaranteed host compromise.
The document also proposes optional, backward-compatible
annotation_typeandmissing_conditionfields for future discussion. This PR does not changeSCHEMA.mdor add those fields to the dataset.Sample corrections
All source evidence was checked against OpenClaw commit
c56fb7f353d63d6ea97028ee7d8a97bc4edf21c1, referenced byGHSA-W7J5-J98M-W679.
entry-00241: retainsFROMas the user-configuration scope anchor andCMD ["bash"]as the root runtime activation point; removes seven ordinarybuild instructions from
trace.entry-00242: uses the final explicitRUNas end-of-scope evidence andstates that the actual defect is the absent
USERdirective; removes thepseudo-taint trace.
entry-00243: connects the inherited root user directly toENTRYPOINTandremoves package/copy/chmod steps that do not alter the user configuration.
entry-00244: corrects the factual model. The container starts asapp, notdirectly as root; the core defect is
NOPASSWD:ALL, with a short traceshowing
USER app, demonstrated sudo capability, and runtime exposure.verifyremains0, and all non-node fields are unchanged.Field-level diff
config_vuln_diff.csvcontains 39 auditable rows with this interface:Scalar replacements are recorded per field. Trace additions and deletions
include the complete node JSON.
Verification
entry-00241throughentry-00244{file, line, code}checks: passed for every resulting nodegit diff --check: passed418553ffrom the separate code-location-repair branch is not an ancestor of this branchThe OpenClaw source snapshot, caches, temporary validation scripts, and
credentials are not committed.