Description
Tencent AI-Infra-Guard's skill-scan component excludes compiled Python bytecode files from analysis by hardcoding __pycache__ directories and .pyc/.pyo/.pyd extensions into skip lists across multiple scanning surfaces. Attackers can distribute skills with benign Python source files alongside malicious compiled bytecode that executes on import while the scanner reports a safe verdict, enabling code execution when operators install the skill.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Tencent | AI-Infra-Guard | < 4.5.2, 4.6.0 – ≤ 4.6.0 | 4.5.2 |
| Tencent | aig-skill-scan | ≤ 0.2.1 | — |
References
- GitHub Issue #531 issue-tracking
- https://github.com/Tencent/AI-Infra-Guard/commit/7e0f749e3c023e5c6ab7b32fe97b3f6f2e8aeb04 patch
- https://github.com/Tencent/AI-Infra-Guard/blob/v4.6.0/skill-scan/skill_scan/tools/dir/dir_actions.py technical-description
- https://github.com/Tencent/AI-Infra-Guard/blob/v4.6.0/skill-scan/skill_scan/utils/pre_scan.py technical-description
- https://github.com/Tencent/AI-Infra-Guard product
- VulnCheck Advisory: Tencent AI-Infra-Guard skill-scan Analysis Bypass via Excluded Python Bytecode third-party-advisory