skills/security/specialized/hardware-attestation-analysis/SKILL.md
# Hardware Attestation Analysis - TEE-Based Trust and Security Boundaries ## Core Capability Specialized analysis of hardware-rooted attestation capabilities including Trusted Execution Environments (TEEs), confidential computing, and the security boundaries they establish in AI trust chains. ## Key Functions ### 1. TEE Capability Analysis - Intel SGX, ARM TrustZone, AMD SEV security model analysis - Confidential computing infrastructure assessment and limitations - Hardware security module (
npx skillsauth add pauljbernard/headelf skills/security/specialized/hardware-attestation-analysisInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Specialized analysis of hardware-rooted attestation capabilities including Trusted Execution Environments (TEEs), confidential computing, and the security boundaries they establish in AI trust chains.
Capabilities:
├── Application-Level Enclaves
│ ├── Protect code and data in memory from privileged access
│ ├── Remote attestation of enclave contents and execution
│ ├── Sealed storage encrypted to specific enclave identity
│ └── Cryptographic proof of code integrity and execution environment
├── Limitations
│ ├── Limited enclave memory size (128MB-256MB depending on platform)
│ ├── Performance overhead (10-50% for memory-intensive workloads)
│ ├── Side-channel vulnerabilities (Spectre, Meltdown variants)
│ └── Complex programming model requiring enclave-aware applications
└── AI Workload Suitability
├── Suitable for: Model inference, cryptographic operations, key management
├── Challenging for: Large model training, high-throughput inference
├── Memory constraints limit model sizes that can be protected
└── Attestation provides strong guarantees for supported workloads
Capabilities:
├── System-Wide Secure/Non-Secure Worlds
│ ├── Hardware-enforced isolation between secure and normal world
│ ├── Secure boot and trusted OS in secure world
│ ├── Platform attestation and secure storage capabilities
│ └── Hardware-rooted cryptographic operations
├── Limitations
│ ├── Coarse-grained isolation (system-wide, not per-application)
│ ├── Trusted OS complexity introduces attack surface
│ ├── Limited secure world memory and performance
│ └── Platform-specific implementations vary in security properties
└── AI Workload Suitability
├── Suitable for: Edge AI inference, model validation, secure key storage
├── Challenging for: Large-scale training, complex multi-tenant scenarios
├── Better suited for mobile/edge than data center deployments
└── Platform attestation enables device identity verification
Capabilities:
├── VM-Level Memory Encryption
│ ├── Hardware encryption of guest VM memory
│ ├── Protection from hypervisor and other VMs
│ ├── Remote attestation of VM launch and measurement
│ └── Secure key management through platform security processor
├── Limitations
│ ├── Hypervisor must be trusted for I/O and scheduling
│ ├── Limited protection against side-channel attacks
│ ├── Performance overhead for memory encryption (5-15%)
│ └── Attestation granularity at VM level, not application level
└── AI Workload Suitability
├── Excellent for: Cloud-based AI training and inference
├── Strong protection for: Multi-tenant AI platforms, confidential AI
├── Good scalability for large AI workloads
└── Enables confidential computing for AI in public clouds
Attestable Properties:
├── Code Integrity
│ ├── Cryptographic hash of executing code
│ ├── Verification that code hasn't been modified
│ ├── Platform identity and security version
│ └── Boot chain integrity (with measured boot)
├── Execution Environment
│ ├── Hardware platform identity and configuration
│ ├── Firmware and hypervisor versions
│ ├── Security policy enforcement status
│ └── Isolation guarantees from other software
├── Input/Output Binding
│ ├── Cryptographic proof that specific input produced specific output
│ ├── Timestamps for execution sequence verification
│ ├── Data flow integrity within trusted boundary
│ └── Sealed storage and data persistence guarantees
└── Runtime State
├── Memory protection and isolation status
├── Cryptographic key material protection
├── Secure communication channel establishment
└── Real-time execution monitoring (limited)
Non-Attestable Properties:
├── Semantic Correctness
│ ├── Whether code implements intended functionality
│ ├── Business logic correctness
│ ├── Algorithmic correctness of AI models
│ └── Compliance with human intent or specifications
├── Model Training Provenance
│ ├── Training data quality and composition
│ ├── Training process integrity across distributed systems
│ ├── Model convergence and performance characteristics
│ └── Bias and fairness properties of trained models
├── External Dependencies
│ ├── Network communication integrity end-to-end
│ ├── External API and service trustworthiness
│ ├── Input data quality and authenticity
│ └── Third-party library behavior outside TEE
└── Human Factors
├── Operator competence and trustworthiness
├── Organizational security policies and compliance
├── Social engineering and insider threat resistance
└── Business process integrity and governance
Trust Layer → Attestation Capability → Residual Risks
├── Hardware Platform
│ ├── TEE attestation: Platform identity, boot integrity, isolation
│ ├── Protects against: Hardware tampering, firmware modification
│ └── Residual risks: Supply chain attacks, hardware vulnerabilities
├── Model Execution
│ ├── TEE attestation: Model binary integrity, execution environment
│ ├── Protects against: Model replacement, runtime tampering
│ └── Residual risks: Model training corruption, adversarial examples
├── Input/Output Processing
│ ├── TEE attestation: I/O binding, data flow integrity
│ ├── Protects against: Result tampering, replay attacks
│ └── Residual risks: Input poisoning, semantic output corruption
├── Key Management
│ ├── TEE attestation: Key storage, cryptographic operations
│ ├── Protects against: Key extraction, cryptographic bypass
│ └── Residual risks: Key management procedures, human factors
└── Application Logic
├── Limited TEE support: Code integrity, memory protection
├── Cannot protect: Semantic correctness, business logic
└── Residual risks: Logic errors, specification gaps, human intent misalignment
Architecture:
├── Enclave/Secure VM contains:
│ ├── AI model weights and architecture
│ ├── Inference engine and runtime
│ ├── Input validation and preprocessing
│ └── Output generation and attestation
├── Attestation Properties:
│ ├── Model integrity: Cryptographic hash of model weights
│ ├── Inference integrity: Proof that specific input → specific output
│ ├── Environment integrity: TEE provided isolation and protection
│ └── Execution integrity: No tampering during inference process
└── Trust Guarantees:
├── Model hasn't been replaced or modified
├── Inference executed in protected environment
├── Input/output binding cryptographically verifiable
└── Third parties can verify attestation claims
Architecture:
├── Each Training Node:
│ ├── Training data encrypted in TEE memory
│ ├── Model updates computed within TEE
│ ├── Gradient aggregation with cryptographic verification
│ └── Local attestation of training step integrity
├── Coordinator Node:
│ ├── Aggregates attested model updates
│ ├── Verifies training node attestations
│ ├── Maintains global training state in TEE
│ └── Provides end-to-end training attestation
└── Trust Guarantees:
├── Training data confidentiality preserved
├── Model updates haven't been tampered with
├── Training process followed specified algorithm
└── Final model provenance cryptographically traceable
Attack Category → TEE Vulnerability → Mitigation Strategy
├── Cache-Based Attacks
│ ├── Intel SGX: Cache access patterns reveal computation details
│ ├── ARM TrustZone: Shared cache between secure/normal worlds
│ ├── AMD SEV: Cache sharing between VMs on same physical core
│ └── Mitigations: Cache line flushing, constant-time algorithms, partitioning
├── Timing Attacks
│ ├── Execution time variations reveal secret-dependent branching
│ ├── Memory access patterns observable through timing
│ ├── Cryptographic operations timing leakage
│ └── Mitigations: Constant-time implementations, timing randomization
├── Power Analysis
│ ├── Power consumption patterns reveal computation details
│ ├── Electromagnetic emanations from secure enclaves
│ ├── Voltage fluctuations during cryptographic operations
│ └── Mitigations: Power analysis resistance, shielding, noise injection
└── Speculative Execution
├── Spectre/Meltdown variants affect TEE implementations
├── Transient execution reveals secure enclave data
├── Branch prediction attacks across security boundaries
└── Mitigations: Microcode updates, speculation barriers, architectural changes
Attack Vector → Impact → Detection Difficulty
├── Rollback Attacks
│ ├── Replay old enclave state to bypass security updates
│ ├── Impact: Circumvent security patches, exploit old vulnerabilities
│ └── Detection: Monotonic counters, version tracking, audit logs
├── Memory Mapping Attacks
│ ├── Manipulate enclave memory layout through page faults
│ ├── Impact: Information leakage, control flow manipulation
│ └── Detection: Memory access pattern monitoring, integrity checking
├── Interrupt/Exception Handling
│ ├── Inject interrupts to manipulate enclave execution
│ ├── Impact: Side-channel creation, timing manipulation
│ └── Detection: Exception monitoring, execution flow verification
└── Platform Reset Attacks
├── Reset platform to induce secure state corruption
├── Impact: Bypass attestation, inject malicious state
└── Detection: Reset monitoring, state consistency checking
Attack Stage → Attack Vector → Protection Mechanism
├── Silicon Manufacturing
│ ├── Hardware trojans in TEE implementation
│ ├── Cryptographic key extraction capabilities
│ ├── Backdoors in security-critical components
│ └── Protection: Diverse supplier strategy, hardware verification
├── Firmware Development
│ ├── Malicious firmware with attestation bypass
│ ├── Cryptographic key compromise in firmware
│ ├── Remote update mechanisms with backdoors
│ └── Protection: Firmware signing, measured boot, update validation
├── Platform Assembly
│ ├── Hardware modification during assembly
│ ├── Additional components for side-channel attacks
│ ├── Physical tampering with security boundaries
│ └── Protection: Tamper-evident packaging, assembly monitoring
└── Distribution and Deployment
├── Platform modification during shipping
├── Malicious firmware installation at deployment
├── Configuration tampering by insiders
└── Protection: Chain of custody, deployment verification, configuration monitoring
TEE Technology → Workload Type → Performance Overhead → Scalability Limits
├── Intel SGX
│ ├── Small model inference: 15-30% overhead
│ ├── Large model inference: Memory constraints prohibitive
│ ├── Training: Not practical for most ML workloads
│ └── Scalability: Limited by enclave memory size (128-256MB)
├── ARM TrustZone
│ ├── Edge AI inference: 10-25% overhead
│ ├── Mobile AI applications: Well-suited for on-device inference
│ ├── Training: Limited to small models and edge scenarios
│ └── Scalability: Platform-dependent, generally single-tenant
├── AMD SEV
│ ├── Large model inference: 5-15% overhead
│ ├── Distributed training: Good performance characteristics
│ ├── Multi-tenant AI: Strong isolation with reasonable performance
│ └── Scalability: VM-level granularity scales to data center workloads
└── Confidential Computing Platforms
├── Cloud AI services: 10-25% total overhead including networking
├── Kubernetes with confidential computing: Additional orchestration overhead
├── Multi-cloud deployments: Network latency and key management complexity
└── Scalability: Depends on platform maturity and ecosystem support
Cost Category → Range → Factors
├── Hardware Costs
│ ├── TEE-capable hardware premium: 10-30% over standard hardware
│ ├── Specialized hardware security modules: $1K-50K per unit
│ ├── Performance overhead infrastructure: 15-25% additional capacity
│ └── Factors: Volume, platform choice, performance requirements
├── Development Costs
│ ├── TEE application development: 2-5x standard development time
│ ├── Security audit and certification: $100K-1M depending on scope
│ ├── Integration with existing systems: Highly variable (months to years)
│ └── Factors: Team expertise, application complexity, compliance requirements
├── Operational Costs
│ ├── Specialized operations team training: $50K-200K per team
│ ├── Key management infrastructure: $100K-1M annual operational cost
│ ├── Compliance and audit overhead: 20-50% increase in compliance costs
│ └── Factors: Scale, regulatory environment, internal vs external operations
└── Opportunity Costs
├── Delayed time to market: 6-18 months additional development
├── Reduced feature velocity: 20-40% slower iteration during integration
├── Platform lock-in risks: Migration costs if platform choice changes
└── Factors: Business urgency, competitive landscape, technical debt tolerance
Security Improvement → Threat Mitigation → Residual Risk
├── Model Integrity Protection
│ ├── Eliminates: Model replacement, runtime tampering attacks
│ ├── Quantified benefit: 90-95% reduction in model tampering risk
│ └── Residual risk: Supply chain attacks, insider threats with TEE access
├── Execution Environment Integrity
│ ├── Eliminates: OS-level attacks, hypervisor compromise of AI workloads
│ ├── Quantified benefit: 80-90% reduction in infrastructure attack surface
│ └── Residual risk: TEE implementation vulnerabilities, side-channel attacks
├── Data Confidentiality
│ ├── Eliminates: Memory dumping, process inspection of AI model data
│ ├── Quantified benefit: Strong cryptographic protection for data at rest/runtime
│ └── Residual risk: Key management compromise, authorized access abuse
└── Compliance and Audit
├── Enables: Cryptographic audit trails, third-party verification
├── Quantified benefit: Objective compliance evidence, reduced audit costs
└── Residual risk: Semantic correctness still requires human verification
Hardware attestation addresses meaningful subsets of the AI trust chain problem:
Critical limitations that hardware attestation cannot address:
Combined approach leveraging hardware attestation within risk-managed framework:
Risk Level → Attestation Strategy → Additional Controls
├── Low Risk (Internal Tools)
│ ├── Basic platform attestation
│ ├── Standard monitoring and logging
│ └── Lightweight human oversight
├── Medium Risk (Business Applications)
│ ├── Model integrity attestation with TEE protection
│ ├── Enhanced monitoring and anomaly detection
│ └── Structured human review processes
├── High Risk (Customer-Facing)
│ ├── End-to-end attestation chain with confidential computing
│ ├── Multi-party verification and consensus mechanisms
│ └── Comprehensive human semantic ownership
└── Critical Risk (Safety/Security)
├── Hardware attestation as foundation layer
├── Formal verification of attestable components
└── Human authority for all semantic decisions
This hardware attestation analysis provides the missing piece in comprehensive AI security architecture - identifying what can be cryptographically verified to establish a foundation for risk-managed approaches to the remaining semantic verification challenges.
tools
# Security Tools and Frameworks Expertise ## Description Expert-level knowledge of cybersecurity tools, frameworks, and platforms including SIEM systems, vulnerability scanners, penetration testing tools, security orchestration platforms, identity and access management systems, and security automation frameworks with implementation strategies and optimization techniques. ## When to Use - Designing comprehensive security architectures for enterprise systems - Implementing security automation an
tools
# Monitoring and Observability Tools Expertise ## Description Expert-level knowledge of monitoring, observability, and APM (Application Performance Monitoring) tools including Prometheus, Grafana, Jaeger, OpenTelemetry, Elasticsearch, Datadog, New Relic, and cloud-native observability platforms with internal architectures, optimization techniques, and implementation strategies. ## When to Use - Designing comprehensive observability strategies for distributed systems - Implementing monitoring s
tools
# Machine Learning and AI Frameworks Expertise ## Description Expert-level knowledge of machine learning and AI frameworks including TensorFlow, PyTorch, Scikit-learn, Hugging Face, MLflow, Kubeflow, Apache Spark ML, cloud ML platforms, and MLOps tools with optimization techniques, deployment strategies, and production implementation patterns. ## When to Use - Designing and implementing machine learning pipelines and infrastructure - Selecting optimal ML frameworks for specific use cases and r
development
# Message Queue and Streaming Technology Expertise ## Description Expert-level knowledge of message queue systems, event streaming platforms, and asynchronous communication architectures including internal implementations, optimization techniques, failure scenarios, and selection criteria. ## When to Use - Designing high-throughput, low-latency messaging systems - Implementing event-driven architectures and microservices communication - Building real-time data streaming and processing pipeline