diff --git a/CHANGELOG.md b/CHANGELOG.md index 6cbf50b..592bbec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ All notable user-visible changes should be recorded here. ### Added -- None yet. +- Parser qualification for stream completion, timestamp boundaries and adversarial report inputs. See the [reproduction case](docs/validation/adversarial-qualification.md). ### Changed @@ -14,7 +14,7 @@ All notable user-visible changes should be recorded here. ### Fixed -- None yet. +- Tightened source-address and sudo-field parsing and preserved CSV newline bytes across platforms. ### Docs diff --git a/README.md b/README.md index 2889d4d..157e2b3 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,10 @@ C++20 defensive log analysis CLI for Linux authentication logs, with parser cove It parses `auth.log` / `secure`-style syslog input and `journalctl --output=short-full`-style input, normalizes authentication evidence, applies configurable rule-based detections, and emits deterministic Markdown and JSON reports, with optional CSV exports for findings and warnings. +## Parser qualification + +[Reproduce the #132 release candidate](docs/validation/adversarial-qualification.md) to check malformed input, stream completion, normalized records and downstream reports. The case includes a full-CLI memory measurement at three input sizes. + ## Example Finding A compact finding summary is a bounded triage signal, not a compromise verdict diff --git a/docs/validation/adversarial-qualification.md b/docs/validation/adversarial-qualification.md index b352287..7e98133 100644 --- a/docs/validation/adversarial-qualification.md +++ b/docs/validation/adversarial-qualification.md @@ -4,7 +4,29 @@ Status: QUALIFICATION_READY for the bounded local campaign; SDK blocker resolved GCC, Clang ASan/UBSan and MSVC CTest each passed 11/11. This is local qualification evidence, not a claim of complete memory safety. -## Baseline and isolation +## Release candidate from PR #132 + +Check out [the merged revision](https://github.com/stacknil/LogLens/commit/ff4c3e67a6caddc3fda09f948964b9f631a67405). From the root, run `cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release`, `cmake --build build -j2` and `ctest --test-dir build --output-on-failure`. Clean GCC Release and Clang ASan/UBSan Debug runs each passed 11/11, including injected stream errors and report contracts. + +For a small end-to-end memory check, repeat one accepted synthetic SSH record on a native Linux filesystem. Run with GNU time after building in `build`: + +```sh +out=$(mktemp -d) +for n in 1000 10000 50000; do + awk -v n="$n" 'BEGIN {for(i=0;i "$out/input.log" + /usr/bin/time -f '%e s, %M KiB' build/loglens --mode syslog --year 2026 "$out/input.log" "$out/$n" +done +``` + +| Input lines | Parsed | Warnings / findings | Peak RSS (KiB) | +| ---: | ---: | ---: | ---: | +| 1,000 | 1,000 | 0 / 0 | 4,996 | +| 10,000 | 10,000 | 0 / 0 | 9,636 | +| 50,000 | 50,000 | 0 / 0 | 30,716 | + +These are single-run WSL2 observations for the whole CLI. Memory increased with input size even with a single repeated subject. The stream completion tests cover EOF and input errors; a deployment memory budget also needs workloads with different record lengths, subject cardinality and warning rates. + +## Historical baseline and isolation The local qualification baseline is `6aef72ea5c6eb2657e6e01fe558d257e04997ca8`, including the existing stream-completion correction. It descends from the local