Answering security questionnaires with real evidence

By the CapyShield team · · 5 min read

In short

Security questionnaires ask about coverage, decisions, enforcement and proof. Answer vulnerability questions with a per-build VEX document and a build that fails on reachable critical findings, and secrets questions with both repository secret scanning and an egress policy around builds and agents. Name the mechanism, state its limits and offer the artifact.

"Describe how you identify and remediate vulnerabilities" and "How do you protect secrets and credentials?" appear in almost every security questionnaire, from the CSA CAIQ to the Shared Assessments SIG to a buyer's homemade spreadsheet. The answers that pass review on the first try are short, name the mechanism, and point at an artifact the reviewer could ask to see. This post gives you those answers and shows where the artifacts come from.

What are security questionnaires really asking about vulnerabilities and secrets?

Strip away the wording and a reviewer wants to know four things:

  • Coverage: do you scan everything you ship, including third-party dependencies, and how often?
  • Decision: who decides what gets fixed, by what criteria, and within what time?
  • Enforcement: what stops a known critical issue, or a leaked credential, from reaching production?
  • Proof: can you show it happened, for a sample, over time?

Standard questionnaires group these under headings such as threat and vulnerability management in the CAIQ. Answers that only cover the first point ("we use a scanner") trigger follow-up questions. Answers that cover all four usually close the item.

What evidence answers "how do you manage vulnerabilities?"

A record of a decision for every finding, produced by CI on every build. A raw scanner report shows coverage but no decisions, and most of what it lists doesn't apply: in the CapyShield demo project, Trivy reported 22 CVEs, of which 6 were reachable from production code. The evidence that holds up is a VEX document that gives each finding a status and a reason:

terminal
trivy fs --format json -o trivy.json .
capyshield vex --input trivy.json --repo . \
  --output release.openvex.json --summary vex.md --fail-on high,critical

The output is OpenVEX: each finding is affected, not_affected with a justification like vulnerable_code_not_in_execute_path, or under_investigation. --fail-on high,critical exits 3 when an affected finding at those severities is present, which is your enforcement answer. Decisions people make by hand live in .capyshield/vex-rules.yaml, with an impact_statement explaining why, reviewed like any other code change.

An answer you can paste, adjusted to your process:

text
All dependencies are scanned on every CI build. Each finding is triaged by
reachability from production code and recorded as an OpenVEX statement
(affected / not_affected with justification / under_investigation).
Builds fail when an affected high or critical finding is present.
Manual risk decisions are recorded as versioned rules with a written
justification and peer review. Per-build VEX documents are retained as
evidence and available on request.

What evidence answers "how do you prevent secrets from leaking?"

Two layers, because secrets leak in two different ways. Secrets at rest end up committed to a repository; GitHub secret scanning and push protection detect known token formats in your code and block pushes that contain them. Secrets in flight leave from a running process, and that is where recent incidents happened:

  • In March 2025, a compromised third-party GitHub Action, tj-actions/changed-files, exposed CI secrets in workflow logs (CVE-2025-30066). CISA told affected organizations to identify and rotate exposed secrets.
  • In November 2025, a new Shai-Hulud variant spread through trojanized npm packages, ran during install and published stolen secrets to GitHub repositories; The Register counted about 25,000.

No repository scan sees either. The control that does is an egress policy around the build and around coding agents:

terminal
capyshield guard --config capyshield.yaml --report egress.json -- npm ci
capyshield actions --fail-on high

guard blocks connections to hosts outside your allowlist and requests that carry credentials, including the values of your own sensitive environment variables, and exits 2. In mitm mode it inspects headers, URLs and bodies over HTTPS; the default sni mode enforces hosts and byte counts only. actions flags workflow weaknesses, such as actions not pinned to a commit SHA and write-all tokens, and exits 4. The egress.json report contains hosts, byte counts and rule IDs, never secret values, so it is safe to attach.

How do you write answers that hold up to follow-up questions?

  • Name the mechanism, not the intention. "Builds fail on affected critical findings" beats "we prioritize critical vulnerabilities".
  • Be honest about limits. Reachability in CapyShield is static and package-level: it uses lockfiles and imports, not call graphs, and transitive packages that aren't imported directly stay under_investigation. An egress proxy is cooperative; code that opens raw sockets can bypass it, so say whether you also restrict the network around the job. Reviewers trust answers that state their boundaries.
  • Offer the artifact. "Available on request" is only credible if you can produce it in minutes, for any date in the period.
  • Keep one source of truth. Answer from the same pipeline every time so the answer to customer A in March matches the answer to customer B in June.
  • Match the reviewer's vocabulary. If the question says "remediation timelines", answer with your timelines per severity, then explain how the build enforces them. Mapping your answer to their words saves a round of clarification.

An answer to the secrets question, in the same style:

text
Secrets are stored in the CI platform's secret store, never in code, and
repositories are scanned for committed credentials. Dependency installs,
builds and AI coding agents run behind an egress policy that allows only
listed hosts and blocks requests carrying credentials or the values of
sensitive environment variables; a blocked request fails the build.
Workflows are audited for unpinned actions and over-broad token
permissions. Egress reports (hosts and rule IDs, no secret values) are
retained per build.

How can you stop answering the same questionnaire every quarter?

Point reviewers at a page that stays current. With CapyShield Cloud, --sync keeps each project's history and the Team plan's trust portal turns it into a public page with a live process rating, private links that show one customer the full assessment, and an evidence pack for auditors. Open vulnerabilities are never published. Many reviewers will still send the questionnaire, but the answers become links instead of essays.

The CLI that produces all of the evidence above is open source and runs without an account; the docs cover CI setup.

Frequently asked questions

How should I answer 'how do you manage vulnerabilities' in a security questionnaire?
Describe the mechanism: dependencies scanned on every build, each finding triaged and recorded with a status and reason, builds failing on affected high or critical findings, and manual decisions recorded as reviewed rules. Then offer the per-build VEX documents as evidence.
Is secret scanning in the repository enough to answer secrets questions?
No. Repository scanning catches secrets committed to code, but recent incidents such as the tj-actions/changed-files compromise and the Shai-Hulud npm worm stole secrets from running CI jobs and installs. An egress policy around builds covers that path.
What evidence can I attach without exposing secrets?
OpenVEX documents and Markdown summaries from capyshield vex, and egress reports from capyshield guard --report, which contain hosts, byte counts and rule IDs but never secret values.
Should questionnaire answers mention tool limitations?
Yes. Stating limits, such as static package-level reachability or a cooperative proxy that raw sockets can bypass, makes the rest of the answer more credible and pre-empts follow-up questions.

Sources