Jev 分類が Hemanth.HM の pkg-gate で npm install スクリプトをゲートする
ガードレール- レイテンシ
- ~100 ms
- 結果
- install スクリプトへの型付き allow、warn、block
この npm ライフサイクルスクリプトの intent Choice、threat Score、secret Noul、remote-exec Noul を Jev に聞く。
質問
プリミティブ
Choice
Ask a multiple choice question
- Name
- script_intent
- 指示
- What is the primary intent and runtime behavior of `script_content` executed in lifecycle hook `lifecycle_hook`?
- 基準
- build_tool
Standard compilation or native build (e.g. node-gyp, esbuild, tsc, cargo)
- binary_download
Downloads official pre-compiled native binaries or assets from a known repository or CDN
- benign_notice
Informational message, donation banner, or benign no-op command
- system_recon
Gathers host system details, environment variables, network interfaces, or user directories
- credential_access
Reads or extracts secrets, authentication tokens (NPM_TOKEN, AWS, SSH keys), or credential files
- obfuscated_exec
Executes obfuscated code, base64 payloads, or pipes curl/wget to bash/sh/node
- other
General package maintenance or utility task
- build_tool
プリミティブ
Score
Set up a rubric to grade with
- Name
- threat_severity
- 指示
- How severe is the security risk of executing `script_content` during npm install of `package.name`?
- 基準
- 0
Safe: standard build or benign command with no external network or secret access
- 1
Low risk: fetches known binary from release domain or routine package setup
- 2
Suspicious: makes non-standard outbound connections, inspects system environment, or runs encoded commands
- 3
Critical threat: credential harvesting, token exfiltration, backdoor dropper, or destructive action
- 0
プリミティブ
Noul
Evaluate how true something is
- Name
- accesses_secrets
- 指示
- Does `script_content` attempt to access, extract, or transmit environment variables, private credentials, or authentication tokens?
プリミティブ
Noul
Evaluate how true something is
- Name
- remote_execution
- 指示
- Does `script_content` download and execute arbitrary unverified external code or pipe remote scripts directly into a shell?