Validation

From CoWork-OS/CoWork-OS · View interactive version

Validation is an AI agent skill from the GitHub repository CoWork-OS/CoWork-OS. Use when Codex is already in the validation phase of a security scan or the user explicitly asks to determine whether one or more candidate security findings are valid. Do not use as the primary trigger for full PR, commit, branch, patch, or repository scans.

How to use this skill

Skill file

Security Validation

Objective

Take candidate findings from discovery and produce the strongest evidence-backed validation assessment you can. Prefer targeted, non-interactive reproduction or falsification when it is feasible and proportionate, but use focused code tracing when dynamic execution is blocked by missing services, unavailable infrastructure, or excessive setup relative to the candidate and scan scope.

Artifact Resolution

The path references in this skill are the default locations for this phase.

If the user explicitly provides a different path for a required input or output, use the user-provided path instead of the corresponding default path referenced in this skill.

If a required input is still missing, stop and ask the user for it before continuing.

Use the shared scan artifact path conventions in ../../references/scan-artifacts.md.

Workflow

  1. Before starting, create a detailed validation rubric with up to five criteria for the candidate.
  2. For each candidate finding, identify the claimed attacker input, vulnerable sink, and preconditions.
  3. Choose the validation path using the strongest realistic method available:
  1. For non-compiled stacks, attempt to generate PoCs or targeted commands that exercise the vulnerable path and trigger the vulnerability.
  2. For compiled stacks, prefer dynamic validation when it is feasible with bounded setup: build a debug variant or targeted test harness when available, reproduce the vulnerable behavior with a small PoC, then use valgrind, ASan, or a non-interactive debugger trace when those tools materially improve confidence.
  3. Save any PoC files, inputs, or logs under that finding's validation artifacts path from ../../references/scan-artifacts.md.
  4. If validation is not feasible, document what was tried, what remains uncertain, and the exact proof gap.
  5. Return a clear validation assessment per finding grounded in the evidence, proof gaps, and remaining uncertainty.
  6. Save that finding's visible validation report to its per-finding validation report path from ../../references/scan-artifacts.md.
  7. Append one validation receipt per candidate id to that finding's candidate ledger path from ../../references/scan-artifacts.md. The receipt must record the validation method, evidence or exact proof gap, disposition, and validation artifact/report reference for that candidate finding.

Usage Guidance

Validation Guidance

Follow the instance-preserving validation rules, validation checklist, and confidence guidance in references/validation-guidance.md.

Output Contract

For each candidate finding, include:

For repository-wide and scoped-path scans, also include a validation closure table with columns:

Hard Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.