Application security blog
Practical guides to website, API and mobile application security: how to identify risks, verify them and fix their causes.
RSA-OAEP on Android: Aligning the Main Digest and MGF1
How to explicitly set both RSA-OAEP digests on Android and test an exchange with your own keys: recovering the original bytes and rejecting an MGF1 mismatch.
Read articleWhen to Specify a Cryptographic Provider in Android and How to Check Compatibility
Distinguish the AndroidKeyStore store type from the provider, test signing with your own test data, and decide where to remove an explicit provider dependency.
Read articleProtecting web sessions: reject secrets supplied in URLs
Define a server-side cookie session contract and verify on your own test environment that a valid secret in the URL cannot unlock private data.
Read articleCertificate pinning in Android: when you need it and what happens after a pin-set expires
How to decide whether an Android app needs certificate pinning, plan for a backup key, and test behavior before and after pin-set expiry on your own test environment.
Read articleHow to Validate GraphQL Mutation Values Before Saving a Record
How to define a mutation contract, validate lesson categories and duration limits, and confirm that invalid input is rejected without changing the record.
Read articleHow to validate JWTs so your API rejects tokens intended for another recipient
How to define JWT acceptance rules for your API and test on your own system that a correctly signed token with the wrong audience is rejected without returning data or performing the operation.
Read articleVerifying digital signatures in Android: how to avoid accepting a modified message
Acceptance criteria for signature verification in Android: original bytes, a modified message and a different public key. Check the verify result and ensure no unwanted record is written.
Read articleHow to Limit Login Attempts While Letting Account Owners Regain Access
How to choose a login attempt threshold, observation window and lockout duration, then test enforcement and removal using your own test accounts.
Read articleHow to Remove an Embedded Key from an Android App and Verify Its Origin
How to trace a local encryption key to Android Keystore, rule out embedded key material, and verify its replacement using your own test records.
Read articleHow to Define Caching Rules for WebView Pages and Android Temporary Files
How to define caching rules for sensitive WebView pages and temporary files: no-store headers, internal directories, clearCache calls, and checks using your own data.
Read articleLong Unicode Passwords: How to Check That the Server Does Not Truncate Input
Align registration, password change and login limits, account for characters and bytes, and test in your own environment that different password endings remain distinct.
Read articleHow to store a session secret hash and verify that an identifier alone cannot grant access
A guide to separating session identifiers and secrets: server records, SHA-256, constant-time comparison, and access checks in your own test environment.
Read articleA Test CA for Android Debugging Only: Setup and Release Checks
Place a test CA in debug-overrides, inspect the merged manifest, and use your own HTTPS server to verify that the release does not trust the test certificate.
Read articleHow to Limit an HTTP Exception to One Domain in Android
Configure a targeted HTTP exception with Network Security Configuration, inspect the final build, and verify the rule’s scope using your own test domains.
Read articleHow to Prepare a Verifiable API Key Replacement Plan for a Server Integration
How to document API key consumers and permissions, confirm provider rules, and verify the new key and revocation of the old one using your own test data.
Read articleHow to renew session IDs at login and invalidate the old ID
How to verify the transition from an anonymous to an authenticated session: the new ID works, the old one has no access, and agreed cart contents are preserved.
Read articleHow to restrict Android Service access with a signature-level permission
How to choose a private Android Service or signature-permission access, inspect the final manifest, and build an acceptance matrix using your own test apps.
Read articleHow to Check Whether Your Login Form Reveals Account Existence
Login form acceptance criteria: compare messages, HTTP status codes and failed-attempt timing using your own test accounts, then verify successful login.
Read articleHow to Store an IV with an Android Record Without Reusing It on Updates
Explore encrypted record formats, fresh IVs for every save, and read checks using a fictional Android notebook with synthetic data.
Read articleHow to protect state-changing operations from CSRF with cookie sessions
How to choose server-side CSRF protection, define SameSite’s role, and verify with your own test data that requests without a valid token leave state unchanged.
Read article