• Documentation
  • Pricing
© 2026 Serverless, Inc. All rights reserved.

Framework

  • Overview
  • Documentation
  • Plugins360
  • Pricing

Learn

  • Blog
  • GuidesUpdated
  • Examples240
  • Courses

Resources

  • Support
  • Security
  • Trust Center
  • Status

Community

  • Slack
  • GitHub47k
  • Forum
  • Meetups

Company

  • About
  • Careers
  • Contact
  • Partners

Legal

  • Terms of Service
  • Privacy Policy
  • Trademark
  • DMCA
Serverless Framework Logo

Serverless Framework

Intro
SetupUpgrading To V4ConceptsTutorialAWS CredentialsLicense KeysVerifying Downloads
DeployingPackagingBuildingTestingDev ModeServicesFunctions
OverviewHTTP (API Gateway v2)REST (API Gateway v1)ActiveMQApplication Load BalancerAlexa SkillAlexa Smart HomeCloudWatch EventCloudWatch LogCloudFrontCognito User PoolEventBridge EventIoTIoT Fleet ProvisioningKafkaKinesis & DynamoDBMSKRabbitMQS3ScheduleSNSSQSWebsocket
LayersManaged InstancesWeb Apps (Lambda Web Functions)Sandboxes (Lambda MicroVMs)MCP ServersAlertsVersion PruningDomainsIAM Function PermissionsParameters
OverviewSelf-reference serverless.ymlServerless CoreEnvironment VariablesCLI OptionsExternal YAML/JSON FilesJavascript propertiesGitDoppler
OverviewS3 ObjectsSSM Parameter Store & Secrets ManagerCloudFormation Stack Outputs
OverviewVaultTerraform State Output
ResourcesComposing ServicesDeployment BucketStateAgent SkillsPython support
OverviewRuntimeGatewayMemoryBrowserCode InterpreterDev Mode
API Gateway Proxy
OverviewGeneral ConfigurationAuthenticationAPI KeysData SourcesResolversPipeline FunctionsSubstitutionsCachingDelta SyncCustom DomainWAFCLI Commands
Deploying SAM/CFN TemplatesWorkflow Tips
OverviewCreating PluginsCLI OutputCustom CommandsCustom VariablesExtending the Configuration schemaExtending and overriding configuration
OverviewDashboardAxiom
Overviewagent docsagent inspectagent setupagent skills installagent skills list / readdeploydeploy functiondeploy listdevdiffinfoinvokeinvoke localloginlogin awslogin aws ssologsmetricspackageplugin installplugin uninstallprintprunereconcileremoverollbackrollback functionusage
OverviewConcepts
OverviewMetricsTracesTroubleshoot
OverviewNode.jsPython
OutputsProviders
OverviewBranch DeploymentsPreview DeploymentsCustom ScriptsTestingPrivate PackagesNotificationsMono ReposDeploy in your own CI/CDBest PracticesTroubleshootingFAQ
OverviewSetupToolsAWS Integration
Serverless.yml Reference
Examples and TutorialsConfiguration Validation
  1. Get Started
  2. Verifying Downloads

Verifying Serverless Framework downloads

The serverless command you install is a small launcher. It downloads each Serverless Framework release from install.serverless.com the first time a service needs it, and keeps it in ~/.serverless/releases. Before the launcher extracts or runs a download, it checks that the download's SHA-256 checksum is signed by a Serverless Inc. release key. A download that doesn't pass is deleted, and the launcher prints an error with a reason code that links to its section on this page.

The check needs no configuration. It covers each release archive, the list of releases the launcher chooses a version from, and the launcher's own updates; for npm dependencies that some releases install, see Releases that install npm dependencies. Launchers built before these checks install releases without them. To replace yours with a launcher that checks downloads, run serverless update.

What the launcher checks

The launcher checks three kinds of download, each against a signature made by a key compiled into the launcher:

DownloadWhen the launcher fetches itWhat it must pass
Release archive, such as archives/serverless-4.47.0.tgzThe first time a service needs that Framework versionIts .sha256 file is signed by a trusted key, and the archive matches that checksum.
List of releases, versions-<number>.jsonAt most once every 24 hours, and on serverless updateThe list is signed by a trusted key, and its number is not lower than the newest list this machine has verified.
Launcher build, such as installer-builds/serverless-1.0.0-linux-amd64On serverless updateIts .sha256 file is signed by a trusted key, the build matches that checksum, and its version is newer than the running launcher's (otherwise the launcher is kept as it is).

