---
canonical: "https://firewall.lpm.dev/npm/yusufkhon-guard/v/1.1.0"
markdown: "https://firewall.lpm.dev/npm/yusufkhon-guard/v/1.1.0.md"
package: "yusufkhon-guard"
report_status: "published"
title: "yusufkhon-guard@1.1.0 npm security report"
verdict: "suspicious"
version: "1.1.0"
---

# yusufkhon-guard@1.1.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
**Flagged — allowed with a warning** — Allowed by default policy, but 15 finding(s) warrant review before installing.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Matched warn-list
- **Public report status:** Published
- **Threat category:** Unknown
- **Selected version:** 1.1.0
- **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: suspicious; recommendation: downgrade to warn. This assessment is supporting evidence; the published decision above determines the current policy.

The postinstall hook makes an automatic, guarded change to consumer application source and enables the package at runtime. This is a concrete unresolved installation-time capability, but the inspected source does not support blocking it as malicious.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 87.0%
- **Started:** 2026-10-09T18:47:55.163Z
- **Finished:** 2026-10-09T18:48:25.486Z
- **Download time:** 775 ms
- **Static scan time:** 617 ms
- **AI review time:** 28929 ms
- **Total time:** 30323 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:** The install hook can modify a consumer application's entry file to activate this package automatically. This creates a real, conditional consumer-project mutation risk, but the inspected behavior does not establish a concrete attack.

- **Trigger:** npm installation when the package is installed as a dependency, unless YUSUFKHON\_GUARD\_NO\_AUTO is set.

- **Impact:** The consumer's application source is changed and package behavior is enabled at runtime without a separate manual code edit.

- **Evidence paths:** package.json, scripts/postinstall.js, scripts/\_projectEntry.js

- **Review source:** ai\_review

- **Reviewed:** 2026-10-09T18:48:25.486Z

### AI review details

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

- **Mechanism:** The hook selects a consumer entry file and prepends an import or require of the package's auto module.

- **Rationale:** The postinstall hook makes an automatic, guarded change to consumer application source and enables the package at runtime. This is a concrete unresolved installation-time capability, but the inspected source does not support blocking it as malicious.

- **Files touched:** consumer application entry file

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 87.0%

- **Recommended action:** downgrade\_to\_warn

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** package.json runs scripts/postinstall.js during installation., When installed as a dependency and not disabled by YUSUFKHON\_GUARD\_NO\_AUTO, the hook selects a consumer entry file and inserts an import or require for the package's auto module., The helper considers the consumer's start script, main file, and common entry filenames.

- **Evidence against:** The hook skips repository installs and can be disabled with YUSUFKHON\_GUARD\_NO\_AUTO., The package describes itself as security middleware, and the injected import enables its protection in the consumer application.

## Affected versions and remediation

This report applies to yusufkhon-guard@1.1.0.

- Review the evidence and your use of yusufkhon-guard@1.1.0 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. High: Install Time Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 90.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/yusufkhon-guard@1.1.0/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node scripts/postinstall.js
```

### 2. Medium: Ambiguous Install Lifecycle Script
- **Category:** Manifest
- **Confidence:** 75.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/yusufkhon-guard@1.1.0/package.json>)

Install-time lifecycle script is not statically allowlisted and needs review.

Public source snippet (untrusted):

```json
scripts.postinstall = node scripts/postinstall.js
```

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

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

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

Package declares npm scripts.

### 5. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** bin/renew.js
- **Public source:** [View source](<https://unpkg.com/yusufkhon-guard@1.1.0/bin/renew.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L17: 
L18: const path = require('path');
L19: const acme = require('../src/modules/acme');
```

### 6. Low: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** src/modules/ja3.js
- **Public source:** [View source](<https://unpkg.com/yusufkhon-guard@1.1.0/src/modules/ja3.js>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L19: * TLS GREASE qiymatimi (RFC 8701)? JA3'da bunday qiymatlar chiqarib tashlanadi.
L20: * @private
L21: * @param {number} v - 16-bitli qiymat.
...
L122: * @example
L123: * const tls = require('tls');
L124: * const { captureClientHello } = require('yusufkhon-guard').ja3;
```

### 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. Low: High Entropy Strings
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

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

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

### 13. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** scripts/postinstall.js\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/yusufkhon-guard@1.1.0/scripts/postinstall.js%23virtual%3Anormalized%3Around1>)

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

Public source snippet (untrusted):

```text
stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 5
```

### 14. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** src/modules/acme/index.js
- **Public source:** [View source](<https://unpkg.com/yusufkhon-guard@1.1.0/src/modules/acme/index.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = yusufkhon-guard@1.2.0
matchedPath = src/modules/acme/index.js
matchedIdentity = npm:eXVzdWZraG9uLWd1YXJk:1.2.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 15. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** src/scanner/checks/dependencies.js
- **Public source:** [View source](<https://unpkg.com/yusufkhon-guard@1.1.0/src/scanner/checks/dependencies.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = yusufkhon-guard@1.2.0
matchedPath = src/scanner/checks/dependencies.js
matchedIdentity = npm:eXVzdWZraG9uLWd1YXJk:1.2.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** postinstall, prepublishOnly, preuninstall
- **Dependencies:** 0
- **Optional dependencies:** 0
- **Peer dependencies:** 1
- **Development dependencies:** 2
- **Published dependency-graph edges:** 1

### Published dependency entries
- express \>=4.0.0 (PeerDependency)

## Package metadata
- **Package:** yusufkhon-guard
- **Ecosystem:** npm
- **Version:** 1.1.0
- **License:** MIT
- **Version published:** 2026-08-27T14:42:57.586Z
- **Package first seen:** 2026-08-27T16:44:01.948Z
- **Package last seen:** 2026-10-09T18:48:25.486Z
- **Known versions:** 2
- **Latest version:** 1.2.0
- **Appeal under review:** No
- **Description:** Express.js va Node.js uchun yengil, mustaqil (zero-dependency) xavfsizlik middleware: aktiv himoya (blue team firewall), auto IP-ban, security headers, rate-limiting, input sanitization va audit-skaner.
- **Author:** Yusufkhon
- **Maintainers:** aziz098
- **Keywords:** express, security, middleware, rate-limit, rate-limiter, helmet, sanitizer, xss, sqli, security-headers, csp, hsts
- **Runtime engines:** node: \>=14.0.0
- **Artifact files:** 53
- **Artifact unpacked size:** 314,842 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/yusufkhon-guard/v/1.1.0>)
