Addendum A2: When Code Is Used Against You
What addendum a2: when code is used against you is, who it affects, and what a child should learn — a free entry from the Digital Guardians Threat Dictionary.
Target age range: Primary emphasis: 11-13 and 14-18, where the CYBER.ORG standards address the role of scripting in cyber attacks and defense. Younger children learn the foundation: apps follow instructions, and grown-ups decide which instructions run. The line under each cohort names its closest CYBER.ORG grade band. Cohort What they should understand Best teaching posture 5-7 K-2 Apps and pages follow instructions called code. When you press a button, code tells the app what to do. Show-and-tell with a familiar app 8-10 3-5 Changing a few instructions changes what a page does. "If-then" and "repeat" are the building blocks. Unplugged acting-out and guided play 11-13 6-8 Criminals misuse scripts: macros in documents, fake verification pages that ask you to paste a command and harmful extensions. Lure-spotting with mock screenshots 14-18 9-12 How scripts are used in attacks and in defense, including injected web scripts, macro blocking, paste warnings, permissions and allowlisting. Attack-and-defense analysis with justification
Learning objective: By the end of this addendum, the reader should be able to explain what a script is and how code makes a page respond. The reader should also recognize four common ways scripts are misused and name the built-in defense for each. Knowledge: define script, macro and browser extension, and name the four misuse patterns. Skill: run the code-request stop before enabling, pasting, running or installing anything. Disposition: treat any request to run code as a reason to pause and verify. The deeper goal is one reflex: if something needs me to run code, the request itself is the warning.
Threat definition
A script is a short set of instructions that a computer runs in order. JavaScript, for example, is a scripting language that lets web pages update content and respond to clicks. A macro is a small script saved inside a document, such as the VBA macros in Microsoft Office files.
This addendum's threat is persuaded code: a stranger convinces someone to run instructions that work against them. It shows up in four common patterns:
- Macro lures. A document arrives by email or download and asks you to "Enable Content" before it will show anything. Microsoft describes VBA macros as a common way for criminals to deploy malware and ransomware.
- Paste-and-run tricks. A fake human check or error page tells you to press certain keys, paste a command and run it. Microsoft calls this technique ClickFix.
- Console pasting. A message promises free items or account features if you paste code into the browser's developer tools. This is called self cross-site scripting, or self-XSS.
- Harmful extensions. A browser add-on asks for broad permissions, such as access to every site you visit, and then watches or changes what you see.
These tricks work because the person takes the final step. Microsoft notes that attacks relying on a person's action can get past automated security tools. That is why recognition is the defense families control.
The full chapter is in DGSS Tech & Security Guide and the Complete Edition.