Documents and signed installers

A document with a macro and an installer with a valid signature are both delivery. The signature means a certificate was used. It does not mean you meant to run the program.

Lesson 18 of 18 · 14 min read · practice only with authorization

Diagram

From a file someone opened to a program that should not have started

Follow the path. One example at a time.

Step 1 of 4

Arrive

Mail or a download delivers a document or an installer.

Illustration: a document from the internet is data
# Macros in files from the internet stay disabled.
# The document can be read without running a macro.
What changes the outcome
Mail

External documents open with macros on.

Signature

Any valid certificate is treated as trust.

User

The person is a local administrator.

The example on the open step is one illustration, or the fix you can paste into an application you own.

What this page is made of

4 pieces. Each one says what fails, who is affected, what you would notice, and what you change.

  1. Macros are programs

    What fails
    A document that runs a macro runs code with the user’s rights. The dangerous part is the code, not the extension people recognize.
    Who is affected
    The person who opened it, and the data their account can reach.
    What you would notice
    Macros enabled for files that came from mail or the browser.
    What you change
    Turn that policy off. Open the rare legitimate macro from a trusted location you host, not from a download.
  2. Signatures name a publisher

    What fails
    A signature says a key signed the file. It does not say you wanted that publisher’s program, and stolen certificates exist.
    Who is affected
    Everyone who ran it because the warning said trusted.
    What you would notice
    A policy that allows all signed binaries, and a new publisher nobody has heard of installing quietly.
    What you change
    Allow-list publishers or hashes you chose. Review additions. Do not equate “signed” with “allowed.”
  3. The person is not an installer

    What fails
    If every employee can install software, every phish is a software deployment. Standard users, with a request path for real tools, shrink that.
    Who is affected
    The fleet, one click at a time.
    What you would notice
    Local administrator on laptops because a printer driver once needed it.
    What you change
    Remove daily-use admin rights. Package the driver. Keep the exception short.
  4. Mail is the delivery van

    What fails
    External banners, attachment types, and the authentication from the lookalike page are how you make the document less likely to arrive looking internal.
    Who is affected
    The recipient who trusts an internal look.
    What you would notice
    No external banner, and macro-enabled attachments allowed from outside.
    What you change
    Banner external mail. Block the attachment types you do not need. DMARC still matters.

The document is a program if you let it be

Office documents and similar files can contain macros: code that runs when the person opens or enables them. Mail and browsers mark files that came from the internet. Honor that mark. Macros in those files stay off. If finance has a real macro, it lives in a directory you host and you signed, not in an attachment named invoice. The exception is a list, not a default.

This is delivery, not a special kind of malware. The program that runs next uses the persistence inventory on the previous page. Stopping it here is cheaper than rebuilding the laptop tomorrow. Application control is the pair: even a file that is not a document should not run unless you allowed the publisher or the hash.

Signed is not the same as wanted

Code signing tells you a private key produced a signature over the bytes. It is useful because you can pin the publishers you actually install. It is not useful as “any valid signature may run,” because there are many valid certificates, and some get stolen. Treat a new publisher as a software request. Treat a signature failure as a block, not as a click-through warning the person has been trained to accept.

Standard user rights sit underneath both controls. A person who can install will be asked to install. Package the tools they need. Take everyday admin away. The printer driver that justified admin rights in 2014 can be a package in the management system you have now.

Make the outside look outside

Banners on external mail, DMARC so your own domain is harder to forge, and attachment policies that block types you do not use are the mail half. They do not replace application control. They reduce how often a person is asked to make a kernel-level decision before coffee.

You would notice macros enabled for the internet zone, a policy that trusts all signed code, local administrators everywhere, and no external banner. The people affected are the person who opened the file and the data their account could touch. The finding is those four settings. It does not include a sample document.

What you change

Ship the macro policy, the application allow-list, the admin-rights removal, and the mail banner. Write the exception process so a blocked legitimate tool can be added by a person, with a name, in a day. A control with no exception path gets disabled. A control with a casual exception path is not a control. Aim between them.

Practice on a lab machine you can rebuild: confirm a macro from the internet does not run, and confirm an unlisted publisher does not install. Do not hunt for a live sample to prove it. A benign file you wrote is the test.

Check yourself

Recognition and the fix. Nothing here is a procedure.

1 / 3

Files from the internet open with macros enabled, and any signed installer may run. What failed?

Sibling techniques

Pages at the same depth, plus a lab and a glossary card for this one.

  1. MapExploit kits and drive-by downloads: why patched browsers ended an eraExploit kits like Angler and RIG fingerprinted visitors and served browser or plugin exploits through compromised sites and malicious ads.

Practice

  1. LabTerminal labRead the files on a scoped host and name the failure in a finding.

Glossary

  1. CardRansomwareSystems and backups are encrypted or stolen, and work stops until recovery or payment.