{
  "family": "msilinj",
  "sample_count": 2,
  "category": "trojan",
  "description": "Trojan:MSIL/Msilinj (often denoting a Microsoft Intermediate Language Injector) is a specific detection for a loader or 'crypter' written in the .NET framework (C#, VB.NET). Its primary purpose is to evade antivirus detection and securely execute a hidden, often highly malicious secondary payload (like AgentTesla, Remcos RAT, or NanoCore) directly into the memory of a legitimate Windows process (`T1055`).<br><br><b>Understanding Msilinj (.NET Loaders)</b><br>To an end-user, Msilinj is invisible; they might think they opened an invoice or a shipping document. For threat analysts, Msilinj represents the 'defense evasion' layer of a modern attack chain. Because it is written in .NET, attackers can easily use powerful obfuscation tools (like ConfuserEx) to scramble the code, rendering static signature-based detection highly ineffective. <br><br><b>Execution and Injection Mechanics</b><br>Msilinj is usually distributed as an executable disguised as a document (e.g., a PDF icon with an `.exe` extension) via malspam (`T1566.001`). Upon execution, the .NET assembly decrypts its hidden payload (often stored as an embedded resource or a base64 encoded string). It then leverages powerful Windows APIs (often via P/Invoke in C#) to perform Process Injection (`T1055`), typically 'Process Hollowing' (`T1055.012`). It starts a legitimate Windows process (like `RegAsm.exe`, `cvtres.exe`, or `MSBuild.exe`) in a suspended state, hollows out its memory, writes the decrypted malware payload into that memory space, and resumes the thread. The malicious payload is now running under the guise of a trusted Windows component.<br><br><b>Indicators of Compromise & Impact</b><br>The primary impact is the successful, stealthy execution of the secondary payload (usually a RAT or Infostealer). Host-based IoCs require EDR telemetry: look for a seemingly benign process (like the initial dropped `.exe`) launching a legitimate Windows utility (like `RegAsm.exe`) with unusual command-line arguments or without any associated parent process logic, followed by the child process making anomalous network connections (`T1071`).",
  "cta": "Published by the SystemHelpdesk team.",
  "aliases": [],
  "enrichment_level": "expert-seo",
  "faq": [],
  "faq_count": 0,
  "mitre_attack": [
    "T1055.012",
    "T1027.002",
    "T1566.001"
  ],
  "cisa_advisory": null,
  "last_updated": "2026-06-09",
  "mitre_attack_detail": [
    {
      "id": "T1055.012",
      "name": "Process Injection: Process Hollowing (The primary technique used by .NET injectors)",
      "tactic": "Defense Evasion"
    },
    {
      "id": "T1027.002",
      "name": "Obfuscated Files or Information: Software Packing (Using .NET obfuscators to hide the payload)",
      "tactic": "Defense Evasion"
    },
    {
      "id": "T1566.001",
      "name": "Phishing: Spearphishing Attachment (Primary distribution method)",
      "tactic": "Initial Access"
    }
  ],
  "containment_steps": [
    "Isolate the endpoint. The primary threat is not the Msilinj loader itself, but the payload it successfully injected into memory.",
    "Utilize EDR to identify which legitimate process was hollowed out (e.g., `RegAsm.exe` acting anomalously) and terminate it.",
    "Capture a live memory image (RAM dump) to extract the decrypted payload from the hollowed process for further analysis.",
    "Review email security gateway logs to find and purge the initial malspam campaign that delivered the loader."
  ],
  "what_to_avoid": [
    "Do not rely solely on static file analysis of the initial executable; it is just a highly obfuscated shell. Memory analysis is required.",
    "Avoid trusting a process just because it has a legitimate Windows name (like `vbc.exe` or `MSBuild.exe`) if its behavior is anomalous."
  ],
  "target_industries": [
    "Global / Opportunistic"
  ],
  "motivation": "Opportunistic",
  "threat_actors": [
    "Unknown / Cybercriminal"
  ],
  "target_geographies": [
    "Global"
  ]
}