🖥️
Windows DFIR
  • Introduction
  • Windows Artifacts
    • Windows Quick Tips
      • Windows Command Line
      • Workstation File/Folder Locations
      • Server File/Folder Locations
    • Account Usage
      • Authentications SAM Artifacts
        • Last Login
        • Last Failed Login
        • Last Password Change
      • Authentications (Windows Event Log)
        • Logon ID
      • Group Membership
        • Event ID: 4798
        • Event ID: 4799
      • RDP
        • Source System Artifacts - Quick Reference
        • Destination System Artifacts - Quick Reference
      • SSH
      • Rouge Local Accounts
      • CrowdStrike Searches
        • Event Name - UserLogon
        • Event Name - UserLogonFailed
        • Event Name - UserLogonFailed2
        • Event Name - SsoApplicationAccess
    • Browser Usage
      • History & Downloads
        • Viewing History Files - DB Browser
        • Transition Types
      • Auto-Complete Data
      • Bookmarks
      • Browser Preferences
      • Cache
      • Cookies
      • Extensions
      • Super Cookies (HTML5 Web Storage)
      • Media History
      • Private Browsing
      • Session Restore
      • Stored Credentials
      • Suggested/Frequent Sites
      • DB Browser Queries
        • Firefox
        • Chrome
        • Media History
      • PowerShell Scripts
        • Browser Extension Finder
        • Browser History Finder
    • Processes
      • at.exe
      • explorer.exe
      • lsass.exe
      • lsaiso.exe
      • PuTTy.exe
        • X11 Forwarding
      • runtimebroker.exe
      • services.exe
      • smss.exe
      • System
      • svchost.exe
        • Services
      • winlogon.exe
      • wininit.exe
    • Cloud Storage
    • Deleted File or File Knowledge
      • WordWheelQuery (Win 7+)
      • ACMRU (Win XP)
      • Internet Explorer file:///
      • Last Visited MRU
      • Thumbs.db (Win XP)
      • Thumbcache
      • Recycle Bin
      • User Typed Paths
      • Windows Search Database
    • File Download
      • Zone.Identifer
      • Open/Save Most Recently Used (MRU)
      • Email
      • Drive By Downloads
        • Malvertising
      • Web Browsing
        • Cache Files
      • CrowdStrike Searches
        • MoTW
    • Folder/File Opening/Creation
      • Recent Files
      • Office Recent Files
      • Shell Bags
      • .lnk Files
      • Jump Lists
        • AppIDs
      • Prefetch
      • Index.dat file://
      • PowerShell Scripts
        • .lnk Files
    • Persistence
      • Registry
        • NTUSER.DAT & HKU\SID
        • Run and Run Once
        • Shell Folders and UserInit Key
        • Services
        • Logon Scripts
        • Office Add-ins
        • Winlogon Shell
        • Image File Execution Options (IFEO)
        • AppInit_DLLs
        • Scheduled Tasks
      • Scheduled Tasks
        • Scheduled Task Destination System Artifacts
        • Scheduled Task Source System Artifacts
      • Startup
      • Tool: AutoRuns
      • Accounts
      • WMI Event Consumers
        • WMI: Source System Artifacts
        • WMI: Destination System Artifacts
        • WMI: PowerShell Analysis
      • PowerShell Scripts
        • Startup Programs
      • CrowdStrike Searches
        • Files Written to Startup Folder
        • Files Written to Startup Folder from the Internet
        • Local Account Creation/Deletion
        • Azure Account Creation/Deletion
        • Scheduled Tasks
    • Physical Location
      • Time zone
      • Wireless SSID
      • Network History (Vista/Win7–11)
      • Cookies
      • Browser Search Terms
    • Program Execution
      • Prefetch
        • Decoding Prefetch Files with Eric Zimmerman's PECmd Tool
      • BAM/DAM
      • CapabilityAccessManager
      • UserAssist
      • Last Visited MRU
      • RunMRU
      • MUI Cache
      • ShimCache
      • Amcache
      • Jump Lists
    • Shadow Copies
      • VSC Permissions
      • Event ID 8193: Volume Shadow Copy Service Error
    • USB Usage
      • Key Identification
      • Drive Letter and Volume Name
      • Connection Timestamps
      • User
      • Volume Name
      • Plug & Play Event Log
    • Windows Services
      • DoSvc (Delivery Optimization)
    • System Information
    • Event IDs
      • Authentication / Account
        • 4624 - Authentication Success
          • Logon Types
        • 4625 - Authentication Failure
          • SubStatus Codes
        • 4634 - Account Logoff
        • 4648 - Explicit Credentials Success
        • 4672 - Special Privileges
        • 4720 - Account Creation
        • 4722 - Account Enabled
        • 4732 - Addition to Local Group
        • 4738 - Account Changed
        • 4776 - Kerberos Authentication Attempt
          • Substatus Codes
        • 4771 - Kerberos Failure
        • 4768
      • File System
        • 1006
        • 4688 - Process Created
        • 4663
        • 4656
        • 6416
        • 20001
        • 20003
  • Windows DFIR & MITTR
    • Initial Access
      • Content Injection
      • Drive-by Compromise
        • Watering Hole Attack
        • Microsoft Files (Payload Execution)
        • Exploit Delivery
        • Viewing Browser History Files
      • Phishing
    • Execution
    • Persistence
    • Privilege Escalation
    • Defense Evasion
    • Credential Access
      • Logon ID
    • Discovery
    • Lateral Movement
    • Collection
    • Command and Control
    • Exfiltration
    • Impact
  • SOC Related
    • Cached Credentials
    • Domain Controller Password Spraying
