Vulnerability management evidence for SOC 2 and ISO 27001
By the CapyShield team · · 5 min read
In short
SOC 2 (CC7.1) and ISO 27001 (Annex A 8.8) auditors want proof that vulnerabilities are found regularly, that each one gets a recorded decision, and that the decision was enforced. The least effort way to prove it is to have CI write an OpenVEX document on every build, fail on reachable high and critical findings, and keep manual risk decisions as versioned rules. Raw scanner reports show coverage but no decisions, which is what turns audits into busywork.
SOC 2 and ISO 27001 auditors don't want to see that you have a scanner. They want to see that known vulnerabilities are found on a schedule, that someone decides what to do about each one, and that the decision was carried out. The cheapest way to prove that is to make your CI produce the evidence as a side effect of running, instead of assembling screenshots the week before fieldwork.
What do SOC 2 and ISO 27001 auditors ask for on vulnerability management?
Both frameworks describe outcomes, not tools. In SOC 2, the relevant Trust Services Criterion is CC7.1: the entity uses detection and monitoring procedures to identify configuration changes that introduce vulnerabilities and susceptibilities to newly discovered vulnerabilities. Change management (CC8.1) and restricting the transmission of information (CC6.7) usually come up in the same conversation. In ISO 27001:2022, the matching Annex A control is 8.8, Management of technical vulnerabilities, with 8.12, Data leakage prevention, close by.
In practice, the requests you get look like this:
- Show that dependencies are scanned regularly, not once a year.
- Pick three findings from the period and show what happened to each one, and when.
- Show the criteria you use to decide that a finding doesn't need fixing.
- Show that the evidence wasn't edited after the fact.
A SOC 2 Type II report covers how a control operated over a period, so a single clean scan on audit day proves very little. What matters is a continuous record.
Why does vulnerability evidence turn into busywork?
Because scanner output is not evidence of a decision. A scanner run against a typical lockfile reports every CVE in every installed package, whether your code can reach it or not. In the CapyShield demo project, Trivy reported 22 CVEs; reachability analysis found 6 reachable from production code, 2 only used by tests, and 14 transitive ones that needed a human to look.
If the evidence is the raw scanner report, an auditor sampling those 22 findings will ask why 16 of them are still open. Someone then writes a spreadsheet explaining each one, the spreadsheet goes stale by the next release, and the cycle repeats every audit. The fix is to record the decision, in a standard format, next to the code, every time CI runs.
How do you generate audit evidence from CI instead of screenshots?
Record each finding's status in VEX (Vulnerability Exploitability eXchange). VEX is a machine-readable statement per vulnerability and product: not_affected, affected, fixed or under_investigation. A not_affected statement must carry a justification such as vulnerable_code_not_in_execute_path, and an affected one should carry an action statement. That is the decision record auditors ask for, in a format CISA has written minimum requirements for.
A CI step that scans, triages and keeps the result as a build artifact:
trivy fs --format json -o trivy.json .
capyshield vex --input trivy.json --repo . \
--output release.openvex.json --summary vex.md --fail-on high,criticalEach run gives you three things to point an auditor at:
- Proof of regular scanning: the CI run history itself, with a timestamped OpenVEX document per run. Set
SOURCE_DATE_EPOCHand the document is byte-for-byte reproducible. - Proof of enforcement:
--fail-on high,criticalexits with code3when anaffectedfinding at those severities is present, so a reachable critical blocks the pipeline instead of becoming a ticket nobody reads. - A human-readable summary:
vex.mdis what you paste into the audit request response.
How do you document a finding you decided not to fix?
Write the decision down as a rule, versioned with the code, so the reason and the author show up in git history. CapyShield reads local rules from .capyshield/vex-rules.yaml before it applies any automatic reachability decision:
# .capyshield/vex-rules.yaml
rules:
- vulnerability: CVE-2020-14343
package: PyYAML
status: not_affected
justification: vulnerable_code_cannot_be_controlled_by_adversary
impact_statement: "Only yaml.safe_load on trusted config files."This is the risk-acceptance record ISO 27001 control 8.8 expects, and it answers the auditor's "who decided this, when, and why" with a commit and a pull request review. Automatic decisions are conservative on purpose: reachability is static and package-level, so a transitive package production code doesn't import directly stays under_investigation instead of being guessed away. The facts behind every automatic decision (in_lockfile, dependency_scope, imported_in_prod, matched_files_count) are written into each statement's status_notes, so the reasoning is inspectable.
What evidence covers secrets and data leakage?
Vulnerability management is only half of what auditors probe in the build pipeline. CC6.7 and ISO 27001 control 8.12 ask how you stop information leaving through channels you didn't authorize, and CI jobs are such a channel: install scripts and coding agents run with your tokens in their environment.
An egress policy in the repository plus a per-run log is concrete evidence. capyshield guard enforces capyshield.yaml, exits with code 2 on a blocked connection, and --report writes every connection with its destination_host, bytes_sent, action and rule_id:
capyshield guard --config capyshield.yaml --report egress.json -- npm ci
capyshield actions --fail-on highThe second line audits the workflows themselves for actions not pinned to a commit SHA, tokens with write-all permissions and untrusted input interpolated into run:, and exits 4 at or above the chosen severity. Logs and reports contain only variable names and rule IDs, never secret values, so they are safe to hand to an auditor.
Where does CapyShield Cloud fit in the audit trail?
The CLI produces evidence per run; an audit asks about a period. With --sync, each run's results (vulnerability IDs, package URLs, statuses and reachability facts, never source code) are kept as project history, 1 year on the Team plan. Team rules carry review dates and change history, and the trust portal's evidence pack is one JSON file per product with every stored assessment, each decision and when it was made. OpenVEX and CSV exports cover auditors who want a spreadsheet anyway.
None of this replaces the policy documents your auditor will also read. It replaces the part that used to be screenshots. Start with the docs or the open-source CLI.
Frequently asked questions
- Which SOC 2 criterion covers vulnerability management?
- CC7.1 in the AICPA Trust Services Criteria: the entity uses detection and monitoring procedures to identify configuration changes that introduce vulnerabilities and susceptibilities to newly discovered vulnerabilities. CC8.1 (change management) and CC6.7 (restricting transmission of information) usually come up alongside it.
- Which ISO 27001 control covers technical vulnerabilities?
- Annex A control 8.8, Management of technical vulnerabilities, in ISO 27001:2022. Control 8.12, Data leakage prevention, is closely related for build pipelines that handle credentials.
- Is a scanner report enough evidence for an audit?
- Usually not. A scanner report shows that you scanned, but not what you decided about each finding; auditors sampling findings will ask why open ones are still open. A VEX document records a status and reason per finding, which answers that question.
- How do you prove a vulnerability was accepted, not ignored?
- Record it as a versioned rule with a status, justification and impact statement, for example in .capyshield/vex-rules.yaml, and merge it through a reviewed pull request. Git history then shows who decided, when and why.