Back to skill

Security audit

Sentio Processor

Security checks for vulnerabilities and agentic risk

Overview

This is a coherent Sentio processor documentation skill with ordinary CLI, dependency, deployment, and on-chain data handling risks that users should manage deliberately.

Installers should pin `@sentio/cli`, `@sentio/sdk`, and TypeScript versions where reproducibility matters, commit lockfiles, review generated uploads before `sentio upload`, and avoid running npm or Sentio auth commands in a shell that exposes unrelated credentials. Review emitted wallet addresses, webhooks, and store schemas before using the examples in production.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:46
Finding

Unpinned npm Packages Are Downloaded and Executed

Content
View full analysis
--chain-type --chain-id ``` `SKILL.md:97-102`: ```json { "dependencies": { "@sentio/sdk": "^4.0.0" }, "devDependencies": { "@sentio/cli": "^4.0.0", "typescript": "^6.0.3" } } ``` `references/sui-sdk4-migration.md:9`: ```text Bump deps to `^4.0.0`. Set `@sentio/sdk`, `@sentio/cli` (and `@sentio/action` if used) to `^4.0.0` (the `latest` npm tag is now `4.x`), then `sentio gen` to regenerate bindings. ``` ### Technical Analysis The documented `npx @sentio/cli` command may download the package version currently resolved by the configured npm registry and immediately execute its CLI. No exact version, lockfile requirement, integrity hash, or package provenance verification is specified. The recommended caret dependency ranges also permit future minor and patch releases to be installed without an explicit review. Consequently, the effective code executed by users can change after the Skill itself has been audited. Package installation may also invoke dependency lifecycle scripts. The package names are consistent with the Skill's declared Sentio development functionality, and no evidence indicates that the documented packages are currently malicious. However, allowing mutable dependency resolution exceeds the minimum privilege and reproducibility necessary to initialize or migrate a Sentio project. ### Attack Path 1. An attacker compromises the npm account, release pipeline, registry response, or transitive dependency associated with one of the documented packages. 2. The attacker publishes a malicious release that remains compatible with the unpinned command or caret range. 3. A user or AI agent follows the Skill and runs `npx @ ...[truncated 1074 chars]
Remediation
View remediation
--chain-type --chain-id ``` 2. Replace caret ranges with exact versions where reproducible builds are required: ```json { "dependencies": { "@sentio/sdk": "4.0.0" }, "devDependencies": { "@sentio/cli": "4.0.0", "typescript": "6.0.3" } } ``` 3. Commit the generated lockfile and use `npm ci` in automated or security-sensitive environments. 4. Review lockfile changes before dependency upgrades and verify that resolved packages originate from the expected registry and publisher. 5. Use npm provenance and integrity information where available. Consider registry allowlisting and dependency-scanning controls in CI. 6. Run package installation and project generation in a restricted container or sandbox without unrelated secrets, sensitive filesystem access, or unnecessary network permissions. 7. Document a controlled upgrade procedure rather than instructing users to follow a mutable `latest` tag or broad version range. ]]>
Vulnerability Patterns
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (4)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/sui-sdk4-migration.md (reported line 22)May include surrounding context.

md
### Re-fetch Sui (and Fuel) ABIs — the cache is the wrong format
SDK 4 Sui codegen consumes ABIs in the new gRPC **array** format. Old cached `abis/sui/*.json` (the JSON-RPC normalized-module shape — often an object keyed by module name) make `sentio gen` throw `TypeError: modules.map is not a function` or `Cannot read properties of undefined (reading 'datatypes')`. Fix:
1. `rm -f abis/sui/*.json`, then `sentio gen` — re-downloads every `sentio.yaml` address (plus dependents) in the new format. Needs network.
2. **Named modules** added via `sentio add --name foo <addr>` live in `abis/sui/foo.json`, are imported as `./types/sui/foo.js`, and are usually **not** listed in `sentio.yaml` — so step 1 won't regenerate them. Re-add each: `sentio add --chain sui_mainnet --name foo <package-address>` (the package address is inside the old cached ABI). Codegen runs `modules.map` over *every* file in `abis/sui`, so it keeps failing until all stale files are refreshed.

Fuel has the analogous problem: an old Fuel ABI JSON lacking `specVersion` / `encodingVersion` / `programType` / `concreteTypes` / `metadataTypes` breaks Fuel codegen and must be regenerated from the Sway source (there may be no on-chain address to re-fetch from).

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill description contains very broad trigger terms such as general Sentio usage, processor development, blockchain analytics, DeFi protocols, and store entities. Overbroad routing can cause the skill to activate in unrelated contexts, increasing the chance that its instructions or code patterns are applied when not appropriate and expanding the attack surface for prompt/skill hijacking.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
89% confidence
Finding

Using npx @sentio/cli without pinning a specific version allows execution of whatever package version is current at invocation time. That creates a supply-chain risk and harms reproducibility: a compromised, maliciously updated, or simply breaking release could be fetched and run in the user's environment.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
89% confidence
Finding

This markdown file contains multiple code examples that log or emit user-linked addresses such as distinctId, from, to, and wallet identifiers, but the surrounding documentation does not warn readers that these examples process and expose user activity data. For markdown files, SQP-2 applies when the skill description omits warnings about behaviors that could affect user data or privacy.

Content

No source excerpt is available for this finding.