Repository navigation
fix(security): expose every executable call in plugin scans - #116222
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 30, 2026, 12:36 AM ET / 04:36 UTC. ClawSweeper reviewWhat this changesThe PR changes plugin package security scanning to report repeated executable-call matches in source order, while summarizing matches beyond a fixed per-rule, per-file limit. Merge readiness✅ Ready for maintainer review The prior blocking concern is addressed: the revised patch retains a deterministic 32-findings-per-rule-per-file bound and adds an explicit overflow finding, while the prior changelog concern is absent from the current two-file diff. Keep this maintainer-authored, protected-label PR open for normal merge review rather than auto-cleanup. Priority: P1 Review scores
Verification
How this fits togetherOpenClaw scans plugin and skill package source during installation and deep security audits, producing findings that help operators assess code before it runs. This PR changes the line-rule collection stage that turns repeated suspicious source matches into install warnings and audit output. flowchart LR
Package[Plugin package source] --> Scanner[Security scanner]
Scanner --> Rules[Line-level security rules]
Rules --> Cap[Per-rule finding cap]
Cap --> Findings[Findings and overflow summary]
Findings --> Install[Install warning]
Findings --> Audit[Deep security audit]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +19, Tests +37. Total +56 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Merge the bounded repeated-match implementation after normal maintainer review and completion of the current required checks, preserving the aggregate overflow evidence as the scanner's package-input safety boundary. Do we have a high-confidence way to reproduce the issue? Yes, at source level: the former first-match behavior can be exercised with multiple Is this the best way to solve the issue? Yes. Reporting distinct accepted matches while retaining a fixed per-rule/per-file cap and an overflow summary is a narrower, safer fix than either silently stopping at the first match or emitting unbounded package-controlled findings. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against cfa98bdf00ac. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
…#116222) * fix(security): report every scanner line match * fix(security): bound scanner match evidence
* origin/main: (24 commits) fix(e2e): apply default service identity per flow (openclaw#116265) chore(android): record 2026.7.4 Play metadata fix(ci): accept one verified Telegram SUT launch (openclaw#116267) chore(android): prepare 2026.7.4 Play release fix(e2e): align service account state (openclaw#116254) refactor(qa): remove live-channel scenario registries and wrappers (openclaw#115752) fix(ci): let trusted Telegram QA stage runtime (openclaw#116252) fix(plugins): plugin install survives pnpm-only overrides (openclaw#116245) test(qa): recognize internal image completions (openclaw#116234) fix(test): review Codex runtime scan chunks (openclaw#116212) fix(systemd): clear start-limit latch before gateway start (openclaw#116178) fix(security): expose every executable call in plugin scans (openclaw#116222) chore(sdk): repin the API baseline after the resolver signature change test(e2e): delay the draft-proof final answer past the start gate fix(channels): resolve tool progress against the caller's stream mode fix(ci): satisfy docs formatting, lint, and the SDK API baseline test(e2e): add a progress-draft scenario to the mock provider docs(telegram): call out the changed default preview on upgrade refactor(channels): render the progress label as a block, not a line fix(channels): show tool lines under the progress status headline ...
What Problem This Solves
Fixes an issue where plugin package security scans could omit later executable calls after finding the first matching call in a file. That made reviewed scan output incomplete when one generated or source file contained multiple process-execution sites.
Why This Change Was Made
The line-rule scanner now reports distinct matches in source order, capped at 32 findings per rule and file. Dense input is still scanned to EOF; overflow becomes a same-severity aggregate finding with the omitted count and final affected line, so output stays bounded without silent omission. Existing context checks, benign member-call filtering, standard-port filtering, bounded evidence, and deterministic order remain intact.
Provenance: the first-match cap was introduced in #9806, merged February 6, 2026. Later scanner work carried that behavior forward.
User Impact
Operators and reviewers now see each normal-volume executable call in plugin security scan output. Dense hostile input produces bounded findings plus explicit aggregate overflow evidence. Runtime plugin behavior is unchanged.
Evidence
node scripts/run-vitest.mjs src/skills/security/scanner.test.ts: 36/36 passedrun-attemptexecution sitesgit diff --check: cleansrc/plugins/npm-install-security-scan.release.test.tscould not start because npm 11 returned the separate package-name-keyednpm pack --dry-run --jsonshape; exact PR CI is the authoritative broader gate