{
  "schema_version": 1,
  "run_id": "marcuspat--netrain-claude-haiku-5-5-1794782230362365628",
  "date": "2026-11-15T22:45:11.013916+00:00",
  "repo": "marcuspat/netrain",
  "model": "claude-haiku-5-5",
  "kind": "repo",
  "mcp": "none",
  "commit": "58af4f11e1cf90e252b1374866d63cf903de0d26",
  "outcome": "pass",
  "time_to_working_s": 429.41966931702336,
  "install_s": 174.084,
  "first_use_s": 111.109,
  "stuck_step": null,
  "what_failed": null,
  "suggested_fix": null,
  "what_it_did": "Build netrain from source with cargo build --release and replay a pcap with --read --summary",
  "needs": [],
  "needs_which": null,
  "missing": null,
  "claims": [
    {
      "kind": "claim",
      "claim": "NetRain is a Matrix-style network packet monitor for the terminal with pcap replay, flows and scan/flood detection",
      "source": "A **Matrix-style network packet monitor** for the terminal: live capture or pcap replay, protocol and hostname insight, flows, and scan/flood detection, with a JSON mode for scripts. Written in Rust.",
      "input": "tests/fixtures/port_scan.pcap",
      "expected": "summary reports packets, protocols and a port scan alert",
      "command": "./target/release/netrain --read tests/fixtures/port_scan.pcap --summary",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: Port scan 203.0.113.7 -> <internal-ip>",
      "evidence": "…Port scan 203.0.113.7 -> <internal-ip>\n",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "packets:      40\nundecodable:  0\nbytes:        2160\nduration:     1.950s\nflows:        40\npeak threat:  High\nprotocols:\n  SSH   1\n  TCP   39\ntop talkers:\n  <internal-ip> 2.1 KB (40 pkts)\n  203.0.113.7 2.1 KB (40 pkts)\nalerts:\n  Port scan 203.0.113.7 -> <internal-ip>\n",
      "stderr": "",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "Summary mode prints what a capture contained and exits",
      "source": "- **Summary**: `--read FILE --summary` prints what a capture contained and exits",
      "input": "tests/fixtures/port_scan.pcap",
      "expected": "packet count and protocol counts printed, exit 0",
      "command": "./target/release/netrain --read tests/fixtures/port_scan.pcap --summary",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: packets:      40",
      "evidence": "packets:      40\nundecodable:  0\nbytes:        2160\nduration:     1.950s\nflows:        40\npeak threat:  High\nprotocols:\n  SSH   1\n  TCP   39\ntop talkers:\n  <internal-ip> 2.1 KB (40 pkts)\n  203.0.113.7 2.1 KB (40 pkts)\nalerts:\n  Port scan 203.0.113.7 -> <internal-ip>\n",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "packets:      40\nundecodable:  0\nbytes:        2160\nduration:     1.950s\nflows:        40\npeak threat:  High\nprotocols:\n  SSH   1\n  TCP   39\ntop talkers:\n  <internal-ip> 2.1 KB (40 pkts)\n  203.0.113.7 2.1 KB (40 pkts)\nalerts:\n  Port scan 203.0.113.7 -> <internal-ip>\n",
      "stderr": "",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "Port scan detection",
      "source": "- **Port scans** (many ports on one host) and **host sweeps** (one port across many hosts)",
      "input": "tests/fixtures/port_scan.pcap",
      "expected": "alert names source and target of the scan",
      "command": "./target/release/netrain --read tests/fixtures/port_scan.pcap --summary",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: Port scan 203.0.113.7 -> <internal-ip>",
      "evidence": "…Port scan 203.0.113.7 -> <internal-ip>\n",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "packets:      40\nundecodable:  0\nbytes:        2160\nduration:     1.950s\nflows:        40\npeak threat:  High\nprotocols:\n  SSH   1\n  TCP   39\ntop talkers:\n  <internal-ip> 2.1 KB (40 pkts)\n  203.0.113.7 2.1 KB (40 pkts)\nalerts:\n  Port scan 203.0.113.7 -> <internal-ip>\n",
      "stderr": "",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    }
  ],
  "example_checks": [
    {
      "kind": "example",
      "claim": "JSON mode alerts for scripts",
      "source": "README.md Usage: netrain --read trace.pcap --json",
      "input": "tests/fixtures/port_scan.pcap",
      "command": "./target/release/netrain --read tests/fixtures/port_scan.pcap --json --alerts-only",
      "evidence": "{\"type\":\"alert\",\"ts\":1700000001.0,\"ts_us\":1700000001000000,\"state\":\"raised\",\"alert\":\"Port scan\",\"severity\":\"high\",\"source\":\"203.0.113.7\",\"target\":\"<internal-ip>\",\"detail\":\"20 ports in 60s\"}\n{\"type\":\"summary\",\"schema\":1,\"packets\":40,\"undecodable\":0,\"bytes\":2160,\"duration_secs\":1.95,\"flows\":40,\"peak_threat\":\"high\",\"protocols\":{\"SSH\":1,\"TCP\":39},\"hostnames\":[],\"alerts\":[\"Port scan 203.0.113.7 -> <internal-ip>\"],\"top_talkers\":[{\"address\":\"<internal-ip>\",\"bytes\":2160,\"packets\":40},{\"address\":\"203.0.113.7\",\"bytes\":2160,\"packets\":40}],\"dropped\":0}",
      "deferred": false,
      "expected": "newline-delimited JSON alert",
      "hardware_prerequisite": null,
      "returncode": 0,
      "native_crash": false,
      "stdout": "{\"type\":\"alert\",\"ts\":1700000001.0,\"ts_us\":1700000001000000,\"state\":\"raised\",\"alert\":\"Port scan\",\"severity\":\"high\",\"source\":\"203.0.113.7\",\"target\":\"<internal-ip>\",\"detail\":\"20 ports in 60s\"}\n{\"type\":\"summary\",\"schema\":1,\"packets\":40,\"undecodable\":0,\"bytes\":2160,\"duration_secs\":1.95,\"flows\":40,\"peak_threat\":\"high\",\"protocols\":{\"SSH\":1,\"TCP\":39},\"hostnames\":[],\"alerts\":[\"Port scan 203.0.113.7 -> <internal-ip>\"],\"top_talkers\":[{\"address\":\"<internal-ip>\",\"bytes\":2160,\"packets\":40},{\"address\":\"203.0.113.7\",\"bytes\":2160,\"packets\":40}],\"dropped\":0}\n",
      "stderr": "",
      "output_truncated": false,
      "verdict": "yes",
      "outcome": "command completed successfully"
    }
  ],
  "cycle_checks": [
    {
      "kind": "cycle",
      "claim": "Scheduled or looping main behavior",
      "source": "repository entry points",
      "input": "source inspection",
      "expected": "identify the product trigger",
      "verdict": "yes",
      "outcome": "Inspected README.md and CLI --help: no cron, loop, webhook, --once or --now option; --json/--headless streaming runs until input ends or --count is reached, which is not a scheduled cycle.",
      "evidence": "Inspected README.md and CLI --help: no cron, loop, webhook, --once or --now option; --json/--headless streaming runs until input ends or --count is reached, which is not a scheduled cycle.",
      "command": ""
    }
  ],
  "maintenance": {
    "archived": false,
    "ci_commit": "58af4f11e1cf90e252b1374866d63cf903de0d26",
    "ci_read_at": "2026-11-15T20:51:07Z",
    "ci_state": "SUCCESS",
    "commits_90d": 29,
    "last_commit_at": "2026-11-09T03:24:05Z",
    "last_release_at": "2026-10-26T15:21:47Z",
    "median_reply_hours": null,
    "merged_prs_90d": 8,
    "note": "actively maintained: last commit 5 days ago; 29 commits and 8 merged PRs in 90 days; 0 open issues, 0 open PRs; latest release 2026-10-26",
    "open_issues": 0,
    "open_prs": 0,
    "reply_share": null,
    "reply_threads": 0,
    "verdict": "maintained"
  },
  "dependencies": [
    "rustc/cargo 1.100.0 (README requires 1.88+)",
    "libpcap-dev",
    "build-essential (C linker cc)"
  ],
  "local_or_hosted": "local",
  "readme_deviations": [
    "README does not mention a C linker requirement; a fresh guest without cc fails at build script compile"
  ],
  "safety": {
    "version": "z2x-1",
    "summary": "Review signals: 7 known vulnerability, 1 outside write.",
    "limitations": [
      "A short run cannot establish that code is safe.",
      "Connections show IP addresses; proxies can hide the final hostname.",
      "Tracing covers dispatched commands and their children, not the whole OS; guest root can interfere with tracing."
    ]
  },
  "observed": {
    "traced": true,
    "trace_truncated": false,
    "network_rule": true,
    "unsorted_contacts": false,
    "protocols_recorded": false,
    "lookups_recorded": false,
    "unsorted_blocked_ports": [],
    "contacts": [],
    "contacts_not_listed": 0,
    "lookups": [],
    "credential_reads": [],
    "outside_writes": 1,
    "download_and_run_lines": 0,
    "malware_advisories": [],
    "vulnerabilities": [
      {
        "package": "lru",
        "version": "0.12.5",
        "advisory": "GHSA-rhfx-m35p-ff5j"
      },
      {
        "package": "lru",
        "version": "0.12.5",
        "advisory": "RUSTSEC-2026-0002"
      },
      {
        "package": "lru",
        "version": "0.12.5",
        "advisory": "RUSTSEC-2026-0253"
      },
      {
        "package": "paste",
        "version": "1.0.15",
        "advisory": "RUSTSEC-2024-0436"
      },
      {
        "package": "rand",
        "version": "0.9.1",
        "advisory": "GHSA-cq8v-f236-94qc"
      },
      {
        "package": "rand",
        "version": "0.9.1",
        "advisory": "RUSTSEC-2026-0097"
      },
      {
        "package": "rustix",
        "version": "1.0.7",
        "advisory": "RUSTSEC-2026-0486"
      }
    ],
    "secrets": 0,
    "secrets_in_tests": 0,
    "download_lines_in_tests": 0,
    "dependency_versions": 194,
    "scanned": {
      "secrets": true,
      "dependencies": true,
      "source": true
    },
    "capped_kinds": [],
    "findings_capped": false,
    "malware_checked": true,
    "scan_skips": {},
    "compiled": null,
    "installed": null,
    "installed_inventory": false,
    "installed_partial": false
  },
  "platform": "linux",
  "test_version": "readme-b0e6905163cd921206f8f2e9dcec1a38c6413c9c53efdaf37206a37ae1e921f4",
  "evidence_strength": "readme_checked"
}
