Appearance
Mitigations and testing
OWASP becomes actionable when it turns into specific mitigations with owners, evidence, and monitoring signals.
A practical mapping approach
For each OWASP category:
- define one or more controls (guardrails, approvals, validation, monitoring)
- link evidence (design decisions, red-team results, runbooks)
- define tests that detect regressions and drift
Framework mapping
Four layers, one reusable spine.
Frameworks
EU AI Act
ISO 42001
Requirements
Art. 9.1Risk management
Art. 10.2Data governance
6.1.1Risk assessment
Components
Risk identification
Impact analysis
Evidence
Risk register
Test results
Controls
The reusable spine
One control satisfies many requirements across many frameworks, and groups the components and evidence beneath them.
Risk assessment process
Data validation checks
Edge from any layer card crosses into the Controls spine — the same control may serve a regulatory article, a standards clause, a downstream component, and the evidence that closes it.
Where in Modulos
Project → Controlsfor guardrails and operational measuresProject → Evidencefor reusable artifactsProject → Runtime Inspectionfor evaluation signals and historyProject → Requirementsfor tracking scope and completion
Evidence should be reusable (diagram)
Evidence is easiest to defend when it attaches to the smallest meaningful claim (a control component) and can be reused across controls.
Evidence linking
One evidence file, attached to component-level claims, reused across two controls.
model_validation.pdf
CTRL-001 group
Component A
Component B
Component C
CTRL-002 group
Component D
Component E
CTRL-001Model validation
CTRL-002Data quality
1 evidence · 3 linked components · 2 controlsAttach evidence to the smallest meaningful claim — the same file then satisfies parts of every control whose components it covers.
Testing should be continuous (diagram)
Tests become governance signals when they run on a schedule and retain history.
Runtime test
A schedule fires, an operator evaluates, a result is emitted.
Schedule
Runs on cadence (e.g. daily)
Evaluation
1
Fetch latest datapoint
2
metric < threshold3
Emit result
Passed Failed Error
Tests evaluate the most recent signal available within the lookback window. Outside the window, the result is Error, not Failed.
Mitigation patterns (control library)
These mitigation patterns show up across most OWASP categories:
Boundary and instruction controls (LLM01, LLM07)
- separate system instructions from user content; avoid “mixing channels” and clearly label untrusted external content
- treat retrieved content as untrusted input; sanitize and scope it
- do not treat system prompts as secrets or security boundaries; keep prompts free of secrets and authorization logic
- implement detection for repeated probing and extraction attempts
Output validation and action gating (LLM05, LLM06)
- require structured outputs (schemas) and validate strictly
- treat model output as untrusted user input; sanitize and context-encode (ASVS-style), use CSP and parameterized queries where relevant
- add policy checks before actions (allow/deny, scope constraints) and enforce authorization outside the LLM
- use step-up approvals for high-impact actions (“human in the loop”)
Data protection and logging hygiene (LLM02)
- minimize what is sent to the model and what is logged; prevent secrets from entering prompts
- apply retention rules to prompts, traces, and feedback
- strict context scoping and least-privilege access control for retrieval and tools; validate inputs for sensitive patterns
- rotate credentials and gate log access; provide transparency/opt-out for training on user data where applicable
RAG and embeddings security (LLM08, LLM04)
- access control and tenant isolation for vector stores; strict partitioning
- provenance tagging and integrity checks for corpus changes; audit for hidden instructions/poisoning
- retrieval constraints (scopes, allowlists) and citation/grounding requirements
Supply chain governance (LLM03)
- vendor due diligence and re-review on material changes (including T&Cs/privacy changes)
- SBOM/ML-BOM inventories (models, adapters, datasets, dependencies) and license compliance
- integrity verification (pinning, signing/hashes) for models/adapters/code and secure update channels
- environment hardening and change control for deployments
Cost and abuse controls (LLM10)
- strict input size limits plus rate limits, budgets, timeouts, and circuit breakers
- caching and fallbacks for expensive workflows
- reduce sensitive API surfaces (e.g., avoid exposing rich logprobs/logits unless needed) and guard against model extraction
- anomaly alerts for spend and tool-call patterns
Misinformation controls (LLM09)
- define “allowed use” and restrict high-impact contexts
- require grounding/citations and cross-verification when appropriate; escalate uncertainty
- add human review where harm is high (finance, medical, legal, HR)
- add automatic validation where possible, plus UI risk communication that encourages verification (and secure coding practices for code outputs)
Remediation loop (diagram)
Link tests to controls so failures route to owners and remediation produces an auditable record.
Remediation loop
A continuous five-step cycle, not a ticket queue.
Continuous
Remediation
1
Detect
Failed or error result
2
Triage
Data issue vs real drift
3
Fix
Change system or control implementation
4
Record
Update evidence and audit trail
5
Re-verify
Re-run test or monitor
When tests are linked to controls, failures route to control owners and keep governance aligned with reality.
Exports for stakeholders (diagram)
Security governance is easier to communicate when you can generate point-in-time packages.
Audit pack
How four export types collapse into one shippable bundle.
Inputs
Project PDF export
Top controls (PDF exports)
Evidence files (attachments)
Key assets (Markdown exports)
Audit pack
Single shippable bundle
All four input types, versioned together, ready for the auditor.
Snapshot Exports are snapshots. Keep scope stable before exporting — the bundle freezes whatever was in place at export time.
Related pages
Top risks
Understand LLM01–LLM10 and the typical control themes
Human in the loop
Oversight and approvals for high-agency systems
Runtime Inspection
How tests work as governance signals in Modulos
Evidence
Evidence objects, linking, and reuse across controls
Disclaimer
This page is for general informational purposes and does not constitute legal advice or security advice.