MASWE-0016: Manipulação Insegura de Chaves Criptográficas Importadas
Content in BETA
This content is in beta and still under active development, so it is subject to change any time (e.g. structure, IDs, content, URLs, etc.).
Placeholder Weakness
This weakness hasn't been created yet and it's a placeholder. But you can check its status or start working on it yourself. If the issue has not yet been assigned, you can request to be assigned to it and submit a PR with the new content for that weakness by following our guidelines.
Check our GitHub Issues for MASWE-0016
Initial Description or Hints¶
Importar chaves sem validar sua origem ou integridade, ou utilizar protocolos personalizados inseguros de troca de chaves, pode introduzir inadvertidamente chaves maliciosas ou comprometidas no ambiente do aplicativo.
Relevant Topics¶
- key import from untrusted sources
- key import from untrusted storage
References¶
- https://mas.owasp.org/MASTG/0x05d-Testing-Data-Storage/#secure-key-import-into-keystore
- https://developer.android.com/privacy-and-security/keystore#ImportingEncryptedKeys
- https://developer.android.com/reference/kotlin/android/security/keystore/KeyProtection
- https://developer.apple.com/documentation/security/certificate_key_and_trust_services/keys/storing_keys_as_data#2933724
MASTG v1 Coverage¶
No MASTG v1 tests are related to this weakness.