The list of releases is numbered so that an older list served again can't hide newer releases or releases that were withdrawn. The launcher keeps the last list it verified in ~/.serverless/binaries/versions-verified.json. When install.serverless.com can't be reached or doesn't serve the list (an outage, or a proxy that blocks those files), the launcher uses that list, or, on a machine that has none yet, the list an older launcher cached in ~/.serverless/binaries/versions.json; with neither, it stops with RELEASE_INDEX_INVALID. Each release archive is still checked against its own signature.

The install.sh script at https://install.serverless.com checks the launcher it downloads against the SHA-256 checksum written into the script for that launcher version. That check catches a damaged or swapped download, but the script and the launcher come from the same host: to check a launcher against the signing key, verify it by hand as described in Verify a release by hand.

How releases are signed

Every file the launcher verifies is published with two more files next to it:

  • <file>.sha256: one line in the format sha256sum writes, <checksum> <file name>.
  • <file>.sha256.<key id>.sig: a base64-encoded ECDSA P-256 signature over the .sha256 file, made with SHA-256.

The key id is the first 8 hexadecimal digits of the SHA-256 of the public key in DER format. Stable releases are signed with the stable key, and canary builds on install.serverless-dev.com with the canary key. The public keys are in the Serverless Framework repository:

  • Stable: binary-installer/src/verify/keys/stable/main.pem
  • Canary: binary-installer/src/verify/keys/canary/main.pem

The private keys can't be exported from the key service that holds them, and only Serverless Inc. release automation can sign with them. Signed files are written once and never replaced: a fix is always a new release.

Verify a release by hand

To verify a release archive without the launcher, you need curl, openssl and sha256sum. On macOS, where sha256sum may not be installed, run alias sha256sum='shasum -a 256' first; shasum -a 256 reads and checks the same format. These steps verify Framework v4.47.0; replace the version to verify another release.

  1. Download the stable public key and work out its key id:

    curl -fsSL -o stable.pem https://raw.githubusercontent.com/serverless/serverless/main/binary-installer/src/verify/keys/stable/main.pem
    
    KEY_ID=$(openssl pkey -pubin -in stable.pem -outform DER | sha256sum | cut -c1-8)
    
  2. Download the archive, its checksum file and the signature by that key:

    curl -fsSO https://install.serverless.com/archives/serverless-4.47.0.tgz
    
    curl -fsSO https://install.serverless.com/archives/serverless-4.47.0.tgz.sha256
    
    curl -fsSO "https://install.serverless.com/archives/serverless-4.47.0.tgz.sha256.$KEY_ID.sig"
    
  3. Check the signature over the checksum file. openssl prints Verified OK when the signature is valid:

    openssl base64 -d -A -in "serverless-4.47.0.tgz.sha256.$KEY_ID.sig" -out signature.der
    
    openssl dgst -sha256 -verify stable.pem -signature signature.der serverless-4.47.0.tgz.sha256
    
  4. Check the archive against the signed checksum. sha256sum prints serverless-4.47.0.tgz: OK when they match:

    sha256sum -c serverless-4.47.0.tgz.sha256
    

The same steps verify a launcher build: download installer-builds/serverless-<version>-<os>-<arch> with its .sha256 and .sig files from https://install.serverless.com, for example installer-builds/serverless-1.0.0-darwin-arm64. To verify a canary build, use the canary key and https://install.serverless-dev.com/archives/canary-<commit>.tgz.

Releases that install npm dependencies

The release signature covers the release archive. Framework releases up to v4.35.1, and canary builds, declare npm dependencies that the launcher installs with npm install after the archive passes its check. Those packages come from your npm registry and are not covered by the release signature. Framework v4.36.0 and later ship every dependency inside the signed archive.

To run only releases whose whole contents are signed, set frameworkVersion in serverless.yml to v4.36.0 or later:

# serverless.yml
frameworkVersion: '>=4.36.0'

