cyphernetsecurity

cypherscan payload

by cyphernetsecurity
Other
v3
^3.0.0

Overview

Summary generated from the README

Hooks into Payload upload collections and sends each file to the CypherScan API through a presigned upload workflow. Files with blocked verdicts are rejected, while clean files stay available. Requires Payload 3, Node.js 20 and a CypherScan API key, and can be restricted to chosen collections.

Features

  • Presigned upload workflow for scanning files with the CypherScan API
  • Malware and secret detection on uploaded files
  • Automatic blocking of suspicious or malicious verdicts
  • Configurable fail-open or fail-closed behavior when the scan service is unavailable
  • Collection targeting to limit scanning to specific upload collections
  • Scan activity logged through the Payload logger

Use cases

  • Reject infected files uploaded by users to a media collection
  • Enforce strict fail-closed upload checks in production environments
  • Scan only selected upload collections while leaving others untouched

From the author

CypherScan upload security plugin for Payload CMS.

Installation

npm i cypherscan-payload

3

Stars

0

Forks

0

Open Issues

3 months ago

Last Updated

34

Weekly Downloads

v0.1.6

npm Version

18.8 KB

Unpacked Size

0

Dependencies

GitHub stars

30 since Sep 6

Show data
GitHub stars by day (UTC)
DateStars
Dec 5, 20263
Dec 4, 20263
Dec 3, 20263
Dec 2, 20263
Dec 1, 20263
Nov 30, 20263
Nov 29, 20263
Nov 28, 20263
Nov 27, 20263
Nov 26, 20263
Nov 25, 20263
Nov 24, 20263
Nov 23, 20263
Nov 22, 20263
Nov 21, 20263
Nov 20, 20263
Nov 19, 20263
Nov 18, 20263
Nov 17, 20263
Nov 16, 20263
Nov 15, 20263
Nov 14, 20263
Nov 13, 20263
Nov 12, 20263
Nov 11, 20263
Nov 10, 20263
Nov 9, 20263
Nov 8, 20263
Nov 7, 20263
Nov 6, 20263
Nov 5, 20263
Nov 4, 20263
Nov 3, 20263
Nov 2, 20263
Nov 1, 20263
Oct 31, 20263
Oct 30, 20263
Oct 29, 20263
Oct 28, 20263
Oct 27, 20263
Oct 26, 20263
Oct 25, 20263
Oct 24, 20263
Oct 23, 20263
Oct 22, 20263
Oct 21, 20263
Oct 20, 20263
Oct 19, 20263
Oct 18, 20263
Oct 17, 20263
Oct 16, 20263
Oct 15, 20263
Oct 14, 20263
Oct 13, 20263
Oct 12, 20263
Oct 11, 20263
Oct 10, 20263
Oct 9, 20263
Oct 8, 20263
Oct 7, 20263
Oct 6, 20263
Oct 5, 20263
Oct 4, 20263
Oct 3, 20263
Oct 2, 20263
Oct 1, 20263
Sep 30, 20263
Sep 29, 20263
Sep 28, 20263
Sep 27, 20263
Sep 26, 20263
Sep 25, 20263
Sep 24, 20263
Sep 23, 20263
Sep 22, 20263
Sep 21, 20263
Sep 20, 20263
Sep 19, 20263
Sep 18, 20263
Sep 17, 20263
Sep 16, 20263
Sep 15, 20263
Sep 14, 20263
Sep 13, 20263
Sep 12, 20263
Sep 11, 20263
Sep 10, 20263
Sep 9, 20263
Sep 8, 20263
Sep 7, 20263
Sep 6, 20263
npm weekly downloads

120 since Sep 6

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 5, 202612
Dec 4, 20269
Dec 3, 20268
Dec 2, 20267
Dec 1, 202613
Nov 30, 202613
Nov 29, 20269
Nov 28, 20269
Nov 27, 20267
Nov 26, 20268
Nov 25, 202611
Nov 24, 20264
Nov 23, 20265
Nov 22, 20267
Nov 21, 20269
Nov 20, 202610
Nov 19, 20269
Nov 18, 202611
Nov 17, 202612
Nov 16, 202612
Nov 15, 202610
Nov 14, 20269
Nov 13, 202610
Nov 12, 202612
Nov 11, 20267
Nov 10, 202611
Nov 9, 202610
Nov 8, 202610
Nov 7, 202612
Nov 6, 202610
Nov 5, 20269
Nov 4, 202614
Nov 3, 202610
Nov 2, 202613
Nov 1, 202614
Oct 31, 202611
Oct 30, 202611
Oct 29, 202610
Oct 28, 20265
Oct 27, 20265
Oct 26, 20263
Oct 25, 20262
Oct 24, 20263
Oct 23, 20263
Oct 22, 20265
Oct 21, 20265
Oct 20, 20264
Oct 19, 20264
Oct 18, 20264
Oct 17, 20264
Oct 16, 20264
Oct 15, 20263
Oct 14, 20264
Oct 13, 20264
Oct 12, 20263
Oct 11, 20268
Oct 10, 20269
Oct 9, 20269
Oct 8, 20269
Oct 7, 20268
Oct 6, 20269
Oct 5, 20269
Oct 4, 20265
Oct 3, 20263
Oct 2, 20266
Oct 1, 20265
Sep 30, 20265
Sep 29, 20264
Sep 28, 20264
Sep 27, 20264
Sep 26, 20267
Sep 25, 20264
Sep 24, 20266
Sep 23, 20267
Sep 22, 20268
Sep 21, 202613
Sep 20, 202612
Sep 19, 20269
Sep 18, 202615
Sep 17, 202615
Sep 16, 202615
Sep 15, 202614
Sep 14, 20269
Sep 13, 202610
Sep 12, 202611
Sep 11, 20267
Sep 10, 20266
Sep 9, 20268
Sep 8, 20268
Sep 7, 202610
Sep 6, 202612

