ocr-to-en-word
Fail
Audited by Gen Agent Trust Hub on Jun 17, 2026
Risk Level: HIGHCREDENTIALS_UNSAFEEXTERNAL_DOWNLOADSDATA_EXFILTRATIONCOMMAND_EXECUTION
Full Analysis
- [CREDENTIALS_UNSAFE]: The file
.keycontains a hardcodedAPP_ID,API_SECRET, andAPI_KEYused for authentication with iFlytek OCR services. - [DATA_EXFILTRATION]: Local documents (PDFs and images) are transmitted to iFlytek's servers at
cbm01.cn-huabei-1.xf-yun.comandiocr.xfyun.cnto perform OCR tasks. - [EXTERNAL_DOWNLOADS]: The skill downloads processed Word documents from dynamic URLs provided by the OCR service, typically hosted on iFlytek's CDN (
bjcdn.openstorage.cn). Additionally, thepdf_ocr.pyscript allows initiating OCR tasks from arbitrary remote PDF URLs via the--pdf-urlparameter. - [COMMAND_EXECUTION]: The skill utilizes Python scripts (
ocr_translate.py,translate_to_en.py,pdf_ocr.py,image_ocr.py) that perform file system and network operations. These scripts usezipfile.ZipFile.extractall()to unpack Word documents without validating the target paths of zip members, creating a vulnerability to path traversal (Zip Slip) attacks if a malicious document is processed. - [COMMAND_EXECUTION]: The script
ocr_translate.pydynamically modifiessys.pathto import modules from a subdirectory (ocr-skill/scripts), which is a form of dynamic loading from computed paths.
Recommendations
- AI detected serious security threats
Audit Metadata