A COM scriptlet is a small script, usually stored in an .sct file, that is executed through Windows Component Object Model interfaces. It can contain script code for languages such as JScript or VBScript and is often invoked by legitimate system components, which makes it useful for automation and risky when abused for code execution.
What COM Scriptlet Means in Windows
A COM scriptlet is a small script, usually stored in an .sct file, that is executed through Windows Component Object Model interfaces. It can contain script code for languages such as JScript or VBScript and is often invoked by legitimate system components, which makes it useful for automation and risky when abused for code execution.
Conceptually, a scriptlet is a lightweight script package that is handed off to COM-aware components for execution. That execution path matters because it can blend into normal Windows administration or application behaviour, which makes it a useful mechanism for both legitimate automation and stealthy abuse.
How COM Scriptlets Are Used
In benign use, COM scriptlets can support scripted tasks, integration logic, and simple automation where a component expects to load and run script content. The file-based .sct format and the COM execution path let the script travel through standard Windows plumbing rather than a dedicated standalone runtime.
That same convenience is what makes the technique attractive. If a trusted component is allowed to instantiate or load a scriptlet, the script inherits execution context from the calling path, so the security outcome depends heavily on which component is involved, how it is invoked, and what restrictions surround script execution.
Why COM Scriptlets Are Security-Relevant
COM scriptlets are security-relevant because they can be used as a code execution vehicle without looking like an obvious executable drop. They sit in a category where the abuse is less about the file type itself and more about the trust placed in Windows component interactions and scripting engines.
That makes them part of a broader class of living-off-the-land techniques, where attackers try to use built-in mechanisms to avoid standing out. Defenders care about these paths because they can bypass simplistic application allowlists, complicate lineage analysis, and hide malicious logic inside otherwise ordinary component calls.
What Defenders Should Look For
Detection usually starts with understanding which processes, script hosts, or COM-capable components are loading .sct content and under what conditions. Scriptlet abuse is often easier to spot when paired with unusual parent-child process relationships, unexpected script execution, or suspicious file locations and command lines.
For response, the key question is whether the scriptlet was merely loaded or whether it led to additional payload execution, persistence, or credential theft. When you investigate, preserve the surrounding process tree, the script contents, and any related download, staging, or execution artefacts so you can distinguish legitimate automation from malicious use.
Risk and Threat Considerations
COM scriptlets are dangerous because they can turn a normal Windows execution path into an unexpected code execution channel. When attackers can influence the script content or the component that loads it, they may gain a low-friction way to run code while reducing the visibility of a traditional executable-based attack.
Failure mechanism: A trusted COM-capable component loads a malicious or tampered scriptlet, then executes script code under conditions that defenders may not recognise as suspicious.
Impact: The result can be arbitrary code execution, follow-on malware deployment, persistence, or post-compromise activity that is harder to distinguish from legitimate system behaviour.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK addresses the attack and risk surface, while CIS Controls v8, NIST SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | T1059 — Command and Scripting Interpreter | COM scriptlets execute script code through Windows component paths. |
| Recommendation — Map .sct execution to scripting-interpreter activity and hunt for unusual parent-child process chains. | ||
| CIS Controls v8 | CIS-2 — Inventory and Control of Software Assets | COM scriptlets require knowing where script execution is permitted and used. |
| Recommendation — Inventory script-hosting components and restrict approved script execution paths. | ||
| NIST SP 800-53 Rev 5 | SI-4 — System Monitoring | Detecting scriptlet abuse depends on monitoring execution and process behavior. |
| CM-7 — Least Functionality | Scriptlet abuse is reduced by disabling unnecessary scripting and component pathways. | |
| Recommendation — Monitor COM-based script execution for anomalous launches and payload staging. Remove unused scripting capabilities and narrow component execution rights. | ||
| NIST CSF 2.0 | DE.CM-01 — Networks and network services are monitored to find potential cybersecurity events | COM scriptlet abuse is discovered through monitoring of execution paths and anomalies. |
| Recommendation — Correlate scriptlet launches with endpoint telemetry to surface suspicious execution. | ||
Practitioner Guidance
What to watch for: Treat scriptlet execution as a control point, not just a file-type decision. The practical question is whether your environment can identify when .sct content is being invoked, by which component, and for what business purpose.
Governance implication: COM scriptlets are a good example of why control owners need visibility into script execution paths, not just binaries and installed software. Security teams should be able to explain which administration workflows rely on them and which ones should be constrained or reviewed.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 29, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org