Each point is npm's rolling 7-day download count.

Health Score

53/100Good

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/1265161598-root.svg)](https://payloaddirectory.dev/plugins/1265161598-root)
HTML
<a href="https://payloaddirectory.dev/plugins/1265161598-root"><img src="https://payloaddirectory.dev/badge/1265161598-root.svg" alt="Payload Directory"></a>
Updated Aug 16, 2026Created Jun 10, 2026Published Aug 16, 2026

README

CypherScan for Payload

Protect Payload uploads before they reach production.

CypherScan securely scans every uploaded file using a presigned upload workflow and can automatically block suspicious or malicious files before they become available inside Payload CMS.


Features

  • Secure presigned upload workflow
  • Malware detection
  • Secret detection
  • Automatic malicious file blocking
  • Configurable fail-open / fail-closed behavior
  • Native Payload CMS integration
  • Collection targeting

Requirements

  • Payload CMS 3+
  • Node.js 20+
  • CypherScan API key

Installation

Install the plugin:

npm install cypherscan-payload

Configuration

Configure the plugin inside your Payload configuration:

import { cypherScanPayload } from "cypherscan-payload";

export default buildConfig({
  plugins: [
    cypherScanPayload({
      apiKey: process.env.CYPHERSCAN_API_KEY!,
      apiUrl: "https://cyphernetsecurity.com",
      failOpen: true,
    }),
  ],
});

Options

OptionDescription
apiKeyCypherScan API key
apiUrlCypherScan API base URL
collectionsRestrict scanning to specific upload collections
blockVerdictsVerdicts that should block uploads
failOpenEnable Fail Open mode

How it works

When a file is uploaded:

  1. The plugin requests a presigned upload URL from the CypherScan API.
  2. The file is uploaded securely to temporary object storage.
  3. CypherScan scans the uploaded object.
  4. A scan verdict is returned.
  5. Clean files remain available.
  6. Suspicious or malicious files are automatically blocked.

Architecture

User Upload
      │
      ▼
Payload Upload Hook
      │
      ▼
Request Presigned Upload URL
      │
      ▼
Temporary Secure Upload
      │
      ▼
CypherScan Scan
      │
      ▼
Verdict
      │
      ├── Clean ─────► Upload allowed
      │
      └── Blocked ───► Upload rejected

Example

Upload detected

        │

        ▼

Presigned Upload

        │

        ▼

CypherScan Scan

        │

        ▼

Verdict: Clean

        │

        ▼

File available inside Payload CMS

Fail Open / Fail Closed

CypherScan supports two operating modes.

Fail Open

Uploads continue if the scanning service is temporarily unavailable.

Recommended for development environments.

Fail Closed

Uploads are rejected when the scan cannot be completed.

Recommended for production environments requiring strict upload enforcement.


Logging

The plugin logs scan activity through the Payload logger.


Tested

Validated with:

  • Clean uploads
  • Malware detection (EICAR)
  • API unavailable (failOpen=true)
  • API unavailable (failOpen=false)
  • Collection targeting
  • Payload CMS 3.x

CypherScan Agent

Payload plugin scans use the canonical CypherScan API workflow:

  1. POST /api/v1/upload/presign
  2. Upload the file to the returned temporary URL
  3. POST /api/v1/scan with the returned objectKey

The plugin sends a stable client identity:

x-cypherscan-client: payload-plugin

With an active CypherScan Agent subscription, successful authenticated scans automatically become API_INTEGRATION Agent observations. No second Agent event call is required for normal Payload plugin scans.

Agent can then use those observations for meaningful-change detection, bounded verification, Controller attention decisions, alerts, and activity history.


Roadmap

  • Scan history
  • Detailed scan reports
  • Quarantine support
  • Policy-based upload rules

License

MIT License

Copyright (c) 2026 CypherNet Security Inc.

See the LICENSE file for details.


Built by CypherNet Security Inc.

Similar plugins