CYBER WELFARE

Protect your Digital Privacy

Code signing and operating system checks: what they guarantee, and what they do not

When you open a freshly downloaded program, sometimes the computer says nothing, sometimes it shows a company name and asks for confirmation, sometimes it refuses to open it. Behind these behaviours is a chain of checks that starts long before, when the developer seals the program, and continues while you use it.

This post explains how code signing and operating system checks work together, in general terms and without naming products: what a developer’s signature does, how the system uses it, what role a file’s fingerprint plays, and which automatic checks are added on top. For each one: what it protects, what it does not, and the effort involved. The starting point is a simple question: when the computer says a program is fine, what does it actually know?

It is the technical side of the recommendation on how to check downloaded files. The practical sequence for using these checks, in the right order and also when something goes wrong, is in the guide on how to verify a download.

How to read this list

The technologies are split into four groups, like the phases of security:

  • prevention: they stop an altered program being opened without you knowing;
  • detection: they show you whether a file has changed or is already known to be harmful;
  • response: they withdraw trust from what has turned out to be dangerous;
  • governance: the rules and bodies that make trust possible.

One principle applies to all of them. NIST, the US standards body, in a January 2018 paper on code signing, sums up what it does: digitally signing software provides integrity, meaning proof that the code has not been modified, and source authentication, meaning the identity of whoever signed it. Two valuable guarantees; neither says the program is harmless.

1. Prevention technologies

Code signing by the developer

The developer calculates a fingerprint of the program and seals it with their private key, a secret value only they hold. Along with the program they distribute a certificate, a digital document issued by a certificate authority that links the matching public key to the developer’s name. The signature often includes a timestamp too, which records when it was applied.

  • Risk reduced: programs modified after publication, on a mirror server, during the download or on your disk.
  • Strengths: the computer does the check, every time; if even a single byte changes, the signature no longer matches. Forging it would require the developer’s private key, which is not on the download page.
  • Limits: it says who signed, not that the program is honest. Someone imitating a developer can sign with a certificate of their own, under a different or similar name. A CISA and NIST document of April 2021 describes attackers who get round signing with self-signed certificates or by breaking into the developer’s signing systems: in those cases an altered program can show up as signed.
  • Example of use: the installer of an office application, signed by the company that develops it.
  • Complexity: none for you; developer and system do the work.

Signature check on opening

When you open a downloaded program, the operating system checks the signature and the certificate. Depending on the result, it shows the publisher’s name, asks for confirmation, warns you or blocks it. The documentation of one of the main system makers explains, for example, that the system checks the developer’s signature for programs obtained outside the store and warns that a program cannot be opened if it detects that it has been modified or damaged.

  • Risk reduced: opening, without noticing, a program that is unsigned, signed by someone else or modified.
  • Strengths: it turns a technical check into a simple question: is this the publisher you expect?
  • Limits: on many systems the user can override the warning, and the exception granted often stays saved for that program. A warning ignored out of habit does not protect.
  • Example of use: the system shows “unknown publisher” for a driver taken from a site that collects programs; the manufacturer’s own driver shows its name.
  • Complexity: low: read the name and do not skip the warning.

Automated checking by the system maker

Some systems ask developers to submit programs distributed outside the store to the system maker before publishing them. An automated service examines them and, if it finds no problems, issues a kind of attestation that the system checks the first time the program is opened. According to that maker’s documentation, the service looks for malicious content and signing problems, and the check on opening concerns known malware; the same documentation makes clear that it is not the store’s review.

  • Risk reduced: programs carrying known malware, even when signed.
  • Strengths: one more check before the file reaches you; if a version turns out to be harmful, its attestation can be withdrawn.
  • Limits: it is an automated check for known malware, not a full review like a store’s; it does not say that the program does only what it promises.
  • Example of use: a graphics program, downloaded from its author’s site, that the system presents the first time with a simple request for confirmation, noting that it has been checked.
  • Complexity: none for you.

Updates built into the program

