Skip to content
Platforms / 03EXE and MSIWindows security audits

Windows.

What your build
gives away.

Compilation changes the code. It can still leave readable strings, imports, resources, update addresses and the structure of a licence check. We follow those clues through the build you ship.

Get a free first look Explore the build
Graphite gaming laptop opened into layers to reveal its internal components.
Build / EXE and MSIIllustrated, layer by layer
  • .exe
  • .dll
  • .msi
  • .rsrc
  • PDB path
  • update feed

01 / Inside the build

A package.
Many ways in.

Select a layer to see what it contains and which tools can read it.

Inside the package

PE executables and DLLs (.exe, .dll, .sys)

Compiled machine code plus headers, an import table listing every DLL and Windows API the program calls, an export table for DLLs, and data sections holding string literals, constants, URLs and any keys compiled into the code.

Reads with effort

Not source, but fully disassemblable and decompilable to C-like pseudocode with Ghidra or IDA. Imports, exports and plain strings can be listed in seconds without running the program.

Indicative readability. Build settings, obfuscation and access to a running device change the effort.

Tools that can read these layers

Ghidra · IDA Free / IDA Pro · x64dbg · Detect It Easy (DIE) · Resource Hacker · Process Monitor (Sysinternals) · Sigcheck (Sysinternals) · Orca / lessmsi

02 / The method

One build.
Six ways to inspect it.

Agents inspect the package, trace its behaviour and collect evidence through six stages. An engineer verifies each finding before it enters your report.

Unpack.

Opens the build and lists every file, format and layer.

Tools used in this stage
  • inspect_artifact
  • extract_artifact
  • inspect_pe_resources
  • inspect_signature
Illustrative run log
  1. unpack
    extract_artifact setup.msi

    1 EXE, 23 DLLs, an update config

  2. map
    inspect_pe_resources app.exe

    version info, manifest, an embedded licence public key

  3. map
    inspect_native_api

    WinHTTP, CryptoAPI, registry calls

  4. read
    batch_decompile licence module

    142 functions, the check in one place

  5. hunt
    find_xrefs_to_name ValidateLicence

    one branch decides paid or trial

  6. hunt
    search_strings "http://"

    update feed served over plain HTTP

  7. run
    capture_process_scenario

    loads a DLL from the app folder first

  8. prove
    export_evidence_bundle

    5 findings, ranked, sent to the engineer

8 / 8 eventsEngineer review follows ↗

A written example of the report format. Replay is condensed; the real time budget is agreed before a run and printed on the report.

03 / Exposure areas

What can
escape the build.

The places we look on Windows, the business risk behind them, and the changes that reduce exposure.

Readability alone is not a vulnerability. Impact depends on what the recovered material lets someone do.

01

Client-side licence checks patched or forged

When the decision to open a product is made entirely on the user's machine, someone can find the branch in the decompiled code and flip it, or forge the local data the check trusts. Even Microsoft's own Software Protection Platform has been defeated this way.

The fix

Move entitlement decisions server-side with signed, short-lived licence tokens, and treat any local check as a speed bump rather than the lock.

CWE-602CWE-603

02

Hardcoded credentials and API keys in binaries

Cloud keys, database passwords, SMTP logins and private API tokens compiled into the EXE or a resource can be pulled out with a string search or a decompiler. Every copy of the build carries the same secret, so one extraction compromises the whole fleet.

The fix

Remove the secret from the client, rotate it, and have the client obtain scoped, per-user tokens from your backend instead.

CWE-798

03

Updates downloaded without integrity verification

Updaters that fetch manifests or installers over plain HTTP, or that do not verify the publisher's signature before running what they download, let anyone who can tamper with the traffic or the server push their own code. Updaters often run as SYSTEM, so the payload gets full control.

The fix

Serve updates over HTTPS only, sign the manifest, and verify the Authenticode signature and expected publisher of every downloaded file before executing it.

CWE-494CWE-319

04

DLL search-order hijacking and sideloading

If a program loads a DLL by bare name, Windows searches a list of folders and loads the first match, so a planted DLL with the right name runs inside the program. Microsoft documents that if the application runs with administrator privileges, this can give the attacker local privilege elevation.

The fix

