Search by

cyphernetsecurity / cypherscan-laravelplus-driver

cyphernet

CypherScan malware scanner driver for LaravelPlus Content Security.

Package info

github.com/cyphernetsecurity/cypherscan-laravelplus-driver

pkg:composer/cyphernetsecurity/cypherscan-laravelplus-driver

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.1 2026-09-16 14:31 UTC

This package is auto-updated.

Last update: 2026-09-16 14:31:59 UTC


README

Standalone CypherScan malware scanner driver for laravelplus/content-security.

Independence

This is an independent third-party integration maintained by CypherNet Security Inc. It is not maintained, reviewed, audited, endorsed, or supported by LaravelPlus.

LaravelPlus and laravelplus/content-security are referenced solely to describe compatibility with the public MalwareScanner extension contract.

Privacy and external processing

This driver sends file contents to the external CypherScan service for malware analysis. Files therefore cross the host application's trust boundary.

Integrators are responsible for determining whether use of an external scanning service is appropriate for the data they process and for meeting applicable privacy, data-processing, residency, transfer, disclosure, and contractual obligations.

Before production use, review CypherScan's applicable privacy and data-processing terms and ensure your application's privacy notices and processing records accurately describe the integration where required.

Requirements

  • PHP 8.5+
  • Laravel 13
  • laravelplus/content-security 1.x
  • A CypherScan API key

Installation

Once the package is available through Packagist:

composer require cyphernetsecurity/cypherscan-laravelplus-driver

Until then, the source repository can be used as a Composer VCS repository.

Configuration

Create a CypherScan API key and configure the host application:

CYPHERSCAN_API_KEY=cs_your_key
CYPHERSCAN_BASE_URL=https://cyphernetsecurity.com
CONTENT_SECURITY_MALWARE_DRIVER=cypherscan

Add the driver under content-security.malware.drivers:

'cypherscan' => [
    'driver' => 'cypherscan',
],

Laravel package discovery registers CypherScanServiceProvider automatically.

Security behavior

The integration is fail-closed:

  • clean maps to LaravelPlus Clean
  • suspicious maps to Suspicious
  • malicious maps to Infected
  • unavailable scanners, invalid responses, unknown verdicts, and unusable upload responses do not pass content as clean
  • the SHA-256 returned by CypherScan must match the exact LaravelPlus FileReference::checksum() before a verdict is accepted

API flow

The driver uses CypherScan's canonical authenticated file workflow:

  1. POST /api/v1/upload/presign
  2. upload the exact file bytes to the returned temporary URL
  3. POST /api/v1/scan with the returned object key
  4. map the verified CypherScan verdict into a LaravelPlus CheckResult

Testing

composer test

The package includes contract coverage for clean, suspicious, malicious, fail-closed conditions, health reporting, SHA-256 binding, and LaravelPlus driver registration.

License

MIT