pentesting, updated

Testing for weak encryption

Check whether data-at-rest or application-level encryption uses weak algorithms, modes, or hard-coded keys.

Goal

Confirm encryption used by the application (not just TLS) follows current best practice.

How to test

Look for app-level crypto in client-side JS (hard-coded keys are a common finding) and in any encrypted value you can decode:

curl -s https://example.com/app.js | grep -iE "key|secret|iv|aes"

Check the mode if you can determine it — ECB mode leaks structure (identical plaintext blocks produce identical ciphertext blocks, visible as repeating patterns).

What to look for

A hard-coded key/IV in client-reachable code, ECB mode in use, a deprecated algorithm (DES, RC4, MD5/SHA1 for anything security-relevant), or a custom/home-grown crypto scheme.

References

§ home
~/knubertus/home/
1,1 Top