SHADOW AI

Security controls are valuable only when an organization can demonstrate that they:
Exist
Are correctly designed
Are implemented
Operate consistently
Are monitored
Are tested
Produce reliable evidence
Remain effective as the system changes
This is the purpose of security assurance.
For an AI platform, assurance is more complicated than traditional application assurance because security controls may span:
Application code
Cloud infrastructure
Identity systems
AI models
RAG pipelines
Agents
Tool permissions
Data stores
External AI providers
Model lifecycle processes
Human approvals
Security operations
The goal of this chapter is to establish a practical architecture for continuous security assurance and audit readiness without turning security into a purely documentation-driven exercise.
These concepts should be separated.
Asks:
Do our security controls actually work?
Asks:
Do our processes and controls satisfy defined requirements?
A platform can technically satisfy a compliance checklist while still having weak security.
Conversely, a platform can have strong technical security but lack the evidence needed to demonstrate compliance.
A mature program therefore connects:
Security Engineering + Control Validation + Evidence + Governance.
A useful lifecycle is:
Requirement
|
v
Security Control
|
v
Implementation
|
v
Validation
|
v
Evidence
|
v
Review
|
v
Risk Decision
|
v
Continuous Monitoring
|
+------> Revalidation
This should operate continuously rather than only before an audit.
Every important security control should be clearly defined.
A control record can contain:
Control ID
Control Name
Objective
Risk Addressed
Owner
Implementation
Scope
Frequency
Evidence Source
Validation Method
Expected Result
Exceptions
Review Date
Status
For example:
Control: Production administrator authentication
Objective: Prevent unauthorized administrative access.
Validation: Verify approved authentication requirements are enforced.
Evidence: IAM configuration and security test results.
This structure turns a vague security statement into an independently testable control.
Controls should be connected to security objectives.
Examples:
Prevent unauthorized access to sensitive data.
Prevent unauthorized modification.
Maintain service availability.
Ensure identities and artifacts are genuine.
Ensure important actions can be traced.
Ensure personal data is handled according to defined requirements.
Ensure AI behavior remains within defined security and safety boundaries.
AI platforms should additionally define objectives for:
Model integrity
Prompt integrity
RAG isolation
Memory isolation
Agent authorization
Tool authorization
Training-data provenance
Model evaluation
AI safety testing
AI output controls
Human approval
AI provider governance
These objectives should be mapped to concrete controls.
A well-designed control should answer:
What risk does it address?
What asset does it protect?
Who owns it?
What component enforces it?
How frequently does it operate?
How is it tested?
What happens if it fails?
What evidence proves it operated?
If these questions cannot be answered, the control may not be mature enough.
Security assurance should classify controls.
Attempt to stop the event.
Examples:
Authorization
Network segmentation
MFA
Input validation
Tool restrictions
Identify suspicious or incorrect behavior.
Examples:
Monitoring
Security analytics
Integrity monitoring
Alerting
Reduce impact after an event.
Examples:
Credential revocation
Isolation
Rollback
Recovery
Incident response
Strong architecture uses all three.
Controls can be:
Require human action.
Examples:
Security review
Approval
Periodic access review
Executed by software.
Examples:
Policy enforcement
Continuous configuration checks
Automated vulnerability scanning
Combine automation and human judgment.
Examples:
Automated risk detection followed by human approval.
Automation generally improves consistency, but humans remain important for ambiguous and high-impact decisions.
Each important control should have an accountable owner.
Possible owners include:
Security team
Platform team
Application team
AI engineering team
Data team
Privacy team
Compliance team
Operations team
A control without ownership tends to degrade over time.
Control scope should be explicit.
For example:
Control:
Production secrets rotation
Scope:
- Production
- AI inference services
- Agent workers
- API services
Excluded:
- Local developer environments
This prevents confusion during validation.
Controls may operate:
Continuously
Per request
Per deployment
Daily
Weekly
Monthly
Quarterly
Annually
After significant changes
High-risk technical controls should generally be validated more frequently than low-risk administrative controls.
A control should be evaluated at multiple levels.
Would the control address the risk if implemented correctly?
Is the control actually deployed?
Does it continue working as intended?
This distinction is essential.
A firewall policy may be correctly designed but incorrectly deployed.
A perfectly deployed policy may later become ineffective because of configuration drift.
Control tests should have clear expectations.
Example:
Test:
Unauthorized tenant access
Expected:
DENY
Observed:
DENY
Status:
PASS
A stronger test also records:
Version
Environment
Timestamp
Test identity
Evidence
Test methodology
Evidence should demonstrate that a control operated.
Examples:
Configuration snapshots
Access-review records
Audit logs
Security-test results
Deployment records
Model approval records
Vulnerability reports
Backup-test results
Incident records
Evidence should be:
Authentic, attributable, time-bound, and tamper-resistant.
Not all evidence is equally useful.
"The system uses encryption."
Encryption configuration, key-management settings, and automated validation results demonstrate that the specified production storage paths use approved encryption controls.
Evidence should allow an independent reviewer to understand what happened without relying entirely on verbal explanation.
A centralized evidence architecture can be represented as:
Security Systems
|
+-- IAM
+-- Cloud
+-- Kubernetes
+-- CI/CD
+-- Application
+-- AI Platform
+-- SOC
|
v
Evidence Collection
|
v
Evidence Repository
|
+-- Control Evidence
+-- Test Results
+-- Approvals
+-- Exceptions
+-- Audit History
|
v
Assurance Dashboard
Evidence collection should be automated wherever practical.
Security evidence can itself become a target.
Attackers might attempt to:
Delete logs
Modify test results
Alter approvals
Hide failed controls
Change timestamps
Therefore evidence systems should provide:
Access control
Immutable storage where appropriate
Integrity protection
Audit trails
Separation of duties
Retention controls
Evidence should have defined retention requirements.
The retention period should consider:
Legal requirements
Regulatory requirements
Contractual obligations
Incident-response needs
Security investigations
Business requirements
Retention should not mean keeping everything forever.
Excessive retention can increase privacy and security risk.
Evidence may contain sensitive information.
For example:
User identifiers
Security logs
Infrastructure details
Vulnerability information
Model configurations
Incident information
Evidence should therefore receive an appropriate classification and access policy.
AI-specific evidence can include:
Model inventory
Model version
Model approval
Model evaluation
Approved system prompts
Prompt versions
Prompt changes
Source inventory
Access controls
Retrieval tests
Citation validation
Tool inventory
Tool permissions
Agent policies
Human approvals
Agent evaluation
Safety test results
Red-team results
Regression evaluations
Incident records
A production model should have an auditable lifecycle:
Model Candidate
|
v
Evaluation
|
v
Security Review
|
v
Safety Review
|
v
Approval
|
v
Deployment
|
v
Monitoring
Evidence should demonstrate that each required stage occurred.
RAG systems require evidence for:
Data-source authorization
Document ownership
Tenant isolation
Ingestion controls
Retrieval filtering
Access enforcement
Security testing
Data deletion
An important assurance question is:
Can the organization demonstrate that a user cannot retrieve data outside their authorization boundary?
This should be proven through automated tests and operational evidence.
Agents require evidence that:
Tools are explicitly defined
Permissions are limited
High-impact actions are controlled
Human approval is enforced where required
Agent actions are logged
Security tests exist
Runtime policies are active
An agent should never be considered safe merely because its prompt says:
"Do not perform unauthorized actions."
The enforcement mechanism must exist outside the model.
Organizations often need to map internal controls to external frameworks or contractual requirements.
A mapping structure might be:
| Requirement | Internal Control | Evidence | Owner |
|---|---|---|---|
| Access control | IAM policy | IAM evidence | Security |
| Data protection | Encryption | Config/test | Platform |
| Monitoring | Security telemetry | Logs | SOC |
| AI governance | Model approval | Registry | AI Security |
| Incident response | IR process | Case records | SOC |
One internal control can sometimes satisfy multiple requirements.
Organizations should avoid creating separate controls for every framework requirement when one strong control can satisfy several requirements.
For example:
Centralized privileged-access management
may support:
Access control
Least privilege
Authentication
Accountability
Administrative monitoring
This reduces unnecessary complexity.
Controls should also map to risks.
Risk
|
v
Threat
|
v
Security Objective
|
v
Control
|
v
Test
|
v
Evidence
This creates traceability from business risk to technical implementation.
Not every control requires equal assurance effort.
High-risk controls may require:
Frequent testing
Independent validation
Automated monitoring
Strong evidence
Formal approval
Lower-risk controls may use:
Periodic review
Automated checks
Sampling
Risk-based assurance prevents the assurance program from becoming unnecessarily expensive.
Some controls benefit from independent testing.
Examples:
Tenant isolation
Authentication architecture
Critical authorization
Agent tool restrictions
Payment security
Disaster recovery
Production administrative controls
Independence improves confidence that the system is not simply validating itself.
Internal audit can evaluate whether:
Controls are documented
Owners exist
Evidence exists
Testing is performed
Exceptions are tracked
Risk decisions are appropriate
Internal audit should provide independent challenge without becoming the engineering owner of controls.
External assessments may evaluate:
Security controls
Evidence
Governance
Risk management
Operational practices
Organizations should prepare continuously rather than attempting to assemble evidence immediately before an assessment.
Continuous audit readiness means:
Evidence is generated as part of normal secure operations.
Instead of:
Audit announced
|
v
Emergency evidence collection
the goal is:
Normal Operation
|
v
Continuous Evidence Collection
|
v
Evidence Repository
|
v
Audit Readiness
This greatly reduces audit preparation effort.
Evidence can become stale.
For example:
A security configuration from six months ago may not represent the current production environment.
Evidence should therefore have:
Timestamp
Environment
Version
Scope
Collection method
Freshness requirements should depend on the control.
Continuous monitoring can identify:
Control failures
Configuration drift
Missing logs
Unauthorized privileges
Unapproved models
Expired certificates
Disabled security policies
Unexpected data flows
This transforms assurance from periodic inspection into ongoing security engineering.
When a control fails:
Control Failure
|
v
Risk Assessment
|
+---- Low impact --> Track
|
+---- Medium --> Remediate
|
+---- High --> Escalate
|
+---- Critical --> Immediate containment
Control failures should not simply disappear into dashboards.
They need ownership and resolution.
Sometimes a control cannot immediately be restored.
A compensating control may reduce risk.
Example:
Primary Control:
Network restriction unavailable
Compensating Controls:
- Strong authentication
- Narrow authorization
- Rate limiting
- Enhanced monitoring
- Temporary exposure reduction
The exception should have an expiration date.
Every exception should document:
Control
Reason
Risk
Business justification
Compensating controls
Owner
Approval
Expiration
Review date
Exceptions should be treated as risk decisions rather than invisible technical debt.
A useful dashboard can show:
Security Assurance
|
+-- Controls: 96% Passing
+-- Critical Controls: 100% Passing
+-- Failed Controls: 3
+-- Open Exceptions: 7
+-- Expiring Exceptions: 2
+-- Evidence Coverage: 98%
+-- Validation Coverage: 94%
+-- Overdue Reviews: 1
+-- Critical Risks: 0
The exact percentages are illustrative.
The important feature is visibility into security posture.
Controls can use standardized states:
Passing
Warning
Failing
Unknown
Not Applicable
Exception
Under Review
"Unknown" is important.
A system should not automatically treat lack of evidence as proof that a control is functioning.
AI platforms can track:
Approved version
Integrity
Evaluation status
Isolation
Authorization
Data-source status
Tool permissions
Policy status
Approval mechanism
Evaluation coverage
Regression status
Incident trends
Continuous compliance does not automatically equal continuous security.
A platform might have:
Complete documentation
Current policies
Proper audit records
yet still have a security weakness.
Security assurance therefore needs technical validation.
The strongest model is:
Compliance evidence + technical testing + operational monitoring.
A mature program can test at several levels.
Security-sensitive functions.
Interactions between components.
End-to-end security scenarios.
Continuous security invariants.
Governance and process effectiveness.
Important invariants should be continuously validated.
Examples:
Tenant A cannot access Tenant B data.
Admin functions require appropriate authorization.
Unapproved models cannot deploy.
Agents cannot exceed assigned tool permissions.
Production secrets cannot appear in logs.
Critical actions generate audit records.
These properties are stronger assurance targets than generic claims.
Logging itself should be validated.
Tests should determine:
Are required events generated?
Are timestamps accurate?
Are identities recorded?
Are correlation IDs present?
Are sensitive values protected?
Can logs be modified?
Are logs retained appropriately?
A security control without reliable telemetry can become difficult to validate.
Incident-response assurance should verify:
Escalation paths
Ownership
Contact procedures
Containment capability
Evidence preservation
Recovery procedures
Communication
Post-incident review
The best way to validate response capability is through controlled exercises.
Security drills can simulate:
Account compromise
RAG data exposure
Agent misuse
Model integrity failure
Credential compromise
Cloud misconfiguration
Data breach
Service outage
The goal is to identify gaps before real incidents occur.
AI-specific tabletop scenarios may include:
A malicious document influences an AI agent.
A model artifact is unexpectedly changed.
A user discovers another tenant's retrieved content.
An external AI provider becomes unavailable.
An agent begins generating abnormal tool activity.
Teams should practice:
Detection
Escalation
Containment
Investigation
Communication
Recovery
Security assurance must include resilience.
Important evidence includes:
Backup tests
Restore tests
Disaster-recovery exercises
Recovery-time measurements
Recovery-point measurements
Failover testing
A backup that has never been restored should not be considered fully validated.
Supply-chain controls should produce evidence for:
Dependency inventory
SBOM
Vulnerability scans
Model provenance
Artifact signatures
Container scanning
Build provenance
Approval status
This allows the organization to demonstrate what software and AI artifacts entered production.
Every important security change should have traceability:
Change Request
|
v
Risk Assessment
|
v
Approval
|
v
Implementation
|
v
Validation
|
v
Evidence
This provides a complete lifecycle record.
Security configuration should be validated for:
Correct values
Secure defaults
Authorization
Versioning
Change history
Drift
Required dependencies
Configuration assurance is particularly important for:
IAM
Network policy
Model routing
Tool permissions
AI safety policy
Resource limits
Evidence collection can be integrated into engineering systems.
Examples:
CI/CD
|
+-- Security test result
+-- Dependency scan
+-- Artifact provenance
+-- Approval
|
v
Evidence Repository
Similarly:
Production
|
+-- Control telemetry
+-- Configuration status
+-- Audit events
+-- Security tests
|
v
Assurance Platform
Automation reduces manual errors.
Evidence from different systems should use consistent metadata.
Recommended fields:
Evidence ID
Control ID
Source
Timestamp
Environment
System
Version
Collector
Result
Integrity Metadata
Retention Class
This makes evidence searchable and auditable.
Evidence access should follow least privilege.
For example:
Developers may view their service's test results.
Security may access broader security evidence.
Auditors may receive controlled read access.
Sensitive incident evidence may require additional restrictions.
Evidence repositories should not become unrestricted data stores.
Audit evidence can accidentally contain:
Personal information
User prompts
Documents
Security credentials
Sensitive business data
Evidence collection should therefore apply:
Minimization
Redaction
Pseudonymization where appropriate
Access controls
Retention policies
Auditability should not become an excuse for collecting unnecessary sensitive data.
AI outputs may themselves require control validation.
Depending on the application, assurance may evaluate:
Accuracy
Safety
Privacy
Policy compliance
Citation correctness
Hallucination rate
Refusal behavior
Tool-call correctness
This connects security assurance with AI quality engineering.
Organizations can create an internal assurance score based on:
Control coverage
Validation coverage
Evidence completeness
Critical-control health
Open exceptions
Security-test results
Drift
Incident history
However, a single score should not replace detailed analysis.
A platform with a high average score but one failed critical control may still have unacceptable risk.
Critical controls should have special treatment.
For example:
Overall Score = 95%
BUT
Critical Tenant Isolation = FAIL
The platform should still be considered high risk.
This prevents averages from hiding catastrophic weaknesses.
Manual evidence
Inconsistent controls
Limited ownership
Control catalog
Defined owners
Basic evidence
Regular control validation
Security regression testing
Exception management
Automated evidence
Continuous control monitoring
Security invariants
Threat intelligence integration
Continuous risk analysis
Automated validation
Architecture-aware assurance
Evidence generated directly from secure operations
A mature system can be represented as:
GOVERNANCE
|
v
CONTROL CATALOG
|
+-----------+-----------+
| |
v v
CONTROL IMPLEMENTATION RISK REGISTER
| |
v |
VALIDATION <---------------+
|
v
EVIDENCE
|
v
ASSURANCE PLATFORM
|
+-----+-----+
| |
v v
DASHBOARD AUDIT
|
v
CONTINUOUS MONITORING
|
v
CONTROL FAILURE
|
v
REMEDIATION
|
+------> REVALIDATION
This architecture allows security assurance to operate continuously.
A platform can implement assurance in stages.
Document:
Control ID
Objective
Owner
Scope
Frequency
Validation method
For each control, define:
What evidence proves this control works?
Automate critical controls first.
Examples:
Authorization
Tenant isolation
Model integrity
Secrets exposure
Deployment policy
Create a controlled evidence repository.
Detect:
Control failures
Drift
Missing evidence
Expired approvals
Use internal or external review for high-risk controls.
Security objectives defined
Control catalog exists
Control owners assigned
Risk mapping completed
Exceptions tracked
Authentication validated
Authorization validated
Tenant isolation tested
Network controls tested
Storage controls tested
Model integrity validated
Agent permissions tested
RAG controls tested
Evidence sources defined
Evidence timestamps recorded
Evidence integrity protected
Evidence retention defined
Evidence access controlled
Security invariants defined
Automated validation enabled
Configuration drift monitored
Control failures alerted
Critical controls receive priority
Control-to-requirement mapping exists
Evidence is searchable
Exceptions are documented
Reviews are current
Incident and recovery evidence exists
A control exists only on paper.
Test the control technically.
This creates unnecessary pressure and missing historical evidence.
Generate evidence continuously.
Critical controls can become hidden inside large dashboards.
Use risk-based prioritization and critical-control overrides.
Audit processes accidentally increase privacy risk.
Apply data minimization and controlled evidence access.
A configuration snapshot proves existence but not continuous operation.
Combine configuration evidence with recurring validation.
Temporary control gaps become permanent.
Require owners, compensating controls, expiration dates, and review.
Useful assurance metrics include:
Critical control pass rate
Overall control pass rate
Control validation coverage
Evidence coverage
Evidence freshness
Failed-control count
Mean time to remediate control failures
Open exception count
Expired exception count
Overdue review count
Security regression count
Critical security invariant pass rate
Independent validation coverage
These metrics should be connected to risk rather than treated as performance targets in isolation.
A mature AI security assurance program should follow these principles:
Every important control has an owner.
Every important risk maps to one or more controls.
Every critical control has a validation method.
Evidence should be generated as part of normal operations.
Evidence must be trustworthy and protected.
Critical controls should never be hidden by aggregate scores.
Security invariants should be continuously tested.
Exceptions should expire.
AI-specific controls require AI-specific evidence.
Compliance should support security rather than replace it.
The complete model can be summarized as:
BUSINESS RISK
|
v
SECURITY OBJECTIVE
|
v
SECURITY CONTROL
|
+-----------+-----------+
| | |
v v v
Preventive Detective Corrective
| | |
+-----------+-----------+
|
v
VALIDATION
|
v
EVIDENCE
|
v
ASSURANCE
|
+-----------+-----------+
| |
v v
Risk Decision Audit Readiness
|
v
Continuous Monitoring
|
v
Control Failure
|
v
Remediation
|
v
Revalidation
Security assurance is the mechanism that turns security architecture from a collection of intentions into measurable, testable, and accountable protection.
For AI platforms, assurance must extend across:
Identity
Infrastructure
Applications
Data
Models
RAG
Agents
Tools
Supply chains
AI safety
Monitoring
Incident response
Recovery
The strongest architecture does not wait for an audit to ask whether security controls work.
It continuously produces evidence showing:
What the control is
Why it exists
Who owns it
How it is enforced
Whether it is functioning
When it was last tested
What evidence proves the result
What happens when it fails
A mature AI platform should be continuously auditable because its security controls are continuously implemented, validated, monitored, evidenced, and improved.
That is the foundation of continuous security assurance.
Comments
Post a Comment