Active Content: When a Page or Document Runs Instructions
A document can contain instructions as well as information. When those instructions run—perhaps to update a chart or automate a task—you're dealing with active content.
Active content is content that can carry out or trigger actions, rather than simply sit on a page for you to read. It can appear in websites and documents, and some actions may start automatically when the content loads.
The National Institute of Standards and Technology, or NIST, emphasizes that ability to trigger actions in its active-content definition. The term doesn't mean that the content is necessarily harmful.
How One Tweet Started Retweeting Itself
The useful work happens behind the page
A website's loan calculator might update a result when you change the interest rate. A shared chart might load new readings without making you refresh the whole page.
Such features often use JavaScript, a programming language browsers can run. A script is a set of instructions that tells the program what to do.
Mozilla's JavaScript guide describes how the language makes webpages interactive. The visible result could be useful, decorative or barely noticeable; movement on screen alone doesn't tell you what code is running.
Documents can do work, too. A macro is a stored set of instructions that automates tasks, such as formatting a report or importing rows into a spreadsheet.
That can save someone an afternoon of repetitive work. It also means a file may ask the application opening it to do much more than display text.
The risk comes from what the instructions can do
A malicious macro could run unwanted commands under the permissions available to the application. Malware is software designed to cause harm, steal information or give an attacker unwanted access.
Microsoft identifies document macros as a route used to deliver malware and explains its default blocking of macros from internet-sourced files in affected Office applications. The exact behavior depends on the application, version and organizational policy.
Web browsers place limits on scripts, too. For example, the same-origin policy restricts how code from one website can interact with information from another.
Mozilla's explanation of that policy describes this boundary between sites.
Those restrictions don't make every script trustworthy. Code running as part of a page may still have access to information you enter into that page.
- Catch the threats a built-in antivirus can miss.
- Get blocked from malicious sites before they load.
- Protect your devices around the clock, not only when you run a scan.
Treat “enable content” as a decision
An unexpected document that asks you to enable macros is asking to run instructions, not merely improve its appearance. Verify the file's purpose through a trusted route before changing a protection setting.
For a work file, use the organization's approved process for reviewing and allowing that automation. A familiar filename or a company logo inside the document isn't evidence that its instructions are safe.
Active content makes many everyday tools useful. The key distinction is what you're allowing the content to do, with whose permissions, and whether you have a sound reason to trust it.
Applets: The Little Programs That Once Powered Web Pages

Malicious Code: The Unwanted Instructions in Useful Software

Sandboxing: Deciding What a Program Can Reach

QUOTE:
"Amateurs hack systems, professionals hack people."
