wps-ocr
Pass
Audited by Gen Agent Trust Hub on Aug 19, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill implements strong security controls for network operations. The
scripts/wps_ocr.pyscript includes aURLValidatorclass that performs DNS resolution (socket.getaddrinfo) to verify that URLs provided by the user do not resolve to private, loopback, or internal IP addresses, effectively mitigating SSRF and DNS rebinding attacks. Additionally, it disables HTTP redirects (allow_redirects=False) during API calls to the trusted Kingsoft domainaiwrite.wps.cn. - [SAFE]: Credential management follows best practices by requiring the
WPS_OCR_ACCESS_KEYto be provided via environment variables rather than hardcoding. TheSKILL.mdinstructions correctly guide the user to store these in a local environment file. - [INDIRECT_PROMPT_INJECTION]: As an OCR tool, the skill is inherently susceptible to indirect prompt injection if the processed document contains malicious text instructions designed to influence the AI agent's subsequent behavior.
- Ingestion points: User-provided file paths or URLs processed in
scripts/wps_ocr.pyvia the--pathor--urlarguments. - Boundary markers: The script returns a JSON structure containing the extracted Markdown text but does not implement explicit boundary markers or 'ignore' instructions for the LLM.
- Capability inventory: The skill has the capability to read local files, make network requests to the
aiwrite.wps.cndomain, and return text content to the agent context. - Sanitization: No specific sanitization or filtering of the extracted text is performed before it is returned to the agent context.
Audit Metadata