Load DLLs by fully qualified path, call SetDefaultDllDirectories / use LOAD_LIBRARY_SEARCH flags, and verify signatures of plugins before loading.

CWE-427

05

Privileged local services trusting any caller

Helper services that run as SYSTEM often expose a local web server, named pipe or RPC endpoint so the user-level app can ask them to do things. If they do not properly check who is calling or where a request came from, a web page or low-privileged process can drive them.

The fix

Authenticate every caller (pipe ACLs, client process signature checks, strict origin validation) and expose only the minimum operations a privileged service needs.

CWE-346CWE-269

06

Secrets left in installers and config files

MSI properties, custom-action scripts and INI or XML files installed next to the program frequently contain default passwords, service account credentials or connection strings. These are readable by anyone who has the installer or a standard user account on the machine.

The fix

Generate per-install secrets at first run, store them with DPAPI or Windows Credential Manager, and strip credentials from installer tables and shipped config.

CWE-260CWE-312

07

Build paths and debug symbols in release builds

Release binaries usually record the full path of their PDB file, which can reveal developer user names, internal project names and source tree layout. Shipping the PDB itself hands over function names and makes reverse engineering much faster.

The fix

Use /PDBALTPATH:%_PDB% to strip build-machine paths, keep PDBs on a private symbol server, and never include them in the installer.

CWE-215

04 / Sample findings

From recovered evidence
to a fix you can check.

Explore three illustrative Windows reports. Switch to the re-test to see what the next build changes.

01 / 03

Illustrative example · Engineering/CAD desktop suite sold with per-seat licences (native C++, MSI installer)

A licence check in one branch.

The licence decision is made by a single exported function in licmgr.dll that returns a boolean the main EXE trusts without any server round trip. Patching one conditional jump opens every paid module offline, and the patched DLL keeps working across minor updates because the export name never changes.

Evidence comes first

The full teardown records the recovered artifact, its business impact and a fix for your stack.

Recovered artifactEXAMPLE / 01
// licmgr.dll!CheckSeat (Ghidra pseudocode)
bool CheckSeat(LicCtx *ctx) {
  if (ctx->expiry < GetSystemTimeAsDays()) return false;
  if (ctx->featureMask & FEAT_PRO) return true;   // 0x1800234A: JNZ -> JMP
  return VerifyLocalSig(ctx->blob, PUBKEY_LK_xxxx91ad);
}

These fictional examples show the report format. All names, hostnames and credentials are made up. They do not describe real customer work.

05 / On the record

The risk
has a history.

These reports show what other researchers found in released software. Each links to the original source.

  1. 2023

    Malicious code inside a signed desktop build

    Sophos documented the 3CX supply-chain incident, in which native DLLs loaded by the Windows desktop application carried a malicious payload. The apparently normal application continued to run.

    Sophos X-Ops (March 2023) (opens in a new tab)
  2. 2019

    A signed updater used in a supply-chain attack

    Kaspersky reported that attackers modified ASUS Live Update and distributed signed malicious software through the vendor’s update infrastructure in 2018. The investigation was published in 2019.

    Kaspersky press release, Operation ShadowHammer (March 2019) (opens in a new tab)

Before the review

Windows
audit questions.

Compare pricing and scope, or read how we verify findings.

What does a Windows security teardown inspect?

Compilation changes the code. It can still leave readable strings, imports, resources, update addresses and the structure of a licence check. We follow those clues through the build you ship. An engineer verifies the findings, explains their business impact and writes fixes for your stack.

Can a compiled EXE still expose licence checks or credentials?

Yes. Compilation can leave readable strings, imports, resources and configuration files. Those clues can reveal an embedded credential, update address or the structure of a local licence decision. The impact depends on what the recovered information permits.

What does a Windows teardown report include?

The paid teardown includes recovered evidence, findings ranked by business impact and a fix written for your stack. Audit and re-test adds a same-budget check of the updated build and a dated statement. The free first look reports counts and excludes recovered code and credential values.

Page updated . Samples are illustrative; public research is attributed above.

Your build. Your evidence.

See what
yours gives away.

Start with counts of exposed keys, files and readable logic. A full teardown adds verified evidence, business impact and a fix written for your stack.

Only software you own or are authorised to submit. No code or credential values in the free counts-only result.