Skip to content

Flag instruction changes that may affect what deep scans report, and consider a maintained detailed-checklist profile (follow-up to #1676) #2242

Open

Description

@MatteoManzoni

Summary

#1676 ("fix: simplify security skill instructions", merged 2026-10-23, first released in 0.7.0) rewrote the bundled deep-scan instructions. Among other changes, the baseline auditor prompt in references/core-scan.md no longer includes the earlier detailed vulnerability-class checklist:

  • 0.1.28: "Check applicable SQL and NoSQL injection, cross-site scripting, missing authentication or authorization, broken access control and IDOR, path traversal, command or code injection, open redirects, SSRF, insecure deserialization, ... and resource exhaustion."
  • 0.8.2: "investigate relevant vulnerability classes rather than relying on keyword matches", naming broad areas (authentication, authorization, parsing, execution, data exposure, resource or memory safety).

The same change removed the "Investigator Perspectives" section, which gave forward, backward and open-ended starting points. The focused investigator prompt now has one sentence on forward dataflow, backward tracing and authorization or state-transition analysis.

The simplification may well be the right call. Our concern is that changes like this may affect what a deep scan reports, and users had little signal that it happened:

  • The 0.7.0 release notes list fix: simplify security skill instructions #1676 only as a one-line pull request entry. The highlights and upgrade notes do not mention a change to discovery instructions.
  • The bundled plugin reports version 0.1.95 in both 0.1.28 and 0.8.2, so the plugin version cannot tell the two instruction sets apart.

We noticed the change after upgrading, and we now pass our own class checklist through --scan-prompt-file. Our internal runs before and after differed, but prompt content, effort, budget and completion were not controlled. We therefore cannot estimate the direction or size of any effect, and we are not reporting results.

Asks

  1. When a release changes discovery, validation or severity instructions, say so in the highlights or upgrade notes, naming the affected behaviour or finding categories, and the expected direction where it has been benchmarked.
  2. Give the bundled instructions their own version or digest, change it whenever they change, and record it in scan output, so results from different instruction sets can be told apart.
  3. Consider a maintained, optional detailed-checklist (compatibility) profile for deep scans, so users who want explicit class coverage do not each maintain their own prompt file.
  4. Consider optional per-class statuses in reports, linked to evidence (for example examined, not applicable or unresolved), and clearly described as non-exhaustive. That would make coverage gaps visible without implying assurance.

The versioned discovery benchmarks proposed in #763 would be a natural way to evaluate changes like #1676 across vulnerability categories.

Activity

  1. self-assigned this
    on Nov 2, 2026
  2. added
    area:deep-scan
    enhancement
    priority:p2
    on Nov 2, 2026
  3. mldangelo-oai commented on Nov 2, 2026

    @mldangelo-oai
    Collaborator

    We restored three parts of the discovery guidance on main in #2246. They apply to both Standard and Deep scans.

    • The baseline auditor now names vulnerability classes at the interfaces where they matter, including tenant isolation at object reads, injection at interpreters, and SSRF at network boundaries. A finding still needs source evidence showing how the operation is reachable and why its controls allow the reported consequence.
    • If investigators rule out their original hypothesis but find evidence of a different broken control on the same path, they can pursue it within scope and budget and record the original question’s outcome separately.
    • Investigators now compare the exact value, object, or destination a guard checked with what the sensitive operation actually uses, and verify that the check happened before the first sensitive effect.

    Separately, #2245 restored a threat-model instruction for library APIs. It asks which protections the library enforces by default and which the caller must enable or implement.

    We ran two matched Deep scans on the same synthetic cases, one with the previous instructions and one with the restored instructions. Both found the same two bugs. A statement download kept the file inside the selected directory but let the requester choose another tenant’s directory. An invoice report verified one signed grant but used a different grant’s tenant. Neither scan flagged a safe control. The original grader scored both reports 0/2 because it missed role labels in the code evidence. Regrading the same saved reports gave 2/2 for each, matching manual review. This pair showed no difference in recall and is too small to estimate a broader effect.

    What remains open

    1. Release notes. fix(scan): restore concrete discovery guidance for Standard and Deep scans #2246 includes a suggested highlight for the next release. The broader request is to flag changes to discovery, validation, or severity and include measured effects where available.
    2. A version or digest of the bundled instructions recorded in each scan’s output.
    3. An optional, maintained detailed-checklist profile. The restored examples are part of the default guidance.
    4. Optional, evidence-linked per-class statuses that show what was examined, ruled inapplicable, or left unresolved, with coverage explicitly described as non-exhaustive.

    The two regression cases add coverage for these specific behaviors. #763 remains open for the broader versioned discovery benchmark across vulnerability categories.

  4. mldangelo-oai commented on Nov 15, 2026

    @mldangelo-oai
    Collaborator

    #2287 added the release-note guidance requested here. When bundled instructions change discovery, validation, or severity, the release guide asks for the affected modes and behaviors, plus the result and scope of any benchmark. The 0.8.3 highlight naming #2246 preceded that policy.

    #2263 tracks the digest request. Two synthetic Standard scans differing by one newline in the bundled instructions sealed with the same plugin version on main. On the PR, each seal contained a distinct instruction digest that matched an independent hash. The recorded digest identifies the selected bundle. Caller prompts and settings need to be compared separately.

    Two product decisions remain open:

    • Should Deep offer a maintained opt-in checklist alongside the default guidance and caller-supplied prompt file?
    • Should reports expose optional, evidence-linked, non-exhaustive statuses for individual vulnerability classes?

    The broader versioned discovery benchmark remains tracked in #763.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:deep-scanenhancementpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions