• /
  • EnglishEspañolFrançais日本語한국어Português
  • 로그인지금 시작하기

How to verify .NET agent downloads

|View as Markdown (English)

Before you install the .NET agent from a downloaded file (an MSI installer, ZIP file, tarball, deb file, or rpm file), confirm that New Relic built the file and didn't change or corrupt it after publication. You can use either of these methods:

MethodAgent versionsWhat it shows
GitHub attestation10.58.0 and higherA signed record in a public transparency log shows that the New Relic release workflow built this exact file from a specific agent source release.
SHA-256 hash from release data8.17 and higherThe file's contents match the contents New Relic recorded in its public GitHub repository.

Attestation is the stronger check. Use it when you can. Both methods compare the file with an external record, so they can detect changes on the download site.

Verify with a GitHub attestation

Every installer and package on the download site for .NET agent version 10.58.0 and higher (the .msi, .zip, .tar.gz, .deb, and .rpm files) has a GitHub artifact attestation. It ties the file's SHA-256 hash to the workflow, repository, and release tag that built it. The files without a version in their name, such as NewRelicDotNetAgent_x64.msi, are copies of the newest release and have the same attestation as the versioned file.

Verifying is optional, and you don't need the GitHub CLI to install the agent. If you'd rather not install it, use the SHA-256 method instead, which needs only standard command-line tools.

To verify a file with the GitHub CLI:

  1. Install the GitHub CLI, version 2.49.0 or higher.

  2. Sign in with gh auth login, or set the GH_TOKEN environment variable to a GitHub token. Authenticate the CLI before you look up attestations, even for a public repository.

  3. Run this command in the folder that contains the file:

    bash
    $
    gh attestation verify YOUR_FILENAME --repo newrelic/newrelic-dotnet-agent

If the file is genuine, the command exits with status 0 and you'll get a response like this:

Loaded digest sha256:267d12b26c129e60fe961738abdb62bd46d8153d007b05b2077a0ae3ea34ba43 for file://NewRelicDotNetAgent_x64.msi
Loaded 1 attestation from GitHub API
...
✓ Verification succeeded!
The following 1 attestation matched the policy criteria
- Attestation #1
- Build repo:..... newrelic/newrelic-dotnet-agent
- Build workflow:. .github/workflows/release_build.yml@refs/tags/v10.58.0
- Signer repo:.... newrelic/newrelic-dotnet-agent
- Signer workflow: .github/workflows/release_build.yml@refs/tags/v10.58.0

The workflow line ends with the tag of the release that built the file.

중요

If the command fails, don't install the file. It fails with a nonzero exit status and a message such as Loading attestations from GitHub API failed if someone modified the file after the build, or if the version doesn't have an attestation (such as versions before 10.58.0). Download the file again. If it still fails, contact New Relic support.

Verify the SHA-256 hash against release data

The release-data/download-site-hashes.json file in the .NET agent GitHub repository lists the SHA-256 hash of every installer and package that New Relic has published on the download site for versions 8.17 and higher. Each change to the file is a reviewed pull request, and the file stays separate from the files it describes. New Relic adds a release entry shortly after each release. If the version you downloaded isn't listed yet, use the attestation, or compare the file with the checksum table in the .NET agent release notes.

In the file, each version has a files section that maps each file name to its hash. To compare a file, use its versioned file name, such as NewRelicDotNetAgent_10.58.0_x64.msi or newrelic-dotnet-agent_10.58.0_amd64.tar.gz, so that the version is clear. The files without a version in their name, such as NewRelicDotNetAgent_x64.msi, have the same hash as the versioned file of the newest release.

These commands look up the expected hash and compare it with your file. Change VERSION and FILE for the file you downloaded.

If the hashes don't match, don't install the file. Download it again. If it still doesn't match, contact New Relic support.

Compute the hash of a file

If you want to compare a hash yourself, for example with the checksum table in the release notes, use these commands to compute it.

Linux

On Linux, run:

bash
$
sha256sum YOUR_FILENAME

If successful, you'll get this response:

5092fd52e40132a41ac06c320296cd9d63196d6de0fa6ce9b74fc4de1b3f9502 YOUR_FILENAME

Windows

On Windows, we recommended using either CertUtil or Get-FileHash to compute a file hash.

The SHA256 folders on the download site

The download site also has a SHA256 folder next to the files, for example latest_release/SHA256. Those hashes sit next to the files they describe, so a check against them can detect a corrupted download, but it can't show that a file and its hash weren't both changed. Use an attestation or the release data when you need that assurance.

Copyright © 2026 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.