SkillSpector icon indicating copy to clipboard operation
SkillSpector copied to clipboard

P9 flags ordinary Markdown table alignment as whitespace padding

Open Spectorian opened this issue 2 months ago • 2 comments

Reproduction

A Markdown table aligned with ordinary ASCII spaces emits MEDIUM P9 Whitespace Padding. The direct static probe used 90 spaces after the first header field and the same column alignment in its data row:

| Field                                                                                          | Value |
|------------------------------------------------------------------------------------------------|-------|
| Name                                                                                           | Alice |

The two reported runs were U+0020 ×90 and U+0020 ×91. The content was a visible table, not text pushed off-screen to conceal an instruction.

Expected behavior

Ordinary consistent table alignment should not itself establish an evasion finding. Inspect the cell contents and retain detection of actual hidden directives, unusual Unicode padding and malformed/off-screen layouts. Keep original source locations and resource bounds.

Related work

PR #624 addresses duplicate raw/normalized occurrences and score inflation. Table recognition remains a separate issue; cell contents still need inspection.

Relevant code

whitespace_padding.py:284, static_patterns_prompt_injection.py:490.

Spectorian avatar Sep 29 '26 00:09 Spectorian

/assign

efegokdemir avatar Sep 29 '26 09:09 efegokdemir

Merge-state update checked on 2026-10-06: PR #681 has merged, and GitHub automatically closed this issue as completed.

P9 now exempts proven visible Markdown-table alignment while retaining detection of malformed alignment and unusual padding. Focused regressions pass.

rng1995 avatar Oct 04 '26 10:10 rng1995