•matchType = previous_version_dangerous_delta
matchedPackage = @punks/cli@3.1.3
matchedIdentity = npm:QHB1bmtzL2NsaQ:3.1.3
similarity = 0.967
summary = stored previous version shares package body but lacks this dangerous source file
CriticalPrevious Version Dangerous Delta
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
dist/index.jsView on unpkg 151`)return yield*this.pushCount(1);else if(ch==="\r"&&this.charAt(1)===`
L152: `)return yield*this.pushCount(2);else return 0}*pushSpaces(allowTabs){let i=this.pos-1;let ch;do{ch=this.buffer[++i]}while(ch===" "||allowTabs&&ch==="\t");const n=i-this.pos;if(n>0...
L153: `)+1;while(nl!==0){this.onNewLine(this.offset+nl);nl=this.source.indexOf(`
...
L155: `)+1;while(nl!==0){this.onNewLine(this.offset+nl);nl=this.source.indexOf(`
L156: `,nl)+1}}return{type,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(parent){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"do...
L157: `+ind(d+1));return`[
HighSame File Env Network Execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/index.jsView on unpkg · L151 247${annotate2("Wizard cancelled.",red)}`;var renderCommandBlock=(label,commandLine,commandColor,labelColor=white)=>{const lines2=wrapCommand(commandLine);return[annotate2(label,bold,...
L248: `)};var wrapCommand=(commandLine)=>{const width=88;const firstIndent=" $ ";const continuationIndent=" ";const args2=commandLine.map(formatShellArg);const lines2=[];let current=...
L249: `]);var ESCAPE_LENGTH={x:3,u:5};var splitByWhitespaces=(template,rawTemplate)=>{if(rawTemplate.length===0){return{tokens:[],hasLeadingWhitespace:false,hasTrailingWhitespace:false}}...
L250: `){templateIndex-=1;rawIndex+=1}else if(nextRawCharacter==="u"&&rawTemplate[rawIndex+2]==="{"){rawIndex=rawTemplate.indexOf("}",rawIndex+3)}else{rawIndex+=ESCAPE_LENGTH[nextRawChar...
L251: `).map((line)=>line.trim()).filter
HighCommand Output Exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
dist/index.jsView on unpkg · L247 1#!/usr/bin/env node
L2: import{createRequire}from"node:module";var __create=Object.create;var __getProtoOf=Object.getPrototypeOf;var __defProp=Object.defineProperty;var __getOwnPropNames=Object.getOwnProp...
L3: `:`
L4: `;const separator=opt.whitespace?" = ":"=";const children=[];const keys2=opt.sort?Object.keys(obj).sort():Object.keys(obj);let padToChars=0;if(opt.align){padToChars=safe(keys2.filt...
L5: --> `+loc+`
...
L121: ${cb}`:comment}else{const cb=dc.commentBefore;dc.commentBefore=cb?`${comment}
L122: ${cb}`:comment}}if(afterDoc){for(let i=0;i<this.errors.length;++i)doc.errors.push(this.errors[i]);for(let i=0;i<this.warnings.length;++i)doc.warnings.push(this.warnings[i])}else{do...
L123: ${end.comment}`:end.comment}this.doc.range[2]=end.offset;break}default:this.errors.push(new
HighObfuscated Payload Loader
Source contains an obfuscated payload loader that reconstructs and executes hidden code.
dist/index.jsView on unpkg · L1 247Trigger-reachable command-output exfiltration chain: manifest.bin -> dist/index.js
L247: ${annotate2("Wizard cancelled.",red)}`;var renderCommandBlock=(label,commandLine,commandColor,labelColor=white)=>{const lines2=wrapCommand(commandLine);return[annotate2(label,bold,...
L248: `)};var wrapCommand=(commandLine)=>{const width=88;const firstIndent=" $ ";const continuationIndent=" ";const args2=commandLine.map(formatShellArg);const lines2=[];let current=...
L249: `]);var ESCAPE_LENGTH={x:3,u:5};var splitByWhitespaces=(template,rawTemplate)=>{if(rawTemplate.length===0){return{tokens:[],hasLeadingWhitespace:false,hasTrailingWhitespace:false}}...
L250: `){templateIndex-=1;rawIndex+=1}else if(nextRawCharacter==="u"&&rawTemplate[rawIndex+2]==="{"){rawIndex=rawTemplate.indexOf("}",rawIndex+3)}e
HighTrigger Reachable Command Output Exfiltration
A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.
dist/index.jsView on unpkg · L247 1Trigger-reachable persistence chain: manifest.bin -> dist/index.js
L1: #!/usr/bin/env node
L2: import{createRequire}from"node:module";var __create=Object.create;var __getProtoOf=Object.getPrototypeOf;var __defProp=Object.defineProperty;var __getOwnPropNames=Object.getOwnProp...
L3: `:`
L4: `;const separator=opt.whitespace?" = ":"=";const children=[];const keys2=opt.sort?Object.keys(obj).sort():Object.keys(obj);let padToChars=0;if(opt.align){padToChars=safe(keys2.filt...
L5: --> `+loc+`
...
L121: ${cb}`:comment}else{const cb=dc.commentBefore;dc.commentBefore=cb?`${comment}
L122: ${cb}`:comment}}if(afterDoc){for(let i=0;i<this.errors.length;++i)doc.errors.push(this.errors[i]);for(let i=0;i<this.warnings.length;++i)doc.warnings.push(this.warnings[i])}else{do...
L123: ${end.comment}`:end.comme
HighTrigger Reachable Persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
dist/index.jsView on unpkg · L1 1#!/usr/bin/env node
L2: import{createRequire}from"node:module";var __create=Object.create;var __getProtoOf=Object.getPrototypeOf;var __defProp=Object.defineProperty;var __getOwnPropNames=Object.getOwnProp...
L3: `:`
L4: `;const separator=opt.whitespace?" = ":"=";const children=[];const keys2=opt.sort?Object.keys(obj).sort():Object.keys(obj);let padToChars=0;if(opt.align){padToChars=safe(keys2.filt...
L5: --> `+loc+`
...
L121: ${cb}`:comment}else{const cb=dc.commentBefore;dc.commentBefore=cb?`${comment}
L122: ${cb}`:comment}}if(afterDoc){for(let i=0;i<this.errors.length;++i)doc.errors.push(this.errors[i]);for(let i=0;i<this.warnings.length;++i)doc.warnings.push(this.warnings[i])}else{do...
L123: ${end.comment}`:end.comment}this.doc.range[2]=end.offset;break}default:this.errors.push(new
MediumUnsafe Vm Context
Package source executes code through a VM context API.
dist/index.jsView on unpkg · L1 1#!/usr/bin/env node
L2: import{createRequire}from"node:module";var __create=Object.create;var __getProtoOf=Object.getPrototypeOf;var __defProp=Object.defineProperty;var __getOwnPropNames=Object.getOwnProp...
L3: `:`
L4: `;const separator=opt.whitespace?" = ":"=";const children=[];const keys2=opt.sort?Object.keys(obj).sort():Object.keys(obj);let padToChars=0;if(opt.align){padToChars=safe(keys2.filt...
L5: --> `+loc+`
...
L121: ${cb}`:comment}else{const cb=dc.commentBefore;dc.commentBefore=cb?`${comment}
L122: ${cb}`:comment}}if(afterDoc){for(let i=0;i<this.errors.length;++i)doc.errors.push(this.errors[i]);for(let i=0;i<this.warnings.length;++i)doc.warnings.push(this.warnings[i])}else{do...
L123: ${end.comment}`:end.comment}this.doc.range[2]=end.offset;break}default:this.errors.push(new
MediumInstall Persistence
Source writes installer persistence such as shell profile or service configuration.
dist/index.jsView on unpkg · L1