Executable program file

The file is an executable program (Windows PE, macOS Mach-O, Linux ELF, an installer or a script) that will run with your privileges if opened.

Do this: Run it only from a source you trust, and check the publisher signature. An executable does whatever its author intended the moment you run it; no document does that.
PassThe file is not an executable program.
MediumThe file is an executable program that runs with your privileges.

The fix, in one snippet

Example to adapt Verify the publisher before running
# macOS
codesign -dv --verbose=4 App.app
# Windows
Get-AuthenticodeSignature .\setup.exe

Illustrative values. Change the paths, hostnames and options to match your own site before using it.

The sections below explain what is tested, why it matters and the alternatives.

What we test

The scanner identifies executables from their headers rather than their names. For Windows PE files it follows e_lfanew to the PE\0\0 signature and reads the COFF header: machine type, subsystem (GUI or console), link timestamp, section names and whether a CLR header (.NET) or an Authenticode signature directory is present. It recognises Mach-O (including fat binaries), ELF, MSI (an OLE compound file with installer streams), JAR and APK (zip with META-INF/MANIFEST.MF or AndroidManifest.xml) and scripts by extension or shebang line. Packer indicators, such as UPX section names or sections with near-random entropy, raise the severity. The default is medium: an executable is not malware, but it is the class of file that can do anything.

Limits: nothing is executed and no signature chain is validated; the check reports that a signature block exists, not that it is trusted.

Why it matters

An executable needs no exploit, only persuasion: "update your media player", "cracked software", "delivery invoice", "your CV as reviewed". Once run, it has every permission you have, which on a home machine is everything. Unsigned or self-signed binaries carry no accountability, and a timestamp in the future or in 1970 usually means a packer rewrote the headers. Windows users are the main target; macOS Gatekeeper requires notarisation but people are talked into right-click-Open, and Linux users are handed curl … | sh lines.

How to fix it

Only run programs from the vendor's own site or an app store, and verify before running. On Windows, Properties > Digital Signatures shows the signer; in PowerShell:

Get-AuthenticodeSignature .\setup.exe | Format-List Status, SignerCertificate

On macOS:

codesign -dv --verbose=4 App.app
spctl --assess --type execute -v App.app

Compare the SHA-256 with the value the vendor publishes (see hash reputation). Run anything you are unsure about in Windows Sandbox or a virtual machine, and never turn off SmartScreen or Gatekeeper "just this once". Guides: is this file safe?, scanning downloads before opening and malware types explained.

Where this fits

Executable program file is check 16 of 20 that the file malware scanner runs under file structure and malware indicators, ordered the way they are worth fixing. That ordering is the point: Fixing this one while the check above it still fails buys less than it looks like.

Fix this one first

Above it in the same category sits Deeply nested archive (medium), where the archive contains further archives several levels deep, a structure used to exhaust scanners and to strip the Mark of the Web before the payload arrives. An attacker who has that does not need this, so it is the better use of the same hour.

What fixing this still leaves open

Executable program file closes one route in. Immediately below it: PDF contains embedded files, where the PDF carries one or more attached files inside it, which can be executables, scripts or further documents that a reader can extract and open; Password-protected archive, where the archive's contents are encrypted with a password, so neither Scan.now nor your antivirus can inspect what is inside before you extract it; EICAR antivirus test file, where the file contains the EICAR test string, a harmless sequence that every antivirus engine is required to detect.

Prompt for an AI Hand this check to an assistant Sign in to copy it
The first few lines
You are a senior web engineer. I ran a security and SEO scanner against my site and it reported the finding below. Fix it properly rather than suppressing the symptom.

Finding: Executable program file (medium severity)
Scanner check id: executable-file
20 more lines, including the evidence and the exact fix

The rest of this prompt names the pages and line numbers we found the problem on, the configuration to change, and the constraints a good answer has to respect. It is free, it just needs an account so the work is not scraped wholesale.

Sign in with Google

Signing in is free and takes one click. We store your email address and nothing else.

References

  1. Microsoft: PE Format
  2. Apple Platform Security: Gatekeeper and runtime protection
  3. Microsoft Defender SmartScreen
  4. Windows Sandbox

Related guides