A later release that declares npm dependencies installs only when its npm-shrinkwrap.json pins each package with a sha512 integrity hash; the launcher installs them with npm ci, which refuses a package that doesn't match its hash. Otherwise the launcher stops with:

Serverless Framework v... was not installed: it declares npm dependencies, and releases after 4.35.1 must pin each one with an integrity hash in npm-shrinkwrap.json (...). Nothing was installed

To choose a version, see Pinning to a specific version.

Skip the check temporarily

Warning: Skipping the check lets the launcher install and run a release whose origin it could not confirm. Skip it only to get unblocked while you find the cause, and only on a network you trust.

To install a release whose check fails, set SLS_DISABLE_DOWNLOAD_VERIFICATION to true for one command:

SLS_DISABLE_DOWNLOAD_VERIFICATION=true serverless deploy

With the variable set, the launcher still runs the check. When the check fails, it prints a warning with the reason code, downloads the release again without the check, and installs it. For the list of releases, it uses the unsigned versions.json instead. Only true and 1 turn it on. The variable has no effect on launcher updates: a launcher build that fails its check is never installed.

Reason codes

Each verification error names a reason code and links to its section below. Unless SLS_DISABLE_DOWNLOAD_VERIFICATION is set, nothing from the failed download is extracted, run or kept.

Release signature unavailable

RELEASE_SIGNATURE_UNAVAILABLE: the launcher could not download a signature by a key it trusts for the release archive.

Serverless Framework v... was not installed: no signature by a trusted key was found for https://install.serverless.com/archives/serverless-....tgz. Nothing was extracted or run (RELEASE_SIGNATURE_UNAVAILABLE). See https://www.serverless.com/framework/docs/guides/verifying-downloads#release-signature-unavailable

This happens when a proxy, firewall or mirror between your machine and install.serverless.com blocks or doesn't serve the .sha256 and .sig files next to the archive. The detail in the message names the .sha256 file and its HTTP status, or, when no signature by a trusted key is served, the archive.

To fix it, allow the .sha256 and .sha256.<key id>.sig files from install.serverless.com in the proxy or mirror, as you allow the archives. To test, download them as in Verify a release by hand.

Release signature invalid

RELEASE_SIGNATURE_INVALID: the signature downloaded for the release archive doesn't match its checksum file.

Serverless Framework v... was not installed: the checksum file for serverless-....tgz does not verify with key .... Nothing was extracted or run (RELEASE_SIGNATURE_INVALID). See https://www.serverless.com/framework/docs/guides/verifying-downloads#release-signature-invalid

This happens when the checksum file or the signature was changed on the way to your machine, for example by a proxy that rewrites responses or a mirror that serves a different file under the same name.

To fix it, download the files through another network, or ask the operator of the proxy or mirror to serve them unchanged. Verify them by hand as in Verify a release by hand. If the files from install.serverless.com itself don't verify, report it as described in Report a verification problem.

Release checksum mismatch

RELEASE_CHECKSUM_MISMATCH: the release archive doesn't match its signed checksum.

Serverless Framework v... was not installed: serverless-....tgz (... bytes) has sha256 ...; its signed checksum is .... Nothing was extracted or run (RELEASE_CHECKSUM_MISMATCH). See https://www.serverless.com/framework/docs/guides/verifying-downloads#release-checksum-mismatch

This happens when the archive was cut short or changed during the download, for example by an interrupted connection, a proxy that caches a partial file, or a mirror that serves a different archive.

To fix it, run the command again to download the archive again. If it keeps happening, clear the proxy's or mirror's cached copy of the archive, or download through another network.

Release index invalid

RELEASE_INDEX_INVALID: the list of releases the launcher downloaded didn't verify, or, on a machine that has no list yet, wasn't served. When a machine already has a list, a list that isn't served is not an error: the launcher keeps using the list it has.

the list of Serverless Framework releases could not be verified: .... Nothing was installed (RELEASE_INDEX_INVALID). See https://www.serverless.com/framework/docs/guides/verifying-downloads#release-index-invalid

When the machine already has a list (one the launcher verified before, or the list an older launcher cached), the launcher prints a warning instead, keeps using that list, and continues. It tries again the next day:

