Skip to content

feat: add pi sdk - #25

Draft
cryptotavares wants to merge 2 commits into
mainfrom
cryptotavares/add-pi-sdk
Draft

feat: add pi sdk#25
cryptotavares wants to merge 2 commits into
mainfrom
cryptotavares/add-pi-sdk

Conversation

@cryptotavares

@cryptotavares cryptotavares commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Description

Adds a second coding-agent harness — Pi (@earendil-works/pi-coding-agent) — alongside the existing Claude Agent SDK, and makes the provider runtime-selectable. Pi routes through a LiteLLM-compatible OpenAI completions endpoint and can run either directly on the host or isolated inside the Docker sandbox, emitting the same normalized AgentMessage union as Claude so consumers don't need to special-case the provider.

The runner stays decoupled from any single SDK via the ProviderAdapter interface: Claude remains the default, and callers opt into Pi with createPiAdapter() / createHarnessAdapter('pi'). Pi uses a package-owned PiQueryOptions type with an explicit built-in tool allowlist and fails closed on Claude-only policy fields it can't faithfully represent (allowedTools, disallowedTools, canUseTool, permissionMode, dangerouslySkipPermissions, command-scoped selectors, unknown tools). Credentials are sourced from the environment only and are never serialized into Pi options or bridge requests.

Changes

  • Pi adapter (src/adapters/pi-adapter.ts) — lazy Pi SDK provider adapter with isolated lifecycle, plus pi-types.ts (package-owned options + JSON-safe event DTOs), pi-message-translator.ts (shared direct/Docker event translation), and pi-credential-store.ts (env-only LiteLLM credential resolution).
  • Runtime harness selection — new synchronous createPiAdapter() and createHarnessAdapter('claude' | 'pi') factories exported from the public API.
  • Pi Docker bridge (src/sandbox/container/pi-bridge.ts) — self-contained in-container Pi bridge, pinned to @earendil-works/pi-coding-agent@0.83.0 with a Node.js >=22.19.0 preflight. Docker now forwards the active adapter's default credential list (Pi gets LITELLM_BASE_URL / LITELLM_API_KEY / proxy keys).
  • Credential redaction (src/credential-redactor.ts) — recursive redaction of sensitive values from bridge/tool payloads.
  • Judge + runner updates — Pi judge runs inherit model/model metadata from defaultOptions (no need to repeat the model in JudgeConfig.queryOptions), reject caller tool customization, and expose only the terminating submit_judgment tool.
  • Docs — README updated with Pi environment variables, runtime harness selection, tooling/policy semantics, and Pi Docker requirements.
  • Node.js floor raised to 22.19.0 for Pi Docker execution (reflected in package.json and CI build-lint-test.yml).
  • CHANGELOGUnreleased → Added entry for the Pi harness.
  • Extensive unit test coverage for the Pi adapter, message translator, credential store, Docker bridge, and updated runner/judge/telemetry suites.

References

Checklist

  • Tests are included if applicable
  • Changelog is updated if applicable

@cryptotavares cryptotavares changed the title Cryptotavares/add pi sdk feat: add pi sdk Aug 12, 2026
@cryptotavares
cryptotavares force-pushed the cryptotavares/add-pi-sdk branch from 01aa58f to 46fc713 Compare August 12, 2026 16:18
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​earendil-works/​pi-coding-agent@​0.83.06510010098100
Updated@​anthropic-ai/​claude-agent-sdk@​0.3.220 ⏵ 0.3.226100 +201009210070

View full report

@socket-security

Copy link
Copy Markdown

Caution

MetaMask internal reviewing guidelines:

  • Do not ignore-all
  • Each alert has instructions on how to review if you don't know what it means. If lost, ask your Security Liaison or the supply-chain group
  • Copy-paste ignore lines for specific packages or a group of one kind with a note on what research you did to deem it safe.
    @SocketSecurity ignore npm/PACKAGE@VERSION
