Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ 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

- None yet.

### Fixed

- None yet.
- Tightened source-address and sudo-field parsing and preserved CSV newline bytes across platforms.

### Docs

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 23 additions & 1 deletion docs/validation/adversarial-qualification.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<n;i++) print "Mar 10 08:11:22 example-host sshd[123]: Accepted password for user_a from 203.0.113.10 port 4242 ssh2"}' > "$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
Expand Down
Loading