Skip to content

feat(lens): smuggle — invisible-Unicode/bidi + remote-include detection - #3

Merged
eric-sabe merged 2 commits into
mainfrom
feat/lens-hardening
Jul 8, 2026
Merged

feat(lens): smuggle — invisible-Unicode/bidi + remote-include detection#3
eric-sabe merged 2 commits into
mainfrom
feat/lens-hardening

Conversation

@eric-sabe

Copy link
Copy Markdown
Owner

Stacked on #2 (verdict policy) → #1 (baseline). Review/merge in order.

What & why

A honey-native lens for the scanner-evasion classes the research surfaced — the tricks static pattern scanners (including skillspector's frozen patterns) miss. Scans agent-skill/instruction files for:

  • invisible Unicode — tag chars U+E0000–E007F (ASCII smuggling); no legit text use → high
  • bidirectional overridesU+202A–202E / U+2066–2069 (Trojan Source) → high
  • zero-widthU+200B/200C/2060/180E (excludes emoji ZWJ U+200D) → medium
  • remote includes — "fetch/read this URL" instructions (content the on-disk scan never sees) → medium

Fits the existing machinery

  • Contract-compliant lens: appears in report, contributes to OVERALL, and its findings flow through the baseline (pinnable) and verdict policy (first-party remote-include docs land in the review tier). Good synergy — on the real run it finds 26 first-party remote-include refs, all demotable via HONEY_VERDICT_FLOOR_TRUSTED.
  • bash uses perl and self-skips (with a skipped verdict) if perl is absent — core path unaffected. Windows uses native .NET Rune enumeration (no perl).

Verification

Behavior-identical on fixtures across bash + pwsh: tag / bidi / zero-width / remote-include all caught; a clean file with an emoji ZWJ and a plain URL correctly not flagged. ~0.17s over real skill roots. shellcheck clean; PSScriptAnalyzer clean. doctor/doctor.ps1 report the lens; README updated.

🤖 Generated with Claude Code

eric-sabe and others added 2 commits July 7, 2026 19:40
The baseline pins specific reviewed findings; this is the broad dial for the
daily marketplace noise. Two settings, applied after suppression:

  • Provenance: a finding whose location matches HONEY_TRUSTED_PATTERNS
    (default claude-plugins-official) is first-party; the report tags it
    [1st-party].
  • Severity floor: a finding escalates OVERALL only at/above the floor for its
    provenance (HONEY_VERDICT_FLOOR / HONEY_VERDICT_FLOOR_TRUSTED). Below-floor
    findings move to a non-blocking "review" tier — still printed and counted
    (`OVERALL: … (65 review)`), but they don't flip the verdict.

Every classified finding now carries _provenance and _blocking; report.sh /
daily-cycle.sh (and the PowerShell mirrors) share the same classification, so
they agree. A review-only run is CLEAN.

Safe by default: floors default to `none` (everything blocks, as before) — a
security tool must not silently hide findings out of the box. Overrides that
the floor can never mute: bumblebee always blocks (known-compromised catalog),
and a MUTATED pin always blocks (rug-pull tripwire); incomplete/scan_error are
never reclassified.

Multi-OS parity: lib/verdict.sh + win/lib/Verdict.psm1; report/daily-cycle
updated on both sides. shellcheck clean; PSScriptAnalyzer clean; default verdict
unchanged when no floor is set. Docs: docs/VERDICT.plan.md, README (section +
3 config vars), routine-prompt.md + triage-guide.md (the review tier).

Stacked on feat/suppression-baseline.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
A honey-native lens targeting the scanner-evasion classes static pattern
scanners (incl. skillspector's frozen patterns) miss, over agent-skill and
instruction files:

  • invisible Unicode — tag chars U+E0000-E007F (ASCII smuggling): no legit
    text use, carry hidden instructions past humans and byte scanners.
  • bidirectional overrides — U+202A-202E / U+2066-2069 (Trojan Source):
    reorder how text renders vs. is interpreted.
  • zero-width — U+200B/200C/2060/180E (excludes the emoji ZWJ U+200D to avoid
    false positives).
  • remote includes — instructions telling the agent to fetch/read a remote URL
    at runtime (content the on-disk scan never sees).

Contract-compliant lens: bash uses perl (self-skips with a "skipped" verdict if
perl is absent — honey's core path unaffected); the Windows mirror uses native
.NET Rune enumeration (no perl). Verified behavior-identical on fixtures
(tag/bidi/zero-width/remote all caught; a clean file with an emoji ZWJ and a
plain URL correctly NOT flagged). Fast: ~0.17s over real skill roots.

Its findings ride the existing baseline + verdict policy (first-party
remote-include docs land in the review tier / can be pinned). doctor.sh +
doctor.ps1 report the lens; README lens table + config updated. shellcheck
clean; PSScriptAnalyzer clean.

Stacked on feat/verdict-policy.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@eric-sabe
eric-sabe force-pushed the feat/verdict-policy branch from 951b368 to c3d06b4 Compare July 7, 2026 23:40
@eric-sabe
eric-sabe force-pushed the feat/lens-hardening branch from 82b6396 to 61fab25 Compare July 7, 2026 23:40
@eric-sabe
eric-sabe changed the base branch from feat/verdict-policy to main July 8, 2026 03:12
@eric-sabe
eric-sabe merged commit 1d1addc into main Jul 8, 2026
2 checks passed
@eric-sabe
eric-sabe deleted the feat/lens-hardening branch July 8, 2026 03:14
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