Skip to main content

What do you think of this service? Your feedback will help us to improve it.

Author: Government Digital Service

Links to .exe files found on the website

What this means

The links to .exe files found on the website vulnerability occurs when a website contains direct links to executable files, allowing users to download and execute programs directly from a hyperlink.

Why this is a problem

If the files are malicious, outdated, or unverified, they pose security risks to users and the website’s reputation. Attackers may exploit this by:

  • injecting malicious files into links via Cross-Site Scripting (XSS) or insecure uploads
  • tricking users into downloading malware, ransomware, or trojans
  • exploiting outdated .exe files with known vulnerabilities
  • using these links to publish executable files in unintended ways, consuming site bandwidth and resources

Hosting or linking executable files on a website is risky and can lead to user infections, reputational damage, and legal issues.

It’s recommended to remove direct links and use a more robust and secure download method.

How to check if the problem is there

An administrator should scan the website file structure for any files that have a .exe extension.

How to fix this

Remove or restrict executable file hosting

Avoid hosting .exe files directly on your website.

Only allow access to authorised users, such as requiring a login.

Use Code Signing for executables

Make sure .exe files are digitally signed to verify authenticity.

Implement secure file download practices

Use HTTPS for file downloads to prevent tampering.

Store and serve downloads from secure, read-only repositories.

Regularly check for hash integrity (for example, using SHA-256 checksums).

Scan for malicious links

Use automated scanners to scan your website for executable files.

Monitor server logs

Monitor server logs for unauthorised changes or tampering to files

Sign up to UK Government Security

Subscribe to our newsletters to receive notifications when changes to strategy, policy, standards, and guidance are published on the website.

Sign up now