Warning: the latest list of Serverless Framework releases could not be verified (RELEASE_INDEX_INVALID): .... Using the list verified on this machine before (list ...). See https://www.serverless.com/framework/docs/guides/verifying-downloads#release-index-invalid

This happens when a proxy, firewall or mirror serves changed copies of versions-latest.txt and the versions-<number>.json files next to it (for example a block page in place of the file), or an older copy than one this machine has already verified. The detail in the message names the file and what didn't match.

To fix it, serve versions-latest.txt, versions-*.json, versions-*.json.sha256 and versions-*.json.sha256.*.sig from install.serverless.com unchanged in the proxy or mirror, and make sure it doesn't serve an older versions-latest.txt than the host does. To compare, print the list number your network serves, then the number of the newest list this machine has verified:

curl -fsS https://install.serverless.com/versions-latest.txt
grep -o '"sequence": *[0-9]*' ~/.serverless/binaries/versions-verified.json

When the first number is lower than the second, the launcher refuses the list until your network serves the current one.

Launcher signature unavailable

LAUNCHER_SIGNATURE_UNAVAILABLE: serverless update couldn't download installer-builds/latest.txt, or the checksum or signature of the launcher build it names, so the launcher was not replaced.

Warning: the Serverless Framework launcher was not updated: https://install.serverless.com/installer-builds/latest.txt returned HTTP 403. Keeping the current launcher (...) and updating the Serverless Framework (LAUNCHER_SIGNATURE_UNAVAILABLE). See https://www.serverless.com/framework/docs/guides/verifying-downloads#launcher-signature-unavailable

This happens when a proxy, firewall or mirror blocks installer-builds/ files, or doesn't serve the .sha256 and .sig files next to the launcher builds. The launcher you have keeps working, and serverless update goes on to update the Framework with it.

To fix it, allow the installer-builds/ files from install.serverless.com, with their .sha256 and .sig files, in the proxy or mirror, then run serverless update again. SLS_DISABLE_DOWNLOAD_VERIFICATION doesn't apply to this check.

Launcher signature invalid

LAUNCHER_SIGNATURE_INVALID: the launcher build downloaded by serverless update or install.sh didn't pass its check, so the launcher was not replaced or installed.

Warning: the Serverless Framework launcher was not updated: the checksum file for serverless-...-... does not verify with key .... Keeping the current launcher (...) and updating the Serverless Framework (LAUNCHER_SIGNATURE_INVALID). See https://www.serverless.com/framework/docs/guides/verifying-downloads#launcher-signature-invalid
Serverless Framework was not installed: ... has SHA-256 ..., not the ... this installer expects. Nothing was installed (LAUNCHER_SIGNATURE_INVALID). See https://www.serverless.com/framework/docs/guides/verifying-downloads#launcher-signature-invalid

This happens for the same reasons as the release errors above: a proxy, firewall or mirror that changes installer-builds/ files, or serves a page in place of installer-builds/latest.txt. When installer-builds/latest.txt names a version that isn't newer than the running launcher's, serverless update keeps the launcher it has and prints Installer is up to date.

To fix it, run the command again. If it keeps happening, serve the installer-builds/ files from install.serverless.com, with their .sha256 and .sig files, unchanged in the proxy or mirror. SLS_DISABLE_DOWNLOAD_VERIFICATION doesn't apply to this check. The launcher you already have keeps working, and serverless update still updates the Framework with it.

Report a verification problem

If files downloaded directly from install.serverless.com, on a network without a proxy, don't pass Verify a release by hand, report it privately through the security advisories page, with the file names and the commands you ran. Don't report it in a public GitHub issue.

Related

  • Setup: installing the CLI, and the hosts it connects to.
  • Pinning to a specific version: choosing which Framework version runs a service.
  • License Keys: authenticating the CLI in CI/CD.
Edit this page
Prev License KeysNextDeploying

Contents

  • Verifying Serverless Framework downloads
  • What the launcher checks
  • How releases are signed
  • Verify a release by hand
  • Releases that install npm dependencies
  • Skip the check temporarily
  • Reason codes
  • Release signature unavailable
  • Release signature invalid
  • Release checksum mismatch
  • Release index invalid
  • Launcher signature unavailable
  • Launcher signature invalid
  • Report a verification problem
  • Related

Related

GuidesPluginsExamplesSlack CommunitySupport