这是indexloc提供的服务,不要输入任何密码
Skip to content

MASTG-TEST-0221: Broken Symmetric Encryption Algorithms

Overview

To test for the use of broken encryption algorithms in Android apps, we need to focus on methods from cryptographic frameworks and libraries that are used to perform encryption and decryption operations.

Some broken symmetric encryption algorithms include:

Android also provides additional guidance on broken cryptographic algorithms.

Steps

  1. Run Static Analysis on Android with a tool such as semgrep on the app binary, or use Method Tracing (dynamic analysis) with a tool like Frida for Android, and look for uses of the cryptographic functions that perform encryption and decryption operations.

Observation

The output should contain a list of locations where insecure symmetric encryption algorithms are used.

Evaluation

The test case fails if you can find insecure or deprecated encryption algorithms being used.

Mitigations

Demos

MASTG-DEMO-0022: Uses of Broken Symmetric Encryption Algorithms in Cipher with semgrep