T07 · Tool Hijacking and Spoofing
- Location
scripts/send_npc_scene_to_feishu.py:35- Finding
Unverified Helper Modules Are Discovered and Executed from Ancestor Directories
- Content
View full analysis
Any: current = Path(__file__).resolve() for parent in current.parents: candidate = parent / skill_name / "scripts" / script_name if candidate.exists(): spec = importlib.util.spec_from_file_location(alias, candidate) if spec and spec.loader: module = importlib.util.module_from_spec(spec) spec.loader.exec_module(module) return module raise SystemExit(f"could not locate {skill_name}/scripts/{script_name}") feishu_sender = load_helper_module("audioclaw-skills-voice-reply", "feishu_audio_sender.py", "npc_feishu_sender") ``` The other affected scripts use the following equivalent pattern: ```python def _bootstrap_shared_senseaudio_env() -> None: current = Path(__file__).resolve() for parent in current.parents: candidate = parent / "_shared" / "senseaudio_env.py" if candidate.exists(): candidate_dir = str(candidate.parent) if candidate_dir not in sys.path: sys.path.insert(0, candidate_dir) from senseaudio_env import ensure_senseaudio_env ensure_senseaudio_env() return _bootstrap_shared_senseaudio_env() ``` ### Technical Analysis The Skill searches every ancestor directory for helper files and executes the first matching module without verifying its canonical location, ownership, permissions, package identity, signature, or cryptographic digest. The referenced helpers are not included in the audited project ...[truncated 2527 chars]- Remediation
View remediation
