feat(lens): smuggle — invisible-Unicode/bidi + remote-include detection - #3
Merged
Conversation
This was referenced Jul 7, 2026
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
force-pushed
the
feat/verdict-policy
branch
from
July 7, 2026 23:40
951b368 to
c3d06b4
Compare
eric-sabe
force-pushed
the
feat/lens-hardening
branch
from
July 7, 2026 23:40
82b6396 to
61fab25
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
U+E0000–E007F(ASCII smuggling); no legit text use → highU+202A–202E/U+2066–2069(Trojan Source) → highU+200B/200C/2060/180E(excludes emoji ZWJU+200D) → mediumFits the existing machinery
report, contributes toOVERALL, 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 viaHONEY_VERDICT_FLOOR_TRUSTED.perland self-skips (with askippedverdict) 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.ps1report the lens; README updated.🤖 Generated with Claude Code