T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:19- Finding
Unverified Remote Python Payload Retrieved from a Mutable Branch
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The utility code is mostly straightforward, but the installation guidance tells users to fetch mutable GitHub code and includes unnecessary sudo execution, so it needs review before use.
Install only from the reviewed local artifact or a pinned, verified release. Do not run this library with sudo or administrator privileges, and only expose its file read/write tools to an agent with explicit path limits and user-approved output locations.
SKILL.md:19Unverified Remote Python Payload Retrieved from a Mutable Branch
INSTALLATION.md:262Unnecessary Root Execution Recommended as a Permission Workaround
The installation guide instructs users to install directly from a live GitHub repository and also to download raw code for execution, which bypasses stronger supply-chain controls such as signed releases, pinned commits, hashes, or vetted package publication. In a skill/install context this is more dangerous because the document normalizes immediate trust and execution of remote code, so repository compromise or upstream tampering could lead to arbitrary code execution on user systems.
Method 2: Clone from GitHub (Recommended for Development)
# Clone the repository
git clone https://github.com/cerbug45/ai-agent-tools.git
# Navigate to the directory
cd ai-agent-tools
# Test the installation
python ai_agent_tools.py
# Using pip (when published to PyPI)
pip install ai-agent-tools
# From GitHub directly
pip install git+https://github.com/cerbug45/ai-agent-tools.git
# Add to your project as a submodule
git submodule add https://github.com/cerbug45/ai-agent-tools.git libs/ai-agent-tools
# Update the submodule
git submodule update --init --recursive
Check your Python version:
python --version
# or
python3 --version
Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
### 2. Memory Management
Clear memory when no longer needed:
```python
memory = MemoryTools()
Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.
The guide recommends running sudo python ai_agent_tools.py as a troubleshooting step, which encourages executing downloaded code with elevated privileges. In the context of this installation document, users are also told to fetch code directly from GitHub, so combining remote code retrieval with root execution materially increases the chance of full-system compromise if the file is malicious or tampered with.
chmod +x ai_agent_tools.py
sudo python ai_agent_tools.py
### Issue: Python Version
This markdown file documents write and file-management capabilities such as writing files, saving outputs, and later clearing memory, but it does not include any warning that these actions can overwrite data or remove stored state. For markdown files, SQP-2 applies when descriptions omit warnings about behaviors that could affect user data or system integrity.
The documentation specifies phone validation as 'Turkish format' and uses Turkish-format examples elsewhere, which imposes a locale-specific assumption in a general-purpose utility library. Under SQP-3, locale constraints should either be optional for the user or clearly justified as region-specific.
The file's human-facing docstrings, status messages, and example output are entirely in Turkish, which effectively fixes the skill's natural-language interface to a single language. There is no indication that users can choose another language or that the Turkish-only behavior is a justified regional constraint.
This code file defines a general-purpose write operation that creates directories and overwrites file contents, but provides no confirmation prompt or explicit user disclosure before the write occurs. Although there is a success return string after completion, it does not warn the user in advance, and the helper is broad enough that file modification may not be obvious from the calling context.
The JSON save function persists arbitrary data to disk and creates parent directories, but the code only reports success after the action is complete. There is no confirmation mechanism, pre-write disclosure, or explicit warning in the surrounding documentation about saving or overwriting user data.
The document shows the expected test output entirely in Turkish, which implies a fixed language experience for users following the guide. Because no user opt-in, alternative language option, or justification for the locale is provided, this appears to violate the language/locale policy criteria.
This markdown file describes file operations including writing files, and later shows save_json(..., "output.json") and save_json(data, "users.json") as normal usage. There is no accompanying warning about overwriting existing files, choosing safe paths, or reviewing outputs before saving, which is a user-data integrity concern for a skill aimed at AI agents.