hsm_analyze_code
Scan legacy payment code for HSM socket calls, detect Futurex, Thales, and Atalla commands, and receive APC migration paths and notes for LMK, DUKPT, and fixed-key patterns.
Instructions
Call this whenever reviewing legacy payment code that may contain HSM socket calls — Python, Java, C, Go, or any language. Even a single file or function is worth scanning. Works without AWS credentials.
Detects Futurex Excrypt commands ([AOCCCC;...] frames), Thales/International 2-char command codes, and Atalla/Futurex Standard numeric codes. Returns identified commands, their APC migration path, and migration notes for LMK, DUKPT, and fixed-key patterns.
Args: source_code: Raw source code containing HSM socket calls or command strings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_code | Yes |