Class: AiRootShield::Platform::HardwareSecurityAnalyzer
- Inherits:
-
Object
- Object
- AiRootShield::Platform::HardwareSecurityAnalyzer
- Defined in:
- lib/ai_root_shield/platform/hardware_security_analyzer.rb
Overview
Cross-platform hardware security analyzer for TEE/SE and biometric consistency
Constant Summary collapse
- SECURITY_LEVELS =
Hardware security levels
{ none: 0, software: 1, trusted_environment: 2, secure_element: 3, strongbox: 4 }.freeze
- BIOMETRIC_TYPES =
Biometric authentication types
{ fingerprint: 'fingerprint', face: 'face', iris: 'iris', voice: 'voice', palm: 'palm' }.freeze
Instance Method Summary collapse
-
#analyze_hardware_security(device_logs, platform) ⇒ Object
Comprehensive hardware security analysis.
-
#initialize ⇒ HardwareSecurityAnalyzer
constructor
A new instance of HardwareSecurityAnalyzer.
Constructor Details
#initialize ⇒ HardwareSecurityAnalyzer
Returns a new instance of HardwareSecurityAnalyzer.
28 29 30 |
# File 'lib/ai_root_shield/platform/hardware_security_analyzer.rb', line 28 def initialize @hardware_cache = {} end |
Instance Method Details
#analyze_hardware_security(device_logs, platform) ⇒ Object
Comprehensive hardware security analysis
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/ai_root_shield/platform/hardware_security_analyzer.rb', line 33 def analyze_hardware_security(device_logs, platform) results = { platform: platform, tee_analysis: analyze_trusted_execution_environment(device_logs, platform), secure_element_analysis: analyze_secure_element(device_logs, platform), biometric_analysis: analyze_biometric_consistency(device_logs, platform), hardware_attestation: analyze_hardware_attestation(device_logs, platform), crypto_capabilities: analyze_crypto_capabilities(device_logs, platform), tamper_detection: analyze_tamper_detection(device_logs, platform), risk_factors: [], security_score: 0 } calculate_hardware_security_score(results) results end |