T06 · System Persistence
- Location
INSTALL-UBUNTU.md:40- Finding
MongoDB Is Registered as a Persistent Boot-Time Service
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This appears to be a legitimate MongoDB helper, but it needs review because it handles database credentials with weak local-file guidance and recommends persistent system service setup.
Install only if you are comfortable giving the skill access to the configured MongoDB account. Prefer environment variables or a secret manager over config.json, use a dedicated least-privilege database user, pin dependencies before setup, and avoid enabling mongod at boot unless you need a persistent local server and have checked local binding, authentication, and firewall settings.
INSTALL-UBUNTU.md:40MongoDB Is Registered as a Persistent Boot-Time Service
scripts/setup.sh:24Unpinned Python Dependencies Are Installed from a Mutable Package Index
SKILL.md:45Plaintext Credential Configuration Is Recommended Without the Claimed Git Ignore Protection
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
# Import MongoDB public GPG key
curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
sudo gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg --dearmor
# Add MongoDB repo for your Ubuntu version (e.g. 24.04)
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" | \
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
# Import MongoDB public GPG key
curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
sudo gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg --dearmor
# Add MongoDB repo for your Ubuntu version (e.g. 24.04)
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" | \
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# Install prerequisites
sudo apt-get install -y gnupg curl
# Import MongoDB public GPG key
curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# Install prerequisites
sudo apt-get install -y gnupg curl
# Import MongoDB public GPG key
curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# Install prerequisites
sudo apt-get install -y gnupg curl
# Import MongoDB public GPG key
curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# Install prerequisites
sudo apt-get install -y gnupg curl
# Import MongoDB public GPG key
curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# Install prerequisites
sudo apt-get install -y gnupg curl
# Import MongoDB public GPG key
curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# Install prerequisites
sudo apt-get install -y gnupg curl
# Import MongoDB public GPG key
curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# Install prerequisites
sudo apt-get install -y gnupg curl
# Import MongoDB public GPG key
curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
The command pipes data fetched over the network directly into a privileged gpg process writing to a system keyring path. Although this is a common setup pattern, it creates a supply-chain risk because compromised transport, DNS, or upstream content could result in trusting an attacker-controlled repository signing key.
# Import MongoDB public GPG key
curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
sudo gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg --dearmor
# Add MongoDB repo for your Ubuntu version (e.g. 24.04)
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" | \
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
sudo systemctl start mongod
sudo systemctl enable mongod
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
| Action | Command |
|----------|----------------------------------|
| Start | `sudo systemctl start mongod` |
| Stop | `sudo systemctl stop mongod` |
| Restart | `sudo systemctl restart mongod` |
| Status | `sudo systemctl status mongod` |
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
| Action | Command |
|----------|----------------------------------|
| Start | `sudo systemctl start mongod` |
| Stop | `sudo systemctl stop mongod` |
| Restart | `sudo systemctl restart mongod` |
| Status | `sudo systemctl status mongod` |
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
| Action | Command |
|----------|----------------------------------|
| Start | `sudo systemctl start mongod` |
| Stop | `sudo systemctl stop mongod` |
| Restart | `sudo systemctl restart mongod` |
| Status | `sudo systemctl status mongod` |
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
| Action | Command |
|----------|----------------------------------|
| Start | `sudo systemctl start mongod` |
| Stop | `sudo systemctl stop mongod` |
| Restart | `sudo systemctl restart mongod` |
| Status | `sudo systemctl status mongod` |
The skill exposes access to environment-derived database credentials and encourages execution of a Python client, but it declares no explicit tool scope or permission boundary. In an agent ecosystem, that can let the skill be invoked with broader-than-intended access to secrets or runtime capabilities, increasing the chance of unauthorized database actions or credential misuse.
The invocation guidance is broad enough to match generic requests like "save to the database" or persistence across sessions, which may cause an orchestrator to route unrelated or sensitive data into MongoDB without strong user intent. That increases the risk of over-collection, accidental persistence of secrets, or use of this skill when a narrower storage mechanism would be safer.
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
## When to use
- User asks to "save to the database", "store this in Mongo", "retrieve from MongoDB"
- An agent needs to persist data across sessions (budgets, transactions, summaries, watchlists)
- An agent needs to query, filter, or aggregate stored records
- A new collection or schema (validator) needs to be set up
No suspicious patterns detected.