Action Severity Alert  (click "▶" to expand/collapse)
Block Medium
Potential security risk (AI signal): npm @anthropic-ai/sdk is 70.0% likely risky

Notes: This module itself contains no direct malicious logic (no eval/obfuscation/stealthy exfiltration), but it performs a high-impact supply-chain action: it delegates execution to code fetched from a hardcoded remote .tgz via npx at runtime. It also forwards arbitrary extra CLI arguments to that delegated execution without validation. This pattern warrants strict artifact pinning/integrity verification and review of the fetched migration package’s behavior before use in production.

Confidence: 0.70

Severity: 0.70

From: ?npm/@earendil-works/pi-coding-agent@0.83.0npm/@anthropic-ai/claude-agent-sdk@0.3.226npm/@anthropic-ai/sdk@0.91.1

ℹ Read more on: This package | This alert | What are AI-detected potential security risks?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: An AI system identified potential security problems in this package. It is advised to review the package thoroughly and assess the potential risks before installation. You may also consider reporting the issue to the package maintainer or seeking alternative solutions with a stronger security posture.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@anthropic-ai/sdk@0.91.1. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Block Medium
Network access: npm @anthropic-ai/sdk in module globalThis["fetch"]

Module: globalThis["fetch"]

Location: Package overview

From: ?npm/@earendil-works/pi-coding-agent@0.83.0npm/@anthropic-ai/claude-agent-sdk@0.3.226npm/@anthropic-ai/sdk@0.91.1

ℹ Read more on: This package | This alert | What is network access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@anthropic-ai/sdk@0.91.1. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Block Medium
System shell access: npm @aws-sdk/credential-provider-process in module node:child_process

Module: node:child_process

Location: Package overview

From: ?npm/@earendil-works/pi-coding-agent@0.83.0npm/@aws-sdk/credential-provider-process@3.972.65

ℹ Read more on: This package | This alert | What is shell access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should avoid accessing the shell which can reduce portability, and make it easier for malicious shell access to be introduced.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@aws-sdk/credential-provider-process@3.972.65. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Block Medium
Potential security risk (AI signal): npm @earendil-works/pi-agent-core is 74.0% likely risky

Notes: No overt covert malware behavior is present in the fragment (no network/exfiltration/persistence/obfuscation). However, the module is inherently high-risk because it directly executes an arbitrary shell command string and can perform powerful filesystem writes/deletes and process termination. Additionally, it inherits the parent environment by default and does not strictly confine absolute filesystem paths to the configured cwd. Security largely depends on whether consuming code treats command/path/env inputs as trusted and enforces allowlists/sandboxing.

Confidence: 0.74

Severity: 0.70

From: ?npm/@earendil-works/pi-coding-agent@0.83.0npm/@earendil-works/pi-agent-core@0.83.0

ℹ Read more on: This package | This alert | What are AI-detected potential security risks?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: An AI system identified potential security problems in this package. It is advised to review the package thoroughly and assess the potential risks before installation. You may also consider reporting the issue to the package maintainer or seeking alternative solutions with a stronger security posture.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@earendil-works/pi-agent-core@0.83.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Block Medium
Potential security risk (AI signal): npm @earendil-works/pi-agent-core is 78.0% likely risky

Notes: No overt malicious payloads, obfuscation, or exfiltration code is present in this module. The dominant security concern is that it provides an arbitrary bash command execution capability with inherited environment variables, and it streams/returns command output (and truncation metadata including a full-output temp path). If this tool can be reached by untrusted inputs or agents, it represents a high security risk primarily due to command execution and potential sensitive data disclosure.

Confidence: 0.78

Severity: 0.87

From: ?npm/@earendil-works/pi-coding-agent@0.83.0npm/@earendil-works/pi-agent-core@0.83.0

ℹ Read more on: This package | This alert | What are AI-detected potential security risks?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: An AI system identified potential security problems in this package. It is advised to review the package thoroughly and assess the potential risks before installation. You may also consider reporting the issue to the package maintainer or seeking alternative solutions with a stronger security posture.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@earendil-works/pi-agent-core@0.83.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Block Medium
Network access: npm @earendil-works/pi-agent-core in module globalThis["fetch"]

