Repository navigation
Validation Rules and Status Codes
Andrew Paolucci edited this page Nov 26, 2026
·
2 revisions
forensics2rust never panics on truncated, malformed, or hostile forensic artifacts:
-
Graceful Degradation: Truncated
.evtx,regf/hbin, ESESRUDB.dat,.pf,.lnk,MDMP, or UTF-16LEReport.werfiles return structured error diagnostics or empty/partial tables without crashing CLI pipelines. -
Filter / Sort Validation: Invalid
--filter(GuapQuery) syntax or unknown--sortcolumn identifiers fail early with clear stderr errors and non-zero exit status rather than silently ignoring filter constraints. -
Permission & Platform Fallbacks: Running Windows live-only collectors (e.g., Security EVTX without admin rights or VSS/WMI on non-Windows hosts) returns structured capability diagnostics or points to
--source <PATH>offline mode (forensics2rust diag).
| Code | Meaning |
|---|---|
-32700 |
Parse error (invalid JSON frame on stdio) |
-32601 |
Method not found or unregistered tool name |
-32602 |
Invalid parameters (e.g., missing required arguments or malformed types) |
0 (CLI Exit) |
Tool/export succeeded cleanly |
| Non-Zero Exit | Structured I/O, query syntax, or corrupt artifact failure |
forensics2rust (v0.1.0) • GUAP Ecosystem (guap.ca) • 12 Crates • 45 Read-Only DFIR Tools • guap-kit Powered • Rust 2024 Edition • Apache-2.0 License • Repository