Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| Tencent / AI-Infra-Guard | affected 0 before 4.5.2; affected 4.6.0 through 4.6.0 |
| Tencent / aig-skill-scan | affected 0 through 0.2.1 |
CWE
CWE-693
References
- https://github.com/Tencent/AI-Infra-Guard/issues/531
- https://github.com/Tencent/AI-Infra-Guard/commit/7e0f749e3c023e5c6ab7b32fe97b3f6f2e8aeb04
- https://github.com/Tencent/AI-Infra-Guard/blob/v4.6.0/skill-scan/skill_scan/tools/dir/dir_actions.py
- https://github.com/Tencent/AI-Infra-Guard/blob/v4.6.0/skill-scan/skill_scan/utils/pre_scan.py
- https://github.com/Tencent/AI-Infra-Guard
- https://www.vulncheck.com/advisories/tencent-ai-infra-guard-skill-scan-analysis-bypass-via-excluded-python-bytecode
ADP enrichment
No English description supplied.