Back to skill

Security audit

Nansen Polymarket Trader Profile

Security checks for vulnerabilities and agentic risk

Overview

This skill is a small, coherent Nansen CLI helper for analyzing Polymarket wallet activity, with the main caveat that it installs an unpinned external npm CLI and uses a Nansen API key.

Install this only if you are comfortable using the external nansen-cli package with your Nansen API key. Prefer a reviewed or pinned CLI version if your environment supports it, and avoid exposing other sensitive environment variables while running wallet analysis.

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:13
Finding
Unpinned External CLI Dependency## Vulnerability Details **File Location**: `SKILL.md`, lines 13-16 **Vulnerability Type**: Unpinned third-party package dependency **Risk Level**: Medium ```yaml install: - kind: node package: nansen-cli bins: [nansen] ``` ### Technical Analysis The skill installs `nansen-cli` without specifying an exact version or package integrity hash. Consequently, installation resolves a mutable package release from the configured npm registry rather than a dependency whose reviewed contents are fixed. npm packages can contain executable lifecycle scripts and runtime code. Because the package implementation is not included in this project, its behavior cannot be verified from the audited artifact. A compromised package release, registry account, or dependency in the package's transitive dependency tree could therefore introduce arbitrary code during installation or execution. The skill also requires `NANSEN_API_KEY`. Malicious dependency code running in the same environment may be able to read that environment variable, subject to the process isolation and permissions enforced by the host. ### Attack Path 1. An attacker compromises the `nansen-cli` publishing account, registry distribution channel, or a dependency resolved by the package. 2. The attacker publishes a malicious release or causes installation to resolve attacker-controlled code. 3. The skill installer resolves the mutable package because no exact version or integrity constraint is declared. 4. Malicious code executes through an npm lifecycle script or when the installed `nansen` binary is invoked. 5. The code acts with the installer or agent process's permissions and may read accessible files, environment variables such as `NANSEN_API_KEY`, or other process-accessible data. 6. The compromised code may transmit collected information or perform other actions allowed by the host's network and operating-system permissions. ### Impact Assessment Succes ...[truncated 551 chars]
Remediation
## Remediation Suggestions 1. Pin `nansen-cli` to a reviewed exact version rather than resolving the latest available release. 2. Record and verify package integrity metadata through an appropriate lockfile or trusted checksum mechanism. 3. Document and enforce the expected package registry and publisher identity. 4. Audit the selected package release and its transitive dependencies before deployment. 5. Disable npm lifecycle scripts during installation unless they are explicitly required and have been reviewed. 6. Run installation and CLI execution in a sandbox with least-privilege filesystem and network access. 7. Expose `NANSEN_API_KEY` only to the process that needs it, use a narrowly scoped credential where supported, and rotate it if dependency compromise is suspected. 8. Add dependency monitoring and require review before changing the pinned version or integrity metadata.
Vulnerability Patterns
  • 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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep

Static analysis

No suspicious patterns detected.