- Binary protocols or files routed into a text log pipeline
- Application crashes or buffer limits that truncate structured output
- Encoding mismatches that produce invalid characters
- Partial serialization of JSON or other structured formats
Signals
| Signal | Description |
|---|---|
| Binary prefix | A log body starts with a file signature or non-text bytes, such as a PNG header. |
| Parser failure | A field expected to contain JSON, XML, or another structured format fails parsing. |
| Truncation | A structured value ends before required delimiters, quotes, or braces. |
| Invalid encoding | The payload contains characters that cannot be decoded in the expected encoding. |
Example
- Binary data
- Truncated JSON
- Before
- After
Recommended enforcement
Enforce at edge
Drop malformed log events before they reach the destination provider.
Detection notes
- Tero can match explicit binary signatures with regular expressions.
- Tero can match fields that fail the expected parser, such as malformed JSON.
- Scope malformed-data policies to the emitting service or field when the pattern is specific.
- Dropping malformed events preserves valid error, warning, and diagnostic logs that are parseable.