- A
Transformermust have a uniqueserialNumber. - A
Transformercannot be registered without valid Nokia SIM location metadata. - Status transitions are restricted based on location breach calculations and AI risk rating.
Alertdocuments are system-generated and immutable for users.- Only authenticated users can read transformer data.
- Only authorized users (e.g., matching the owner email if implemented, or general authenticated for this MVP) can write.
- Identity Spoofing: Attempt to create a transformer with a different user's ID as owner.
- Shadow Field Injection: Attempt to set
isVerified: truemanually. - Ghost Update: Attempt to update
registrationLocationafter initial setup. - ID Poisoning: Use a 2KB string as a transformer ID.
- State Shortcut: Move from
GREENtoREDwithout distance verification data. - SMS Trigger Injection: Attempt to write a malicious message into a system alert.
- PII Leak: Read
phoneNumberof a transformer you don't manage. - Denial of Wallet: Flood with 1MB strings in the
riskAnalysisfield. - Orphaned Writes: Create an alert for a non-existent transformer.
- Admin Escalation: Attempt to set
isAdmin: trueon user profile. - Client Timestamp Spoofing: Provide a future date for
lastUpdated. - Blanket Query Scraping: Attempt to list all transformers without any filters.
(Tests will be implemented in firestore.rules.test.ts)