Repository navigation
feat(ENG-4342): decode UTF-8 encoded values in every field, for every tier - #82
Merged
Merged
Conversation
… tier Port of the TypeScript change: - A base64 decode is kept when its bytes are valid UTF-8 text without control characters, not only when it is pure ASCII. - Tier 1 decodes and scans encoded values in every string field. - Tier 3 reads encoded strings decoded; coverage counts the decoded text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… heads - Tier 3 doesn't ROT13- or ROT47-decode, and control bytes in a base64 decode become spaces (ports of the TS fixes). - The 50,000-character analysis head (Tier 1 values and keys, Tier 2 and Tier 3 decoding) is cut in UTF-16 units, as in TS. Code points reached encoded text past TS's head when astral characters came first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t of cumulative risk Ports of the TypeScript fixes: cascade's chunk review reads the top chunk decoded, and a match found by decoding a non-risky field escalates that field only, not the cumulative tracker. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What
Port of StackOneHQ/defender#160. Encoded values are now decoded wherever they are, for every tier:
Only the analysis copies change. Measurements are in the TS PR.
Tests
tier1-gatecases and twotier3-serializecases.uv run pytest: 811 passed.uv run ruff check: clean.🤖 Generated with Claude Code