mirror of
https://github.com/SHOGGOTH-SECTOR/sica-fondt.git
synced 2026-08-01 16:40:24 +00:00
Place useful parts of the surrounding repos into sica-fondt by layer, per the
body model (Ada = membrane; brain/endocrine/capabilities/knowledge non-Ada):
- brain/ LLM reasoning + providers (dapr, hermes, MoMoA)
- capabilities/ REPRAG sidecars: hermes tools/skills, dapr tools, parallel
dispatch, A51 channels, and the OSINT cluster
- knowledge/ LORAG corpus: 754 cyber-skills, agency personas, secure-coding,
MITRE ATT&CK data
- reference/ defensive threat-reference (C3, shhbruh doc) + AdaYaml parser
License handling: AGPL sources (worldosint, advanced_evolution, mercury,
Reticulum) and GPL DeTTECT are SPEC-only clean-room/port descriptions — no
copyleft code copied. MIT/Apache/data parts copied as working trees.
Safety: shhbruh escape/persistence material and C3 covert-C2 kept as reference
only, not wired into the running organism. See CONSOLIDATION.md.
https://claude.ai/code/session_01UehUqEXXJJCsHoA4voCU5c
55 lines
2.8 KiB
Markdown
55 lines
2.8 KiB
Markdown
# Standards Reference: Insecure Data Storage in Mobile
|
|
|
|
## OWASP Mobile Top 10 2024 Mapping
|
|
|
|
| OWASP ID | Risk | Data Storage Relevance |
|
|
|----------|------|----------------------|
|
|
| M1 | Improper Credential Usage | Hardcoded credentials in SharedPreferences, plists, databases |
|
|
| M6 | Inadequate Privacy Controls | PII stored unencrypted, accessible via backup extraction |
|
|
| M8 | Security Misconfiguration | allowBackup=true, world-readable files, missing encryption |
|
|
| M9 | Insecure Data Storage | Primary focus: all local storage vulnerabilities |
|
|
| M10 | Insufficient Cryptography | Weak encryption of local databases, hardcoded keys |
|
|
|
|
## OWASP MASVS v2.0 - MASVS-STORAGE Controls
|
|
|
|
| Control | Description | Test Method |
|
|
|---------|-------------|-------------|
|
|
| MASVS-STORAGE-1 | App securely stores sensitive data | Inspect SharedPreferences, keychain, databases |
|
|
| MASVS-STORAGE-2 | App prevents sensitive data leakage | Check logs, clipboard, backups, screenshots |
|
|
|
|
## NIST SP 800-163 Rev 1 - Mobile App Vetting
|
|
|
|
- Section 4.3.1: Data storage analysis for sensitive information at rest
|
|
- Section 4.3.2: Verification of encryption implementation for stored data
|
|
- Section 5.2: Data protection requirements for enterprise mobile apps
|
|
|
|
## CWE Mappings
|
|
|
|
| CWE ID | Title | Storage Type |
|
|
|--------|-------|-------------|
|
|
| CWE-312 | Cleartext Storage of Sensitive Information | SharedPreferences, plists, SQLite |
|
|
| CWE-316 | Cleartext Storage in Memory | Process memory, clipboard |
|
|
| CWE-359 | Exposure of Private Personal Information | PII in unencrypted databases |
|
|
| CWE-522 | Insufficiently Protected Credentials | Passwords in SharedPreferences |
|
|
| CWE-532 | Information Exposure Through Log Files | Sensitive data in logcat/syslog |
|
|
| CWE-921 | Storage of Sensitive Data in Unprotected Mechanism | External storage, world-readable |
|
|
| CWE-922 | Insecure Storage of Sensitive Information | General insecure storage |
|
|
|
|
## Android Keystore Best Practices
|
|
|
|
| Practice | Secure | Insecure |
|
|
|----------|--------|----------|
|
|
| Key storage | Android Keystore (hardware-backed) | Hardcoded in APK or SharedPreferences |
|
|
| Database encryption | SQLCipher with Keystore-derived key | Unencrypted SQLite |
|
|
| Shared Preferences | EncryptedSharedPreferences (Jetpack) | MODE_PRIVATE without encryption |
|
|
| File encryption | AES-256-GCM with Keystore key | Plaintext files in internal storage |
|
|
|
|
## iOS Data Protection Classes
|
|
|
|
| Class | When Accessible | Use Case |
|
|
|-------|----------------|----------|
|
|
| NSFileProtectionComplete | Only when unlocked | Highly sensitive data |
|
|
| NSFileProtectionCompleteUnlessOpen | While open/unlocked | Files written in background |
|
|
| NSFileProtectionCompleteUntilFirstUserAuthentication | After first unlock | Background-accessible data |
|
|
| NSFileProtectionNone | Always | Non-sensitive cached data |
|