Repository navigation
Conversation
…reads Review follow-ups for secfoo-com#147 (secfoo-com#117), pushed by the maintainers: - has_json_draft(): a JSON draft envelope only counts as an echo when the text has no Markdown headings of its own. A real report that quotes {"draft_report": ...} is no longer rejected, while an echo after a preamble, in a code fence, in a blockquote or bare still is (the fenced echo used to give zero findings and pass --fail-on). - extract_overall_risk_rating(): looks in prose, then blockquotes (a rating in a callout is found again, as on main); a report starting with a link is no longer mistaken for JSON; a whole-text JSON document still has no rating. - Evidence scrubbing covers /var/folders/.../T, /home/<user> and C:\Users\<user>; the published records and streams are re-scrubbed byte-for-byte and their capture_sha256 values updated. No host paths remain in docs/evaluations. - Stored reports are cached by (path, mtime, size), so the assessments list and dashboards stop re-parsing every report on every load. - Architecture, threat-modeling and third-party pages warn about stored reports that could not be parsed, like the SCA and secret pages. - The malformed-report reason is in the --json run objects (failure_reason) and under the status in the results table. - summarize(): the delimiter row has 15 columns, so the table renders. - Property tests: example findings in fences and blockquotes are never counted; ratings round-trip as a line, list item or callout; the rating extractor and severity counter never disagree on what is malformed. Counts and ratings match main on all 192 reports and transcripts in the repository. Each fix was checked by reintroducing the bug. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…code The adversarial evaluation corpus needs a real vulnerability for the agent to find (e.g. the MD5 password hash in the unicode fixtures), so CodeQL's findings there are expected and must not reach the Security tab. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Thank you, @oliarmak-web, and welcome: this is your first merged contribution to secfoo, and it is a substantial one. Over three rounds you fixed every blocker from #134 and #145: no live agent-instruction files, the line-separator gate bypass, graceful failure with valid JSON, unparsable stored reports no longer breaking pages, a single parse per report, honest evidence labels, and a pinned, scheduled fuzz run. The third review found a few remaining problems. Rather than send it back again, I pushed fixes onto your branch (3b2d978, 4bb13f1):
Your own follow-up (54d8660), rejecting an echo behind a fake report heading, closes the last gap in my version. I re-ran the regression tests and the parity check on it: counts and ratings match Still open, and fine as a follow-up: the per-file random boundaries in the API prompt cost about 100 tokens per file, and the published numbers predate the current corpus, as the docs already say. Merging, and you've earned your leaderboard points. |
|
Correction to my comment above, @oliarmak-web: I didn't merge after all, because I saw you've kept this as a draft while the fresh free-model measurements are pending, and that's your call to make. From the code side it is ready: the fixes above are in, your 54d8660 is verified, and CI is green. Two ways forward, whichever you prefer:
Either way, please keep the branch up to date with |
|
Thanks for the review and fixes. Let’s land the code now and submit fresh free-model measurements separately. I’ve marked the PR ready. Could you merge main into the branch as offered, then merge once the required checks pass? |
# Conflicts: # fuzz/fuzz_parsers.py # src/secfoo/runner.py # tests/test_property_parsers.py # tests/test_runner.py
| assert repo.list_runs()[0].status == 'failed' | ||
| assert repo.list_sast_findings() == [] | ||
| finally: | ||
| repo.close() |
|
Thanks, @oliarmak-web. Done: I merged |
Leaderboard update
oliarmak-web now has 10 points (rank #4). 15 more to reach Bronze. |
|
@oliarmak-web I opened #150 for the fresh measurements and assigned it to you, so that follow-up PR is scored on its own. Reference it with |
|
Thank you so much, @vsn411, for the thoughtful reviews, your patience across the revisions, and the fixes you contributed directly. I really appreciate you helping bring this work over the finish line and welcoming my first contribution to Secfoo. Thank you as well for recognizing the work and for the 10 leaderboard points, placing me at #4—it means a lot. I’m continuing with #150: fresh measurements on current main and the revised corpus, at least two trials per case, using free local inference only. I’ll publish scrubbed, reproducible records with clear telemetry limitations and submit a separate follow-up PR referencing Closes #150. Thank you again for the opportunity and your support. |
Conflicts with secfoo-com#146/secfoo-com#147 resolved by keeping both sides: fuzz_parsers keeps the shared _common runner plus main's MalformedReportError handling and coverage-table checks; settings.py keeps the new MCP type checks plus main's `hosts` parsing and `defaults.context`. Review follow-ups for secfoo-com#149 (secfoo-com#121), pushed by the maintainers: - fuzz.yml: replays every seed corpus and reproducer (blocking), then fuzzes 30 s non-blocking on PRs and 60 s blocking nightly; concurrency group; checkout without persisted credentials. parser-fuzz.yml (atheris 2.3.0, weekly) is removed: the matrix replaces it. - `secfoo run`: an unknown defaults.agent / defaults.depth is an error only when no --agent / --depth flag overrides it. - Config: shapes that always worked keep working -- `timeout = 1800.0`, scalar env/header values (coerced to strings), a blank command/url next to the other, any transport name. Values that used to crash still raise a ConfigError naming the key. - SARIF: a zero-padded line ("0000000042") keeps its region. - Runtime evidence: only json.loads is covered by the broad decode-error catch, so a validation bug surfaces instead of becoming "not valid JSON". - Heartbeat API: the same crash classes as /events (deep nesting, 4300+ digit ints, values over 64 bits, lone surrogates) now get 400/422, not 500. - Ingest harness clears the runtime tables per input, so a crash reproduces from its own file; corpus replay runs files without an extension too. - CONTRIBUTING.md: fuzz_parsers' contract and the workflow schedule. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…y found (#149) Coverage-guided fuzzing in CI (#121): six harnesses (parsers, SARIF/JSONL export, skill loader, config, docext, runtime ingest) sharing one runner, seed corpora with crash reproducers, Hypothesis property tests, and fixes for the crashes found. Maintainer follow-ups: merged with #146/#147, one Fuzz workflow (blocking corpus replay; 30 s non-blocking on PRs, 60 s nightly) replacing parser-fuzz.yml, flags override stale config agent/depth, config shapes that always worked still load, zero-padded SARIF lines, narrower evidence decode catch, heartbeat API hardened, per-input ingest isolation. Co-authored-by: karthickmk2001 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes #117
Supersedes #145 and #134, addressing the latest maintainer review. GitHub rejected reopening #145, so this follows the invitation to submit a replacement. Rebased onto upstream main at ffbe169.
Repository-supplied instructions can suppress or fabricate findings. This adds a paired adversarial corpus, opt-in collection and offline evaluation, and consistent report/prompt handling. Malformed reports fail the run while preserving normal CLI JSON, other skill outcomes, and inspectable artifacts.
Latest review fixes
_run_single_skillhandles malformed report errors locally, records a failed outcome and readable diagnostic, and preserves report paths. An integration test exercisesrun --skill sast --skill secret-scanning --fail-on high --jsonwith a malformed fake-agent report, checks exit 1 and both JSON outcomes, and verifies both artifacts remain accessible.findings_with_fingerprintsrather than repeated full-report parsing.Validation
Remaining live evidence
Draft pending fresh free-model measurements. The user has authorized only free execution. We are locating their existing runtime; no paid API calls or billable workflow was dispatched. Historical model reports are retained with explicit manifest/setup metadata and sanitized capture provenance. They do not measure this code or the revised corpus.
The location/CWE retention heuristic and planted F900 check require human transcript review and do not establish broad security or statistical significance. See docs/ADVERSARIAL_EVAL.md and docs/evaluations/2026-11-16/README.md.
AI assistance: OpenAI Codex implemented and tested these changes under the account owner's direction. This is a resubmission for review, not a claim of maintainer approval or acceptance.
Follow-up review and validation, November 19
Reviewed maintainer commit 3b2d978 and integrated the concurrent upstream sensor/CI changes and CodeQL fixture exclusion through 4bb13f1. A further reproduced edge case accepted a JSON draft after a Markdown title as a Critical-rated report with zero findings. Commit 54d8660 rejects that case, including serialized report strings, while preserving genuine findings and ratings outside quoted JSON examples. Added regression tests.
Combined-head full suite: 1,535 passed, 1 failed, the same known macOS sensor lifecycle test. The final focused parser/API/property suite passed 235 tests; changed files pass Ruff and git diff --check. Synthetic and both historical live artifacts replay successfully. Coverage-plugin execution is not claimed locally; remote coverage checks remain separate. Fresh free-model measurements are still pending, and the PR remains a draft.