Powered by GitBook
On this page
  • Overview
  • Abuse by Threat Actors
  • Detection and Mitigation
  • Example of a Suspicious Entry
  • Conclusion

Was this helpful?

  1. Windows Artifacts
  2. Persistence
  3. Registry

Office Add-ins

Office Add-ins provide enhanced functionality and customization for Microsoft Office applications, enabling users to tailor their experience with additional features.

Overview

  • Registry Location: The specific registry path for Office Add-ins depends on the Office application and version. A general pattern for these paths is:

    • HKCU\Software\Microsoft\Office\[Office Version]\[Application]\Addins

  • Purpose and Use: Add-ins can range from productivity tools, such as grammar checkers and citation managers, to enterprise-specific integrations like CRM and project management tools. They're developed using various technologies, including COM add-ins, VSTO (Visual Studio Tools for Office), and Office Web Add-ins.

Abuse by Threat Actors

  • Malicious Add-ins: Threat actors can create or modify registry entries to load malicious add-ins when an Office application starts. These add-ins can perform a wide range of malicious activities, from data exfiltration to executing further payloads.

  • Persistence and Stealth: Once installed, a malicious add-in can provide persistent execution of malicious code each time the Office application is launched. Given that users frequently open Office applications, this provides a reliable method for maintaining access. Moreover, users might not suspect add-ins as a source of compromise, granting malware stealth.

Detection and Mitigation

  • Monitoring Registry Changes: Regular monitoring of the Add-ins registry keys for unexpected or unauthorized changes can help identify the installation of malicious add-ins. This can be achieved through security solutions that track registry modifications.

  • Office Application Behavior Analysis: Analyzing behavior anomalies in Office applications, such as unexpected network connections or file modifications, can help detect malicious add-in activity.

  • Security Solutions and Policies: Employ endpoint security solutions capable of detecting and blocking malicious add-ins. Establishing policies that control the installation and management of Office add-ins can limit the attack surface.

Example of a Suspicious Entry

For Microsoft Word 2016, a suspicious add-in entry might look like this:

[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Word\Addins\MyMaliciousAddIn]
"Description"="My Malicious Add-In"
"FriendlyName"="MyMaliciousAddIn"
"LoadBehavior"=dword:00000003
  • LoadBehavior: Determines how the add-in is loaded. A value of 3 indicates the add-in is loaded at startup.

  • Description and FriendlyName: These might be crafted to appear benign or mimic legitimate add-ins, making detection harder.

Conclusion

While Office Add-ins are a powerful feature for extending the capabilities of Office applications, their potential misuse for malicious purposes cannot be ignored. Organizations should implement strict controls over add-in management, conduct regular audits of registry settings related to add-ins, and employ advanced security solutions to detect and mitigate threats posed by malicious add-ins. Awareness and proactive management of add-ins are crucial for maintaining a secure computing environment.

PreviousLogon ScriptsNextWinlogon Shell

Last updated 1 year ago

Was this helpful?