Skip to main content

Framework Mappings

Framework mappings connect your rules to specific compliance controls. When a rule passes, the mapping is recorded in the Evidence Pack — providing documented evidence that the control was enforced on that commit.

Available frameworks​

Framework IDFull nameGoverning body
soc2SOC 2 Trust Services CriteriaAICPA
eu-ai-actEU Artificial Intelligence ActEuropean Parliament
hipaaHIPAA Security RuleUS HHS
doraDigital Operational Resilience ActEuropean Commission

Adding mappings to a rule​

- id: sec-001
name: no-eval
severity: block
pattern: "\\beval\\("
maps-to:
- framework: soc2
control: CC6.1
- framework: eu-ai-act
control: Art.9.5

SOC 2 controls​

The most commonly mapped SOC 2 Trust Services Criteria:

Control IDDescriptionTypical rule types
CC1.1Control environmentGovernance rules
CC6.1Logical and physical access controlsAuth, secret management
CC6.6Logical access security measuresInput validation
CC6.7Transmission protectionHTTPS requirements
CC7.1Detection/monitoring of malicious activityInjection prevention
CC7.2System monitoringLogging, audit trails
CC8.1Change managementDeployment rules
CC9.2Risk assessment for vendorsDependency rules
A1.1Availability — capacity planningScaling rules

EU AI Act controls​

Key articles applicable to AI-assisted software development:

Control IDDescriptionApplicable rules
Art.9.2Risk management systemAI audit logging
Art.9.5Testing high-risk AI systemsOutput validation, injection prevention
Art.10Data and data governancePII handling, data quality
Art.12.1Record-keeping obligationsAudit trail rules
Art.13.1Transparency obligationsAI disclosure markers
Annex.IIIHigh-risk AI systems listSector-specific rules
Key date

EU AI Act enforcement begins August 2, 2026. The llm-* rule category and the EU AI Act mappings are designed specifically to satisfy Article 9 and Article 12 requirements for high-risk AI systems.

HIPAA controls​

Control IDDescriptionApplicable rules
164.308(a)(1)Risk analysisSecurity assessment rules
164.308(a)(5)Security awareness trainingN/A (administrative)
164.312(a)(1)Access controlAuthentication rules
164.312(a)(2)(iv)Encryption and decryptionEncryption requirements
164.312(b)Audit controlsPHI access logging
164.312(c)(1)IntegrityData validation rules
164.312(d)Person authenticationAuth middleware rules
164.312(e)(1)Transmission securityHTTPS requirements

DORA controls​

Control IDDescriptionApplicable rules
Art.9.2ICT risk management frameworkSecurity rules
Art.9.4ICT systems protectionVulnerability prevention
Art.10ICT-related incident detectionMonitoring, logging
Art.11ICT business continuityAvailability, scaling rules
Art.25Testing of ICT toolsEvidence of test coverage
Art.28Third-party riskDependency management rules

Using multiple frameworks​

A single rule can map to controls across multiple frameworks. This is common for security rules that satisfy requirements from several regulations simultaneously:

- id: sec-002
name: no-hardcoded-secrets
severity: block
pattern: "(password|api_key|secret)\\s*[:=]\\s*['\"][^'\"]{8,}"
maps-to:
- framework: soc2
control: CC6.1
- framework: hipaa
control: "164.312(a)(2)(iv)"
- framework: eu-ai-act
control: Art.9.5
- framework: dora
control: Art.9.4

Each framework mapping creates a separate line in the Evidence Pack's compliance section, allowing the same check result to satisfy multiple auditors.

Framework coverage report​

Run a report showing which frameworks are covered by your current spec:

vyb check --coverage-report

Output:

Framework Coverage Report
──────────────────────────────────────────
SOC 2:
Covered: CC6.1, CC6.7, CC7.1, CC7.2, CC8.1
Gaps: CC1.1, CC6.6, CC9.2, A1.1

EU AI Act:
Covered: Art.9.2, Art.9.5, Art.10, Art.12.1
Gaps: Art.13.1

HIPAA:
Covered: 164.312(a)(2)(iv), 164.312(b), 164.312(e)(1)
Gaps: 164.312(a)(1), 164.312(c)(1)

DORA:
Covered: Art.9.2, Art.9.4
Gaps: Art.10, Art.11, Art.25, Art.28
──────────────────────────────────────────

Use this to identify which controls are uncovered and either add rules or accept the gap with documented rationale.


Next: Web UI