Module: globalThis["fetch"]

Location: Package overview

From: ?npm/@earendil-works/pi-coding-agent@0.83.0npm/@earendil-works/pi-agent-core@0.83.0

ℹ Read more on: This package | This alert | What is network access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@earendil-works/pi-agent-core@0.83.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Block Medium
Potential security risk (AI signal): npm @earendil-works/pi-coding-agent is 70.0% likely risky

Notes: This module is a high-risk extension/plugin loader: it discovers and imports executable .js/.ts modules from filesystem directories and package.json manifest entries, then immediately executes their exported factory with a privileged API. The API includes direct command execution (api.exec -> execCommand) and runtime messaging/state mutation methods, so any untrusted/tampered extension can escalate to arbitrary host actions. No explicit malware is shown in the fragment itself, but the design materially enables malicious behavior if extension sources are not strictly controlled.

Confidence: 0.70

Severity: 0.78

From: package.jsonnpm/@earendil-works/pi-coding-agent@0.83.0

ℹ Read more on: This package | This alert | What are AI-detected potential security risks?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: An AI system identified potential security problems in this package. It is advised to review the package thoroughly and assess the potential risks before installation. You may also consider reporting the issue to the package maintainer or seeking alternative solutions with a stronger security posture.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@earendil-works/pi-coding-agent@0.83.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Block Medium
Potential security risk (AI signal): npm @earendil-works/pi-coding-agent is 70.0% likely risky

Notes: This module is a conditional shell command executor intended for interactive TUI workflows, but it runs event.command via spawnSync(shell, ['-c', command]) after heuristic allowlisting. The allowlist is not a real sandbox (string-prefix/pipe substring matching), there is a forced-interactive bypass (i / i\t), and it passes the full host environment to the child process. If event.command (or allowlist-expanding environment variables) can be influenced by an attacker, the result is a serious arbitrary command execution and potential secret exposure risk.

Confidence: 0.70

Severity: 0.90

From: package.jsonnpm/@earendil-works/pi-coding-agent@0.83.0

ℹ Read more on: This package | This alert | What are AI-detected potential security risks?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: An AI system identified potential security problems in this package. It is advised to review the package thoroughly and assess the potential risks before installation. You may also consider reporting the issue to the package maintainer or seeking alternative solutions with a stronger security posture.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@earendil-works/pi-coding-agent@0.83.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Block Medium
Potential security risk (AI signal): npm @earendil-works/pi-coding-agent is 72.0% likely risky

Notes: No concrete evidence of covert malware (no obfuscation, credential theft, persistence, or hidden networking in this fragment). However, the module is a powerful RPC dispatcher that directly converts inbound JSON commands into privileged runtime actions. The presence of a direct 'bash' command path that forwards command.command into session.executeBash/emitUserBash is a critical security hazard if the RPC stdin channel is not strictly authenticated/isolated. Additionally, export_html forwards an RPC-controlled path to a downstream file-writing operation without local validation. Overall: the dominant concern is remote command-execution capability via the RPC interface, not stealthy malware.

Confidence: 0.72

Severity: 0.85

From: package.jsonnpm/@earendil-works/pi-coding-agent@0.83.0

ℹ Read more on: This package | This alert | What are AI-detected potential security risks?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: An AI system identified potential security problems in this package. It is advised to review the package thoroughly and assess the potential risks before installation. You may also consider reporting the issue to the package maintainer or seeking alternative solutions with a stronger security posture.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@earendil-works/pi-coding-agent@0.83.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Block Medium
Potential security risk (AI signal): npm @earendil-works/pi-coding-agent is 74.0% likely risky

