Back to skill

Security audit

Northbase

Security checks for vulnerabilities and agentic risk

Overview

The skill has a coherent purpose for user-requested note syncing, but its command templates use unchecked file paths in shell-style commands that could be misused if followed literally.

Review before installing. This skill is intended for explicit Northbase note/file actions, but users and agents should treat note contents as untrusted and should only pass validated, workspace-relative paths to the CLI using safe argument handling rather than interpolating paths into shell commands.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:157
Finding

Shell Command Injection Through Unquoted User-Controlled File Paths

Content
View full analysis
` to read a file. 4. Modify the content if needed. 5. Run `northbase put ` to update or create the file. ``` ### Technical Analysis The skill directs the agent to substitute a user-provided file path directly into a shell command. It does not require shell-safe quoting, path validation, an end-of-options delimiter, or execution through a shell-free argument array. Because users can explicitly reference filenames when invoking the skill, the `` value may be attacker-controlled. If the agent constructs and executes the documented command through a shell, metacharacters such as semicolons, command substitutions, redirection operators, or pipelines may be interpreted as shell syntax rather than as part of the filename. Paths beginning with `-` may also be parsed as command-line options by the Northbase CLI, potentially altering its behavior even when shell metacharacters are unavailable. ### Attack Path 1. An attacker asks the agent to read or update a purported note with a crafted path, such as: ```text notes.md; id > /tmp/northbase-proof ``` 2. The agent follows the documented template and constructs: ```sh northbase get notes.md; id > /tmp/northbase-proof ``` 3. If executed through a command shell, the shell treats the semicolon as a command separator. 4. The Northbase command runs first, followed by the injected operating-system command. 5. The injected command executes with the same operating-system identity, filesystem permissions, environment variables, and accessible credentials as the agent process. The same issue applies to `northbase put `. In that case, attacker-controlled content may also be piped through standard input while the crafted path injects an additional command. ### ...[truncated 774 chars]
Remediation
View remediation
Vulnerability Patterns
  • Rogue AgentSelf-Modification, Session Persistence
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (2)

Self-Modification

High
Category
Rogue Agent
Confidence
85% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

Scanner excerpt · SKILL.md (reported line 90)May include surrounding context.

md
# Safety Guidelines

- Do **not overwrite existing files** unless the user clearly intends to replace the entire file.
- When modifying an existing file:
  1. Read it first using `northbase get`
  2. Modify the content

Session Persistence

Medium
Category
Rogue Agent
Confidence
76% confidence
Finding

The skill enables persistent read/write access to synced notes and workspace files, creating a channel for long-lived data storage and later retrieval. In an agent setting, persistence increases risk because sensitive data, prompt-injection content, or misleading instructions could be written into shared notes and then consumed in future sessions or on other devices.

Content

Scanner excerpt · SKILL.md (reported line 44)May include surrounding context.

md
- List available files
- Read file contents
- Create or update files
- Sync the local mirror with the server

All file interactions must be performed through the `northbase` CLI.

Static analysis

No suspicious patterns detected.