Expand description
Decode-through pipeline for nested encodings (base64, hex, URL, etc.). Decode-through scanning: decode encoded strings before pattern matching.
Catches secrets hidden behind encoding layers - Kubernetes manifests, CI/CD configs, URL-escaped payloads, string escapes, and hex-encoded credentials.
Structs§
- Decode
Admission Sketch - Bounded, content-free projection of decoder work.
- Decode
Workload Plan - Effective immutable decode policy captured from one compiled scanner.
- Encoded
String - Candidate encoded string discovered during pre-decoding extraction.
Enums§
- Decode
Admission - Proof carried from decoder-owned grammars to the scan admission path.
- Decoder
Registration Error
Traits§
- Decoder
- A trait for decoding chunks to find hidden secrets.
Functions§
- base64_
decode - Decode a standard or URL-safe base64 string, bounded to
MAX_BASE64_INPUT_LENbytes for DoS safety.Err(())on invalid or over-length input. - decode_
admission_ sketch - Compute a standalone decode work sketch with the bundled compatibility
prefix policy. Autoroute uses
crate::CompiledScanner::decode_workload_planso its sketch matches the active detector corpus. - find_
base64_ strings - Find every base64/base64url substring of at least
min_lengthbytes intext, returned as decodableEncodedStringspans. - find_
hex_ strings - Find every hex substring of at least
min_lengthbytes intext, returned as decodableEncodedStringspans. - hex_
decode - Decode a hex string (optionally
_-separated), bounded toMAX_HEX_INPUT_LENbytes for DoS safety.Err(())on odd length or non-hex input. - is_
base64_ candidate_ byte - Whether a byte can appear in a standard or URL-safe base64 string: ASCII
alphanumeric or one of
+ / = - _. - register_
decoder - Register a custom decoder for scanners compiled afterward.
- try_
register_ decoder - Register a custom decoder and return descriptor or collision errors.
- z85_
decode - Decode a Z85-encoded string (length must be a multiple of 5), bounded to
MAX_Z85_INPUT_LENbytes for DoS safety.Err(())on invalid input.