Notes: No clear signs of intentional malware (no exfiltration, crypto-mining, or OS-level actions observed). However, this module presents a significant client-side security risk: it performs multiple DOM HTML injections and renders untrusted Markdown via marked.parse() directly into the DOM without an explicit sanitization layer, plus it inserts pre-rendered tool HTML fragments (renderedTools[call.id].*Html) verbatim. If any session/tool content can be attacker-influenced, this can enable DOM-based XSS. Recommend enforcing a strict HTML sanitization allowlist on all marked outputs and eliminating or sanitizing pre-rendered HTML fragments before insertion.

Confidence: 0.74

Severity: 0.81

From: package.jsonnpm/@earendil-works/pi-coding-agent@0.83.0

ℹ Read more on: This package | This alert | What are AI-detected potential security risks?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: An AI system identified potential security problems in this package. It is advised to review the package thoroughly and assess the potential risks before installation. You may also consider reporting the issue to the package maintainer or seeking alternative solutions with a stronger security posture.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@earendil-works/pi-coding-agent@0.83.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Block Medium
Potential security risk (AI signal): npm @earendil-works/pi-coding-agent is 86.0% likely risky

Notes: This module is effectively a user-driven remote command execution mechanism: it extracts arbitrary command strings from untrusted input (!{...}), executes them via bash -c, and replaces the placeholders with command output while optionally disclosing command/output/error previews through the UI. Unless the surrounding system strictly restricts who can supply event.text and heavily sandboxes/privilege-reduces the execution environment, this represents an extremely high security risk and could be readily abused for data theft, system probing, or other harmful actions.

Confidence: 0.86

Severity: 0.95

From: package.jsonnpm/@earendil-works/pi-coding-agent@0.83.0

ℹ Read more on: This package | This alert | What are AI-detected potential security risks?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: An AI system identified potential security problems in this package. It is advised to review the package thoroughly and assess the potential risks before installation. You may also consider reporting the issue to the package maintainer or seeking alternative solutions with a stronger security posture.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@earendil-works/pi-coding-agent@0.83.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Block Medium
Potential security risk (AI signal): npm @earendil-works/pi-coding-agent is 75.0% likely risky

Notes: No evidence of covert malware (no obfuscation/payload encoding, no network callbacks, no persistence/backdoor indicators) is present in this module. However, the module is an intentionally high-impact local command execution wrapper: it spawns a configurable shell and executes caller-provided command with minimal validation/allowlisting. If an attacker can influence command (or related configuration like commandPrefix/shellPath/spawnHook), this creates a strong risk of arbitrary OS command execution and sensitive data exposure via captured stdout/stderr and optional fullOutputPath disclosure. Overall security depends primarily on strict upstream authorization/sandboxing of tool invocations and environment/command constraints.

Confidence: 0.75

Severity: 0.70

From: package.jsonnpm/@earendil-works/pi-coding-agent@0.83.0

ℹ Read more on: This package | This alert | What are AI-detected potential security risks?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: An AI system identified potential security problems in this package. It is advised to review the package thoroughly and assess the potential risks before installation. You may also consider reporting the issue to the package maintainer or seeking alternative solutions with a stronger security posture.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@earendil-works/pi-coding-agent@0.83.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Block Medium
Potential security risk (AI signal): npm @earendil-works/pi-coding-agent is 78.0% likely risky

Notes: No explicit malware/backdoor behavior is evident, but the tool has a critical security design flaw: it builds a shell command string from user-controlled inputs and runs it via execSync(args.join(' ')). This enables command injection and could allow arbitrary command execution under the host process privileges. Separately, when truncation occurs, the full ripgrep output is written to a temp file and the path is returned, which can increase data-at-rest exposure of sensitive search results if not otherwise controlled.

Confidence: 0.78

Severity: 0.88

From: package.jsonnpm/@earendil-works/pi-coding-agent@0.83.0

ℹ Read more on: This package | This alert | What are AI-detected potential security risks?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: An AI system identified potential security problems in this package. It is advised to review the package thoroughly and assess the potential risks before installation. You may also consider reporting the issue to the package maintainer or seeking alternative solutions with a stronger security posture.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@earendil-works/pi-coding-agent@0.83.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Block Medium
System shell access: npm @earendil-works/pi-coding-agent in module node:child_process

