Skip to content

TEST: planted vulnerabilities (positive control, do not merge) - #2

Open
markus-mohemian wants to merge 1 commit into
mainfrom
test/planted-vuln
Open

TEST: planted vulnerabilities (positive control, do not merge)#2
markus-mohemian wants to merge 1 commit into
mainfrom
test/planted-vuln

Conversation

@markus-mohemian

Copy link
Copy Markdown

Positive control for the security review. Contains SQL injection, command injection and path traversal. Do not merge.

markus-mohemian added a commit that referenced this pull request Aug 24, 2026
Against the real box (Qwen3.8-27B on a DGX Spark) the audit failed with
"vLLM response message contained no content". The cause: vLLM generates a
reasoning model's trace before any answer and charges it to max_tokens, so a
16384-token budget -- PROMPT_TOKEN_LIMIT, an Anthropic-era constant that was
never an output budget -- was spent thinking about a 40k-token diff without
ever reaching the JSON.

- The budget is now its own constant, defaulting to 32768, overridable with
  VLLM_MAX_TOKENS.
- VLLM_ENABLE_THINKING=false turns reasoning off via chat_template_kwargs.
  The same review then completes in under a minute instead of timing out.
- finish_reason "length" is now an error that names the cause and both ways
  out, rather than the useless "contained no content". A truncated report is
  never parsed as findings.

Verified end to end against the real model: PR #2 plants a SQL injection, a
command injection and a path traversal, and all three are found and survive
filtering.
markus-mohemian added a commit that referenced this pull request Aug 24, 2026
A subscription OAuth token authenticates the Claude Code CLI but is rejected
by the Messages API with 401, so the two Anthropic call sites cannot share
one credential. Verified against the real CLI with a bogus-token control to
make sure a local login was not masking the result.

- Either credential now satisfies validation.
- With an OAuth token the audit runs and false-positive filtering falls back
  to the hard exclusion rules, with a warning. Degrading silently would make
  a noisier report look like a clean filter pass.
- action.yml gains claude-code-oauth-token, with the usual env fallback.

Verified end to end against PR #2: the anthropic provider finds all three
planted vulnerabilities using only an OAuth token.
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