T09 · Insecure Skill Coding Practices
- Location
bootstrap-local-standalone.sh:114- Finding
Arbitrary Shell Execution Through a Sourced Runtime Environment File
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill has a coherent memory-service purpose, but its automatic bootstrap can run persistent Docker code and handle local credentials with weak safeguards.
Install only if you trust the Aionis container source and are comfortable with a persistent local Docker service. Before use, prefer digest-pinned images, review or disable automatic bootstrap, protect `.runtime` credential files with restrictive permissions, avoid sourcing untrusted env files, and stop/remove the container and volume when no longer needed.
bootstrap-local-standalone.sh:114Arbitrary Shell Execution Through a Sourced Runtime Environment File
bootstrap-local-standalone.sh:139Cross-Session Container Persistence Enabled by Default
bootstrap-local-standalone.sh:129Remote Container Image Is Pulled and Executed Without Integrity Verification
bootstrap-local-standalone.sh:51API and Administrative Credentials Are Written Without Enforced Restrictive Permissions
Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.
Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
Health check:
curl -fsS http://127.0.0.1:3001/health
Auth check (x-api-key):
The skill advertises a memory-loop integration but declares no explicit tool scope while instructing use of shell capabilities later in the document. This creates an authority gap: an agent may invoke shell commands without a narrowly declared permission boundary, increasing the risk of unintended command execution or privilege expansion in environments that trust skill metadata for enforcement or review.
The skill instructs the agent to execute a broad local shell bootstrap command and source an environment file if the service is not running. This goes beyond normal API interaction and can execute arbitrary local code from the workspace, making the skill dangerous in adversarial or untrusted repositories where the script or env file could be modified to run malicious commands or exfiltrate secrets.
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
MINIMAX_GROUP_ID="${MINIMAX_GROUP_ID:-}"
MINIMAX_EMBED_MODEL="${MINIMAX_EMBED_MODEL:-embo-01}"
MINIMAX_EMBED_TYPE="${MINIMAX_EMBED_TYPE:-db}"
MINIMAX_EMBED_ENDPOINT="${MINIMAX_EMBED_ENDPOINT:-https://api.minimax.chat/v1/embeddings}"
need() {
command -v "$1" >/dev/null 2>&1 || {
The script generates or reuses sensitive credentials and writes them in plaintext to local env files under .runtime without setting restrictive permissions or clearly warning the user about persistence. On multi-user systems, in shared workspaces, or if the directory is later committed, these tokens could be exposed and then used to access the local Aionis service with API or admin privileges.
Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.
Sourcing an existing env file executes shell syntax from that file, not just variable assignments. Because the file contains secrets and is loaded from a writable runtime directory, a local attacker or accidental modification could inject arbitrary shell commands that run with the user's privileges when the bootstrap script is executed.