Many programs check by themselves whether a new version exists, download it from the developer and verify its signature before installing it. How this generally works is described in the post on how security updates work.

  • Risk reduced: fake updates offered by pop-ups on websites; old versions with known vulnerabilities.
  • Strengths: after the first checked installation, updates come from the same source, with no searching.
  • Limits: if an attacker gets into the developer’s update system, the update itself can be altered; it is one of the cases CISA and NIST described in 2021. Such incidents are rare.
  • Example of use: the editing program that, on start-up, offers to update itself from its menu.
  • Complexity: low.

2. Detection technologies

A file’s cryptographic fingerprint

The fingerprint, or hash, is a fixed-length code calculated from a file’s contents: SHA-256 produces 64 characters. Identical files give identical values; different files, in practice, different values. How to calculate and compare it, step by step, is explained in the resource on hash functions and digital signatures.

  • Risk reduced: files damaged during the download, copies swapped on an intermediate server.
  • Strengths: it also works for unsigned files, such as many programs from small projects, system images and archives.
  • Limits: it confirms that your copy matches the file used to produce the value, but not who published that value. If the fingerprint is on the same page as the file and the page has been tampered with, both can change together. MD5 and SHA-1 fall short against deliberate tampering: in December 2022 NIST announced it was retiring SHA-1, to be phased out by 2030.
  • Example of use: an image for reinstalling the system downloaded from a mirror, compared with the fingerprint on the official site.
  • Complexity: low to medium.

Separate signature file and the project’s public key

Some projects publish a signature file next to the program, or sign the list of fingerprints. To verify it you need a dedicated program and the project’s public key.

  • Risk reduced: a tampered download page that changes both the file and the fingerprint.
  • Strengths: whoever tampered with the page cannot produce a valid signature with the project’s real key.
  • Limits: everything depends on where you get the public key: if you take it from the same tampered page, the check can be bypassed. Get it from a different source and keep it for next time.
  • Example of use: a file-encryption program whose public key you saved the first time and use for every update.
  • Complexity: medium.

File reputation checks

Some systems compare the downloaded file with lists of sites and programs reported as harmful, and with lists of widely downloaded files. The documentation of one of the main makers explains that, if a file or certificate does not yet have an established reputation, a warning may appear, even when the file is signed.

  • Risk reduced: new files prepared for a campaign, downloaded by only a few people.
  • Strengths: it can also catch signed files, if the certificate has no history.
  • Limits: an honest program just released can also get a warning; a harmful file downloaded many times can get through until it is reported.
  • Example of use: a new version of a small open-source program that gets a cautionary warning in its first few days.
  • Complexity: low.

Built-in anti-malware protection

Protection that analyses files and compares them with known malware and suspicious behaviour. How it works, and where it stops, is explained in the post on how malware scanning works.

  • Risk reduced: known harmful programs.
  • Strengths: it works in the background and also checks what you have already installed.
  • Limits: it recognises known threats better than new ones; “no problems found” is not a guarantee.
  • Complexity: low; just leave it on and up to date.

3. Response technologies

Certificate revocation

If a developer’s private key is stolen, or a certificate is misused, the certificate authority can revoke it, stating from which date the certificate should no longer be considered valid: programs signed with that certificate after that date stop being considered trustworthy.

  • Risk reduced: programs signed with stolen keys or by parties who turn out to be malicious.
  • Strengths: it hits the files signed with that certificate in one go, without having to find them one by one.
  • Limits: it comes after the discovery, and its effect varies from one system to another. Thanks to the timestamp, programs signed before the date given in the revocation can remain valid: that is why it matters that the chosen date comes before the misuse.
  • Complexity: none for you.

Blocking and removing files known to be harmful

When a program is recognised as harmful, the system can stop it opening, move it to the bin or to quarantine, and warn you.

  • Risk reduced: dangerous programs already on the disk.
  • Strengths: it also reaches people who have not noticed anything.
  • Limits: it does not undo what the program has already done, such as passwords collected or files encrypted.
  • Complexity: low.

4. Governance technologies

Certificate authorities and trust chains