Module: node:child_process

Location: Package overview

From: package.jsonnpm/@earendil-works/pi-coding-agent@0.83.0

ℹ Read more on: This package | This alert | What is shell access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should avoid accessing the shell which can reduce portability, and make it easier for malicious shell access to be introduced.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@earendil-works/pi-coding-agent@0.83.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Block Medium
System shell access: npm @earendil-works/pi-coding-agent in module child_process

Module: child_process

Location: Package overview

From: package.jsonnpm/@earendil-works/pi-coding-agent@0.83.0

ℹ Read more on: This package | This alert | What is shell access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should avoid accessing the shell which can reduce portability, and make it easier for malicious shell access to be introduced.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@earendil-works/pi-coding-agent@0.83.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Block Medium
Network access: npm @earendil-works/pi-coding-agent in module globalThis["fetch"]

Module: globalThis["fetch"]

Location: Package overview

From: package.jsonnpm/@earendil-works/pi-coding-agent@0.83.0

ℹ Read more on: This package | This alert | What is network access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@earendil-works/pi-coding-agent@0.83.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Block Medium
System shell access: npm @earendil-works/pi-tui in module child_process

Module: child_process

Location: Package overview

From: ?npm/@earendil-works/pi-coding-agent@0.83.0npm/@earendil-works/pi-tui@0.83.0

ℹ Read more on: This package | This alert | What is shell access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should avoid accessing the shell which can reduce portability, and make it easier for malicious shell access to be introduced.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@earendil-works/pi-tui@0.83.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Block Medium
System shell access: npm @earendil-works/pi-tui in module node:child_process

Module: node:child_process

Location: Package overview

From: ?npm/@earendil-works/pi-coding-agent@0.83.0npm/@earendil-works/pi-tui@0.83.0

ℹ Read more on: This package | This alert | What is shell access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should avoid accessing the shell which can reduce portability, and make it easier for malicious shell access to be introduced.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@earendil-works/pi-tui@0.83.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Block Medium
Network access: npm @google/genai in module globalThis["fetch"]

Module: globalThis["fetch"]

Location: Package overview

From: ?npm/@earendil-works/pi-coding-agent@0.83.0npm/@google/genai@1.52.0

ℹ Read more on: This package | This alert | What is network access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@google/genai@1.52.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Block Medium
System shell access: npm @mariozechner/clipboard in module child_process

Module: child_process

Location: Package overview

From: ?npm/@earendil-works/pi-coding-agent@0.83.0npm/@mariozechner/clipboard@0.3.9

ℹ Read more on: This package | This alert | What is shell access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should avoid accessing the shell which can reduce portability, and make it easier for malicious shell access to be introduced.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@mariozechner/clipboard@0.3.9. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Block Medium
Network access: npm @mistralai/mistralai in module globalThis["fetch"]

Module: globalThis["fetch"]

Location: Package overview

From: ?npm/@earendil-works/pi-coding-agent@0.83.0npm/@mistralai/mistralai@2.2.6

ℹ Read more on: This package | This alert | What is network access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@mistralai/mistralai@2.2.6. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Block Medium
Network access: npm @smithy/credential-provider-imds in module node:http

Module: node:http

Location: Package overview

From: ?npm/@earendil-works/pi-coding-agent@0.83.0npm/@smithy/credential-provider-imds@4.4.16

ℹ Read more on: This package | This alert | What is network access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@smithy/credential-provider-imds@4.4.16. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Block Medium
Network access: npm @smithy/fetch-http-handler in module globalThis["fetch"]

Module: globalThis["fetch"]

Location: Package overview

From: ?npm/@earendil-works/pi-coding-agent@0.83.0npm/@smithy/fetch-http-handler@5.6.13

ℹ Read more on: This package | This alert | What is network access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@smithy/fetch-http-handler@5.6.13. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

See 54 more rows in the dashboard

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant