Skip to content

cso: note optional runtime content-inspection in Phase 7 (LLM security) - #2684

Open
redbotster wants to merge 1 commit into
garrytan:mainfrom
redbotster:cso-phase7-runtime-inspection
Open

cso: note optional runtime content-inspection in Phase 7 (LLM security)#2684
redbotster wants to merge 1 commit into
garrytan:mainfrom
redbotster:cso-phase7-runtime-inspection

Conversation

@redbotster

Copy link
Copy Markdown

What

Adds one short, informational note to /cso Phase 7: LLM & AI Security (cso/sections/audit-phases.md + its .tmpl).

Why

Phase 7's greps find prompt-injection sinks in code (unsanitized output, eval of LLM responses, user input into system prompts). What they can't do is score whether a given piece of ingested content — a RAG chunk, a scraped page, a tool result — is itself an injection payload at runtime. For repos where agents consume untrusted content, that runtime step is a real gap the static pass structurally can't cover.

The change

A single **Optional runtime check** paragraph offering a fully-local way to score untrusted content, with an example that needs no account and no API key:

ONECLAW_LOCAL_ONLY=true npx -y @1claw/mcp   # exposes only an `inspect_content` tool; no vault, no network account

Deliberately kept in line with the skill's existing conventions:

  • Informational, NOT a finding — handled exactly like an unavailable audit tool in Phase 3, so it never adds noise to a report.
  • Vendor-neutral — the note says any equivalent content-inspection step satisfies the gap; the command is just a concrete, zero-setup example (disclosure: I contribute to that tool, which is why I reached for it as the example — happy to genericize or drop the command entirely if you'd prefer).
  • Scoped to fire only when Phase 7 actually turns up untrusted-content ingestion with no runtime guard.

Both the generated .md and its .tmpl are updated together. No functional/skeleton changes; the manifest is a passive registry and is untouched.

Totally understand if this isn't a fit for the zero-noise bar — flag it and I'll adjust or close.

Phase 7 greps find prompt-injection sinks in code but cannot score whether
ingested content (RAG chunks, scraped pages, tool output) is itself a payload
at runtime. Add an optional, informational mitigation note pointing at a
fully-local content inspector (no account/API key), handled like an unavailable
audit tool in Phase 3 (informational, not a finding). Vendor-neutral: any
equivalent inspection step satisfies the gap.
@trunk-io

trunk-io Bot commented Aug 24, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

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.

2 participants