The system trusts a certificate because it was issued by an authority the system knows. It is the same logic as website certificates, described in the post on how HTTPS works: but a site’s padlock and a program’s signature are different checks. The first protects data on its way to a given address, which may also be a fake site’s; the second says who sealed the file.

  • Risk reduced: anyone’s signatures passed off as a developer’s.
  • Strengths: it makes automatic checking possible without you knowing every key.
  • Limits: a certificate says whom it was issued to, not how trustworthy that party is.
  • Complexity: none for you.

Code signing and legally binding signatures

In law, “signature” also means something else. Under the EU eIDAS Regulation, which also remains part of UK law, a qualified electronic signature carries the legal weight of a handwritten one and is used, among other things, for contracts and formal documents. The cryptographic principle is the same, but the purpose differs: code signing lets the system trust a program; it is not a signature on an agreement.

  • Limits: mixing the two up leads to overrating a warning or a “signed” label.
  • Complexity: low: just know which signature is meant.

Rules on permitted programs

In an organisation, or on a carefully managed family computer, you can decide that only programs from approved sources, or signed by known publishers, get installed.

  • Risk reduced: impulsive installations from uncertain sources.
  • Strengths: it moves the decision from a moment of haste to a rule made with a cool head.
  • Limits: it needs upkeep and someone to handle exceptions.
  • Complexity: medium.

Comparison table

TechnologyGroupWhat it guaranteesWhat it does not guaranteeComplexity
Code signingPreventionIntegrity and the identity of the signerThat the program is harmless; that the signer is the developer you wantNone
Check on openingPreventionWarning about missing, different or broken signaturesNothing, if the warning is ignoredLow
Automated checking by the system makerPreventionNo malicious content detected at the time of the checkA full reviewNone
Built-in updatesPreventionUpdates from the same source, checkedAn update system compromised upstreamLow
SHA-256 fingerprintDetectionA copy identical to the file describedWhere it came from; a tampered pageLow to medium
Separate signature fileDetectionOrigin, even if the page has been tampered withNothing, if the key comes from the tampered pageMedium
File reputationDetectionCaution about new or rare filesCertainty, either wayLow
Anti-malwareDetectionBlocking known threatsNew threatsLow
Certificate revocationResponseAn end to trust in a misused signatureProtection before the discoveryNone
Rules on permitted programsGovernanceDecisions made with a cool headNothing, without upkeepMedium

How to choose

  • If you use the computer for home and family: leave signature checks, reputation and anti-malware on; read the publisher’s name; compare the fingerprint for important programs; update from the program itself.
  • If you often install open-source programs from small projects: the fingerprint from the official page becomes your main check; for programs that protect sensitive data, learn to verify the signature file.
  • If you work with other people’s data: add rules on permitted programs and a disconnected backup.
  • If you help a relative: choose the official pages together, bookmark them and explain a single rule: when a warning appears, stop and call.

The same kind of checks, applied to phone apps, is described in the post on how app stores check apps.

The practical rule: when the system shows you a signature, read the name; when the page offers a fingerprint, compare it; when you get a warning, stop. And remember that “verified” means “it is what the signer distributed”, not “it is safe”.

How this connects to the Cyber Welfare Framework

PillarWhat this content contributes
SkillsKnowing what code signing, system checks, fingerprints and reputation do, and reading what the system shows
AwarenessUnderstanding that integrity and origin are not harmlessness, and that every check has a precise limit
Secure BehaviourLeaving automatic checks on and not overriding a warning without checking the source again

Reference level: FL3 — Autonomous. This is the level where checks are used with judgement, knowing what they cover and what they leave exposed, rather than trusting a label. To measure your other digital habits, you can take the digital resilience self-assessment.

Conclusion

Code signing says that a program has not changed and who sealed it; the operating system checks it and shows you; the fingerprint confirms your copy matches the one described; reputation and anti-malware add a filter for known threats. Each does one thing well.

None of them, though, answers the question “is this program honest?”. That answer comes from the source you choose and the attention you give to warnings. Automatic checks give you the evidence; the decision is still yours.

Related content

Related resources

Short reads from the Resources section, for anyone who wants to focus on a single aspect:

Start with the first step: the Cyber Welfare Programme guides you free of charge, one recommendation at a time.