What it is
Akamai v3 Sensor Data is a component of Akamai’s bot protection system. It involves a two-step encryption process for data transmitted to detect and mitigate bots. This system relies on JavaScript file hashes and cookie hashes to seed its encryption algorithms.
How it works
The encryption process begins with shuffling the JSON payload data after converting it into a colon-delimited string. This shuffling is performed using a pseudo-random number generator (PRNG) seeded with a hash derived from Akamai’s JavaScript files. Following the shuffling, a second PRNG, seeded with a hash from a cookie (typically the bm_sz cookie), is used to substitute characters within the shuffled string.
Decryption requires reversing these steps. First, the character substitutions are undone using the cookie-derived hash to reinitialize the PRNG. Subsequently, the elements are shuffled back into their original order using the script-derived file hash to reinitialize the PRNG for the shuffling phase. The dependency on both the script content and the cookie hash makes bypassing this system complex.
TWSC experience
Not yet tested by TWSC.
Related
Sources
The Web Scraping Wiki is compiled from the tests and research published on The Web Scraping Club, the newsletter for web scraping professionals. Subscribe to get the next article in your inbox.