Skip to main content

Tools

Security Checklist

A step-by-step implementation guide with code examples and OWASP AISVS references. Tick items off as you go; progress stays in this browser.

  • 4 categories
  • 10 items

Input Validation & Filtering

Protect against prompt injection and malicious inputs

Implement Prompt Injection Defense

Critical priority · AISVS C2.1 · 4-8 hours

Deploy comprehensive protection against prompt injection attacks

Set up multi-layered defense including input validation, instruction hierarchy enforcement, and pattern detection for known injection techniques.

Verification

  • Test with known injection patterns
  • Verify instruction hierarchy is maintained
  • Check that malicious prompts are blocked
  • Ensure legitimate inputs still work

Input Sanitization & Normalization

High priority · AISVS C2.1 · 2-4 hours

Clean and normalize user inputs before processing

Implement Unicode normalization, homoglyph detection, and content sanitization to prevent adversarial inputs.

Verification

  • Test with Unicode variations
  • Verify homoglyph detection works
  • Check normalization preserves meaning
  • Validate against bypass attempts

Content Policy Screening

High priority · AISVS C2.2 · 6-12 hours

Screen inputs and outputs for policy violations

Deploy content classifiers to detect harmful content categories including violence, hate speech, and inappropriate requests.

Verification

  • Test content classifier accuracy
  • Verify policy violations are blocked
  • Check false positive rates
  • Validate safe content passes through

Training Data Security

Secure training data and prevent poisoning attacks

Maintain Data Provenance

Critical priority · AISVS C1.1 · 8-16 hours

Track and document the source and history of all training data

Implement comprehensive data lineage tracking including source, steward, license, collection method, and processing history.

Verification

  • Verify all data sources are documented
  • Check lineage tracking is complete
  • Validate metadata accuracy
  • Ensure audit trail exists

Automated Data Quality Validation

High priority · AISVS C1.3 · 4-8 hours

Implement automated checks for data quality and integrity

Set up automated validation pipelines to detect format errors, null values, label inconsistencies, and statistical anomalies.

Verification

  • Test validation with corrupted data
  • Verify error detection accuracy
  • Check performance with large datasets
  • Validate quarantine mechanisms work

Data Poisoning Detection

High priority · AISVS C1.3.1 · 12-20 hours

Implement anomaly detection to identify potential data poisoning

Deploy statistical and ML-based anomaly detection to identify suspicious patterns in training data that could indicate poisoning attempts.

Verification

  • Test with known poisoning examples
  • Verify detection sensitivity
  • Check false positive rates
  • Validate alerting mechanisms

Access Control & Authentication

Secure access to AI systems and data

API Authentication & Authorization

Critical priority · AISVS C5 · 4-8 hours

Implement robust authentication for all API endpoints

Deploy strong authentication mechanisms including API keys, OAuth 2.0, or JWT tokens with proper authorization controls.

Verification

  • Test authentication with valid tokens
  • Verify unauthorized access is blocked
  • Check token expiration handling
  • Validate rate limiting works

Rate Limiting & Abuse Prevention

High priority · AISVS C11.2.2 · 2-4 hours

Implement rate limiting to prevent abuse and DoS attacks

Configure rate limiting per user, IP, and API key with different limits for different endpoints based on computational cost.

Verification

  • Test rate limits are enforced
  • Verify different limits per endpoint
  • Check burst handling
  • Validate legitimate users not blocked

Deployment & Audit

Roll out model changes safely and keep an immutable record of them

Controlled Deployment & Rollback

Critical priority · AISVS C3.3 · 8-16 hours

Implement gradual rollout mechanisms and atomic rollback capabilities for model deployments

Implement gradual rollout mechanisms (canary, blue-green deployments) with automated rollback triggers based on error rates, latency thresholds, or security alerts. Ensure atomic rollback restores complete model state including weights, configurations, and dependencies.

Verification

  • Verify gradual rollout mechanisms work
  • Test automated rollback triggers
  • Validate atomic rollback restores full state
  • Check emergency shutdown capabilities

Change Accountability & Audit

High priority · AISVS C12.5.3 · 4-8 hours

Generate immutable audit records for all model changes including deployment, configuration, and retirement

Implement immutable audit records for all model changes including timestamp, authenticated actor identity, change type, and before/after states. Version control prompt templates in git with mandatory code review before deployment.

Verification

  • Verify all model changes generate audit records
  • Check audit records include before/after states
  • Validate prompt templates are version-controlled
  • Test audit log access controls