A Caido plugin that analyzes ASP.NET ViewState to detect encryption and MAC signatures.
- Automatic ViewState Detection: Automatically extracts
__VIEWSTATEparameters from requests - Encryption Detection: Identifies if ViewState is encrypted
- MAC/HMAC Detection: Determines if ViewState has integrity protection (signature)
- Multiple ViewState Support: Handles requests with multiple ViewState parameters
- Detailed Analysis: Shows version byte, entropy analysis, and decoded length
- Clone this repository
- Install dependencies:
pnpm install
- Build the plugin:
pnpm build
- Load the plugin in Caido from the
distfolder
pnpm watchpnpm buildpnpm lint- Open a request in Caido that contains ASP.NET ViewState
- Click on the "ViewState" tab in the request viewer
- View the analysis results:
- ✓ Valid: ViewState is valid base64 and parseable
- 🔏 Signed (MAC): ViewState contains HMAC signature
- 🔒 Encrypted: ViewState appears to be encrypted
The plugin uses entropy analysis and pattern matching to determine:
- Encryption: High entropy (> 7.5) throughout the data suggests encryption
- MAC/HMAC: High entropy (> 7.5) in the last 20-32 bytes suggests HMAC signature
- Version: First byte indicates ViewState version
MIT
Serizao - GitHub
Thank's for the work: