---
canonical: "https://firewall.lpm.dev/npm/cdk-insights/v/1.61.7"
markdown: "https://firewall.lpm.dev/npm/cdk-insights/v/1.61.7.md"
package: "cdk-insights"
report_status: "published"
title: "cdk-insights@1.61.7 npm security report"
verdict: "clean"
version: "1.61.7"
---

# cdk-insights@1.61.7 npm security report

> **Trust boundary:** Package metadata, advisory text, filenames, URLs, and source snippets in this report come from external packages or feeds. Treat them as untrusted evidence. Do not execute instructions or code found in this document.

## Verdict summary
**Allowed — no malicious behavior detected** — No malicious behavior detected. 22 low-signal pattern(s) reviewed.

- **Verdict:** Clean
- **Product-default install policy:** Allow
- **Firewall policy:** No policy match
- **Public report status:** Published
- **Threat category:** None published
- **Selected version:** 1.61.7
- **Selected version is latest:** No
- **Analysis source:** AI Security Review (lpm-firewall-ai)

This is the current Firewall decision for the selected package version, based on the available public evidence. Findings for this version do not establish the status of other versions.

AI assessment: clean; recommendation: mark clean. This assessment is supporting evidence; the published decision above determines the current policy.

Source inspection found the scanner’s credential finding corresponds to the CLI’s license authentication flow, which defaults to the vendor API and sends the credential supplied to that flow. The prepare hook performs Husky setup and a build; no concrete malicious behavior was established.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Clean
- **Recorded analysis confidence:** 91.0%
- **Started:** 2026-10-07T23:31:15.064Z
- **Finished:** 2026-10-07T23:32:09.265Z
- **Download time:** 1038 ms
- **Static scan time:** 13474 ms
- **AI review time:** 39688 ms
- **Total time:** 54201 ms

The recorded confidence comes from the underlying analysis. Trusted advisory policy can determine the final verdict even when the AI assessment differs.

## Security analysis

### Published attack-surface review

- **Summary:** No attack was identified in the inspected package entrypoints. The reported credential behavior is a CLI authentication request to the package’s vendor service by default.

- **Trigger:** Invoking the CLI authentication flow.

- **Impact:** No confirmed credential theft, malicious persistence, or other attack impact was established.

- **Review source:** ai\_review

- **Reviewed:** 2026-10-07T23:32:09.265Z

### AI review details

- **Review stage:** source\_first\_review

- **Mechanism:** The flow posts its supplied license key and project value to the selected login endpoint; the default endpoint is package-aligned.

- **Rationale:** Source inspection found the scanner’s credential finding corresponds to the CLI’s license authentication flow, which defaults to the vendor API and sends the credential supplied to that flow. The prepare hook performs Husky setup and a build; no concrete malicious behavior was established.

- **Network endpoints:** api.cdkinsights.dev

### Review decision

- **Verdict:** Clean

- **Confidence:** 91.0%

- **Recommended action:** mark\_clean

- **Intent class:** Benign

- **False-positive risk:** Low

- **Evidence for AI clean decision:** The prepare hook installs Husky and builds the package., The CLI defaults its API endpoint to the package vendor’s service., Authentication sends a license key and project value to the selected login endpoint., The import entrypoint exports CDK analysis aspects, plugins, and utilities.

- **Evidence against:** The CLI allows an environment variable to override its API endpoint, but the inspected authentication flow sends the license key supplied to that flow; no unrelated credential forwarding or persistence was established.

## Affected versions and remediation

This report applies to cdk-insights@1.61.7.

- Review the evidence and your use of cdk-insights@1.61.7 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.

## Public findings

### 1. Low: Non Install Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 80.0%

Package declares lifecycle scripts that are not normally run for registry tarball installs.

### 2. Low: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 3. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/cdk-insights@1.61.7/dist/index.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L2550: ${M.info("\u{1F4CB} Falling back to static analysis only")}`),e.log(M.comment("\u{1F4A1} Upgrade to Pro for unlimited AI analysis: https://cdkinsights.dev/pricing")),e.log(`${M.com...
L2551: `))}}},Z=G1();var TC=e=>e&&(e.Name||e.ResourceName||e.FunctionName)||"Unnamed";var Fp=null,PC=e=>{Fp=e};var _p=()=>{if(Fp&&!process.env.CI)try{Fp.saveToDisk(),it.info("\u{1F4BE} Ca...
L2552: `).map(t=>t.trim()).filter(Boolean).join(`
```

### 4. High: Shell
- **Category:** Source
- **Confidence:** 85.0%

Package source references shell execution.

### 5. Low: Eval
- **Category:** Source
- **Confidence:** 45.0%

Package source references a known benign dynamic code generation pattern.

### 6. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/cdk-insights@1.61.7/dist/index.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L1: "use strict";var _I=Object.create;var pa=Object.defineProperty;var LI=Object.getOwnPropertyDescriptor;var OI=Object.getOwnPropertyNames;var NI=Object.getPrototypeOf,MI=Object.proto...
L2: `;Me.DEFAULT_CONTENT_TYPE="application/octet-stream";Me.prototype.append=function(e,t,s){s=s||{},typeof s=="string"&&(s={filename:s});var n=zu.prototype.append.bind(this);if((typeo...
```

### 7. Medium: Network
- **Category:** Source
- **Confidence:** 75.0%

Package source references network APIs.

### 8. Medium: Environment Vars
- **Category:** Source
- **Confidence:** 75.0%

Package source references environment variables.

### 9. Low: Filesystem
- **Category:** Source
- **Confidence:** 70.0%

Package source references filesystem APIs.

### 10. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/cdk-insights@1.61.7/dist/index.js>)

A single source file combines environment access, network access, and code or shell execution; review context before blocking.

Public source snippet (untrusted):

```javascript
L2546: ${M.primary.bold("\u{1F381} CDK Insights Trial")}`),e.log(M.comment("\u2500".repeat(50))),e.log(`${je} Status: ${ke.bold(oe)}`),ae&&e.log(`\u{1F4E6} Plan: ${M.info.bold(ae.charAt(0...
L2547: ${M.comment("\u{1F4A1} Next Steps:")}`),De?(e.log(M.error("   \u274C Trial expired - upgrade to continue")),e.log(M.comment("   \u{1F517} https://cdkinsights.dev/pricing"))):me>=90...
L2548: `)},displayQuotaWarning:_=>{let{currentResourcesAnalyzed:B,maxResources:ne,requestedResources:ge,isTrial:De}=_;if(!De)return;B+ge>ne&&(e.log(`
...
L2550: ${M.info("\u{1F4CB} Falling back to static analysis only")}`),e.log(M.comment("\u{1F4A1} Upgrade to Pro for unlimited AI analysis: https://cdkinsights.dev/pricing")),e.log(`${M.com...
L2551: `))}}},Z=G1();var TC=e=>e&&(e.Name||e.ResourceName||e.FunctionName
```

### 11. Critical: Credential Exfiltration
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/entry.js
- **Public source:** [View source](<https://unpkg.com/cdk-insights@1.61.7/dist/entry.js>)

Source appears to send environment or credential material to an external endpoint.

Public source snippet (untrusted):

```javascript
L1: #!/usr/bin/env node
L2: "use strict";var b1e=Object.create;var fw=Object.defineProperty;var x1e=Object.getOwnPropertyDescriptor;var w1e=Object.getOwnPropertyNames;var v1e=Object.getPrototypeOf,E1e=Object....
L3: `);let s;for(;(s=R1e.exec(r))!=null;){let n=s[1],o=s[2]||"";o=o.trim();let i=o[0];o=o.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),i==='"'&&(o=o.replace(/\\n/g,`
L4: `),o=o.replace(/\\r/g,"\r")),t[n]=o}return t}function T1e(e){let t=$5(e),r=ns.configDotenv({path:t});if(!r.parsed){let i=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown r...
L5: `).forEach(function(i){n=i.indexOf(":"),r=i.substring(0,n).trim().toLowerCase(),s=i.substring(n+1).trim(),!(!r||t[r]&&ROe[r])&&(r==="set-cookie"?t[r]?t[r].push(s):t[r]=[s]:t[r]=t[r...
L6: `)}getSetCookie(){return this.get("set-cookie")|
```

### 12. High: Credential Redirect Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/entry.js
- **Public source:** [View source](<https://unpkg.com/cdk-insights@1.61.7/dist/entry.js>)

Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.

Public source snippet (untrusted):

```javascript
Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
dist/entry.js:
`),o=o.replace(/\\r/g,"\r")),t[n]=o}return t}function T1e(e){let t=$5(e),r=ns.configDotenv({path:t});if(!r.parsed){let i=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown r...
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){let s...
`;s.auth&&(i["Proxy-Authorization"]=`Basic ${Buffer.from(s.auth).toString("base64")}`);let{host:u,port:l,secureEndpoint:d}=r;DNe(l,d)||(u+=`:${l}`),i.Host=u,i.Connection="close";fo...
`);let{statusCode:f,buffered:m}=yield p;if(f===200){if(t.once("socket",CNe),
```

### 13. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** dist/entry.js
- **Public source:** [View source](<https://unpkg.com/cdk-insights@1.61.7/dist/entry.js>)

Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.

Public source snippet (untrusted):

```javascript
L102: `)),c=a.reduce((b,x)=>b+x.length,0),u=b=>a[b]??[],l=GUe({active:t,renderedItems:a,pageSize:s,loop:n}),d=u(t).slice(0,s),p=l+d.length<=s?l:s-d.length,f=Array.from({length:s});f.spli...
L103: `)}var uq=h(()=>{dE();oO()});var dq=j((KRt,lq)=>{var zUe=require("stream"),iO=class extends zUe{#s=null;constructor(t={}){super(t),this.writable=this.readable=!0,this.muted=!1,this...
L104: `).length,YUe=e=>e.split(`
L105: `).pop()??"",Gy=class{height=0;extraLinesUnderPrompt=0;cursorPos;rl;constructor(t){this.rl=t,this.cursorPos=t.getCursorPos()}write(t){this.rl.output.unmute(),this.rl.output.write(t...
L106: `);let a=t+(r?`
...
L117: \v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFF
```

### 14. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** dist/entry.js
- **Public source:** [View source](<https://unpkg.com/cdk-insights@1.61.7/dist/entry.js>)

Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.

Public source snippet (untrusted):

```javascript
L1: #!/usr/bin/env node
L2: "use strict";var b1e=Object.create;var fw=Object.defineProperty;var x1e=Object.getOwnPropertyDescriptor;var w1e=Object.getOwnPropertyNames;var v1e=Object.getPrototypeOf,E1e=Object....
L3: `);let s;for(;(s=R1e.exec(r))!=null;){let n=s[1],o=s[2]||"";o=o.trim();let i=o[0];o=o.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),i==='"'&&(o=o.replace(/\\n/g,`
L4: `),o=o.replace(/\\r/g,"\r")),t[n]=o}return t}function T1e(e){let t=$5(e),r=ns.configDotenv({path:t});if(!r.parsed){let i=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown r...
L5: `).forEach(function(i){n=i.indexOf(":"),r=i.substring(0,n).trim().toLowerCase(),s=i.substring(n+1).trim(),!(!r||t[r]&&ROe[r])&&(r==="set-cookie"?t[r]?t[r].push(s):t[r]=[s]:t[r]=t[r...
L6: `)}getSetCookie(){return this.get("set-cookie")|
```

### 15. High: Cloud Metadata Access
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** dist/entry.js
- **Public source:** [View source](<https://unpkg.com/cdk-insights@1.61.7/dist/entry.js>)

Source reaches cloud instance metadata or link-local credential endpoints.

Public source snippet (untrusted):

```javascript
L1: #!/usr/bin/env node
L2: "use strict";var b1e=Object.create;var fw=Object.defineProperty;var x1e=Object.getOwnPropertyDescriptor;var w1e=Object.getOwnPropertyNames;var v1e=Object.getPrototypeOf,E1e=Object....
L3: `);let s;for(;(s=R1e.exec(r))!=null;){let n=s[1],o=s[2]||"";o=o.trim();let i=o[0];o=o.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),i==='"'&&(o=o.replace(/\\n/g,`
L4: `),o=o.replace(/\\r/g,"\r")),t[n]=o}return t}function T1e(e){let t=$5(e),r=ns.configDotenv({path:t});if(!r.parsed){let i=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown r...
L5: `).forEach(function(i){n=i.indexOf(":"),r=i.substring(0,n).trim().toLowerCase(),s=i.substring(n+1).trim(),!(!r||t[r]&&ROe[r])&&(r==="set-cookie"?t[r]?t[r].push(s):t[r]=[s]:t[r]=t[r...
L6: `)}getSetCookie(){return this.get("set-cookie")|
```

### 16. Critical: Trigger Reachable Dangerous Capability
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/entry.js
- **Public source:** [View source](<https://unpkg.com/cdk-insights@1.61.7/dist/entry.js>)

A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable chain: manifest.bin -> dist/entry.js
L1: #!/usr/bin/env node
L2: "use strict";var b1e=Object.create;var fw=Object.defineProperty;var x1e=Object.getOwnPropertyDescriptor;var w1e=Object.getOwnPropertyNames;var v1e=Object.getPrototypeOf,E1e=Object....
L3: `);let s;for(;(s=R1e.exec(r))!=null;){let n=s[1],o=s[2]||"";o=o.trim();let i=o[0];o=o.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),i==='"'&&(o=o.replace(/\\n/g,`
L4: `),o=o.replace(/\\r/g,"\r")),t[n]=o}return t}function T1e(e){let t=$5(e),r=ns.configDotenv({path:t});if(!r.parsed){let i=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown r...
L5: `).forEach(function(i){n=i.indexOf(":"),r=i.substring(0,n).trim().toLowerCase(),s=i.substring(n+1).trim(),!(!r||t[r]&&ROe[r])&&(r==="set-cookie"?t[r]?t[r].push(s):t[r]=[s]:t[r]=t[r.
```

### 17. High: Trigger Reachable Credential Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/entry.js
- **Public source:** [View source](<https://unpkg.com/cdk-insights@1.61.7/dist/entry.js>)

A manifest entrypoint or package-local install chain reaches credential exfiltration behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable credential exfiltration chain: manifest.bin -> dist/entry.js
L1: #!/usr/bin/env node
L2: "use strict";var b1e=Object.create;var fw=Object.defineProperty;var x1e=Object.getOwnPropertyDescriptor;var w1e=Object.getOwnPropertyNames;var v1e=Object.getPrototypeOf,E1e=Object....
L3: `);let s;for(;(s=R1e.exec(r))!=null;){let n=s[1],o=s[2]||"";o=o.trim();let i=o[0];o=o.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),i==='"'&&(o=o.replace(/\\n/g,`
L4: `),o=o.replace(/\\r/g,"\r")),t[n]=o}return t}function T1e(e){let t=$5(e),r=ns.configDotenv({path:t});if(!r.parsed){let i=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown r...
L5: `).forEach(function(i){n=i.indexOf(":"),r=i.substring(0,n).trim().toLowerCase(),s=i.substring(n+1).trim(),!(!r||t[r]&&ROe[r])&&(r==="set-cookie"?t[r]?t[r].pu
```

### 18. High: Trigger Reachable Command Output Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/entry.js
- **Public source:** [View source](<https://unpkg.com/cdk-insights@1.61.7/dist/entry.js>)

A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable command-output exfiltration chain: manifest.bin -> dist/entry.js
L102: `)),c=a.reduce((b,x)=>b+x.length,0),u=b=>a[b]??[],l=GUe({active:t,renderedItems:a,pageSize:s,loop:n}),d=u(t).slice(0,s),p=l+d.length<=s?l:s-d.length,f=Array.from({length:s});f.spli...
L103: `)}var uq=h(()=>{dE();oO()});var dq=j((KRt,lq)=>{var zUe=require("stream"),iO=class extends zUe{#s=null;constructor(t={}){super(t),this.writable=this.readable=!0,this.muted=!1,this...
L104: `).length,YUe=e=>e.split(`
L105: `).pop()??"",Gy=class{height=0;extraLinesUnderPrompt=0;cursorPos;rl;constructor(t){this.rl=t,this.cursorPos=t.getCursorPos()}write(t){this.rl.output.unmute(),this.rl.output.write(t...
L106: `);let a=t+(r?`
...
L117: \v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRS
```

### 19. Low: High Entropy Strings
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

### 20. Low: Url Strings
- **Category:** Supply Chain
- **Confidence:** 65.0%

Package source contains URL literals.

### 21. Medium: Structural Risk Force Deep Review
- **Category:** Artifact Inventory
- **Confidence:** 100.0%

Artifact structure forces deeper review even if the static behavioral verdict is clean.

### 22. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** dist/entry.js
- **Public source:** [View source](<https://unpkg.com/cdk-insights@1.61.7/dist/entry.js>)

A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.

Public source snippet (untrusted):

```javascript
stage = ast_semantic_analysis; reason = ast_path_work_budget_exceeded; limitedFiles = 1
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** prepare
- **Dependencies:** 17
- **Optional dependencies:** 0
- **Peer dependencies:** 6
- **Development dependencies:** 17
- **Published dependency-graph edges:** 23

### Published dependency entries
- @aws-sdk/client-cloudformation ^3.1095.0 (Dependency)
- @inquirer/prompts ^7.4.1 (Dependency)
- @instance-labs/cdk-insights-rules ^0.6.0 (Dependency)
- @middy/core ^6.1.6 (Dependency)
- @types/glob ^8.1.0 (Dependency)
- axios ^1.13.2 (Dependency)
- chalk ^5.4.1 (Dependency)
- chokidar ^3.6.0 (Dependency)
- cli-progress ^3.12.0 (Dependency)
- cli-table3 ^0.6.5 (Dependency)
- dotenv ^16.5.0 (Dependency)
- envolution ^1.4.1 (Dependency)
- glob ^11.0.3 (Dependency)
- ora ^8.2.0 (Dependency)
- strogger ^2.0.3 (Dependency)
- yargs ^17.7.2 (Dependency)
- zod ^3.23.8 (Dependency)
- @aws-solutions-constructs/aws-apigateway-lambda ^2.0.0 (PeerDependency)
- @aws-solutions-constructs/aws-lambda-stepfunctions ^2.0.0 (PeerDependency)
- @aws-solutions-constructs/aws-s3-lambda ^2.0.0 (PeerDependency)
- aws-cdk-lib ^2.264.0 (PeerDependency)
- cdk-nag ^2.35.73 (PeerDependency)
- constructs ^10.4.2 (PeerDependency)

## Package metadata
- **Package:** cdk-insights
- **Ecosystem:** npm
- **Version:** 1.61.7
- **License:** BUSL-1.1
- **Version published:** 2026-09-30T14:23:36.028Z
- **Package first seen:** 2026-06-30T15:00:00.099Z
- **Package last seen:** 2026-10-08T21:44:26.745Z
- **Known versions:** 20
- **Latest version:** 1.62.2
- **Appeal under review:** No
- **Description:** AWS CDK security and cost analysis CLI. Free static scans via npm - no account needed. Sign up free to add AI-powered insights.
- **Author:** Lee Priest
- **Maintainers:** leepriest
- **Keywords:** aws, cdk, cloudformation, analysis, security, cost-optimization, static-analysis, devops, infrastructure, aws-cdk, cloud-security, compliance
- **Runtime engines:** node: \>=22
- **Artifact files:** 396
- **Artifact unpacked size:** 4,360,554 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/cdk-insights/v/1.61.7>)
- [Repository](<https://github.com/instancelabs/cdk-insights>)
- [Issues](<https://github.com/instancelabs/cdk-insights/issues>)
