Is paqad-ai safe?
- Node.js shell/command execution
- npm install-time lifecycle hook
- Node.js network egress
paqad-ai is an AI npm_package analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators, though 4 risky constructs are reported for review. It can: delegated authentication, install time execution, network egress and shell execution — capabilities are what the code can do, not a verdict on intent. Risk score 0/100 (low).
paqad-ai 1.93.0
Automated static-analysis result. It can contain false positives and false negatives, and is not a claim about the intent of paqad-ai's authors. Report a false positive.
Behavioral traits
How this component maps to the CSA agentic threat model. Descriptive — it never affects the risk score.
Findings (4)
package.json runs scripts automatically when the package is installed.
"postinstall": "node runtime/scripts/postinstall.mjs",
Why it matters: Install scripts are a favorite supply-chain foothold — they execute on every machine that installs the package.
Fix: Inspect the hook command. Install-time scripts are a common supply chain execution vector; ensure they do nothing beyond a documented build step.
The component can run operating-system commands or spawn processes.
import { execFileSync } from "child_process";import { execa } from "execa";import { execFileSync } from "child_process";import { execFileSync as execFileSync2 } from "child_process";import { execFileSync as execFileSync3 } from "child_process";import { execFileSync as execFileSync4 } from "child_process";import { execa as execa2 } from "execa";import { execa as execa3 } from "execa";import { execa as execa4 } from "execa";import { spawnSync } from "child_process";const proc = spawnSync("node", [scriptPath], {import { execFileSync as execFileSync5 } from "child_process";import { execFileSync as execFileSync6 } from "child_process";install: exec("pip install -r requirements.txt"),test: exec("pytest"),test_single: exec('pytest -k "<pattern>"'),lint: exec("ruff check ."),format: exec("ruff format ."),migrate: exec(input2.migrate),
build: exec("python -m compileall .")install: exec("bundle install"),test: exec("bundle exec rspec"),test_single: exec("bundle exec rspec <path_or_file>"),lint: exec("bundle exec rubocop"),format: exec("bundle exec rubocop -A"),Why it matters: Powerful and often legitimate — confirm the commands aren't built from untrusted input.
Fix: Confirm the command and its arguments are fully controlled and not derived from untrusted input; prefer execFile with an argument array.
The component makes outbound network requests.
const response = await fetch("https://api.cohere.com/v1/rerank", {const response = await fetch("https://api.osv.dev/v1/querybatch", {"axios"
const response = await fetch("https://api.cohere.com/v1/rerank", {Why it matters: Usually legitimate, but confirm the destinations are expected and no sensitive data leaves.
Fix: Confirm the destination hosts are expected and that no sensitive data is sent off-host.
An OAuth 2.0 / OpenID Connect delegated-authentication flow was detected (authorization-code / refresh-token / token-exchange grant, an OIDC authorize/discovery endpoint or id_token, or a delegation library). Tools authenticate with the end user's delegated, scoped credentials rather than a long-lived embedded service credential. (11 occurrence(s) shown as evidence).
declare const SUPPORTED_CAPABILITIES: readonly ["inertia", "vue", "react", "tailwind", "boost", "pest", "phpunit", "docker", "compose", "sail", "next", "remix", "vite-spa", "gatsby", "nuxt", "quasar", "blazor", "ef-core", "minimal-api", "mv …
"next-auth",
nextjs: ["app-router", "pages-router", "tailwind", "prisma", "trpc", "next-auth", "docker"],
"next-auth",
"next-auth": "next-auth",
"@auth/core": "next-auth",
"next-auth",
"next-auth",
declare const CAPABILITIES: readonly ["inertia", "vue", "react", "tailwind", "boost", "pest", "phpunit", "docker", "compose", "sail", "next", "remix", "vite-spa", "gatsby", "nuxt", "quasar", "blazor", "ef-core", "minimal-api", "mvc", "razor …
"next-auth",
"next-auth",
Fix: Delegated auth is a lower-blast-radius execution context than an embedded static credential. Confirm the requested scopes are minimal and that tokens are never logged or forwarded off-host.
Check your own component
Run the same evidence-backed scan on any MCP server, agent skill, or package.
Scan your own componentHow we determine this: deterministic static analysis (regex + AST), evidence-anchored, no code execution. Methodology →