Skip to content

LM Studio

Quick Reference

Category: InferenceEngine  |  OS: Windows, Linux, macOS  |  Privileges: user  |  Free: Yes

LM Studio is a cross-platform Electron desktop application that provides a graphical interface for downloading, managing, and running GGUF-format models locally. It ships a built-in llama.cpp inference engine and exposes an OpenAI-compatible local server on port 1234. The application downloads model files from Hugging Face Hub, creating large GGUF blobs in a predictable cache directory. Its polished installer and GUI make it accessible to non-technical users, lowering the barrier for covert local LLM deployment on corporate endpoints.


Details

Field Value
Website https://lmstudio.ai
License Proprietary

Capabilities: LocalInference, APIServer, ModelDownload, GPUAcceleration


Disk Artifacts

Path OS Type Phase Trust Description
/Applications/LM Studio.app/Contents/MacOS/LM Studio macOS Binary Install — LM Studio main Electron binary (macOS)
C:\Users\*\AppData\Local\Programs\LM-Studio\LM Studio.exe Windows Binary Install — LM Studio main Electron binary (Windows installer)
~/AppImages/LM_Studio-*.AppImage Linux Binary Install — LM Studio portable AppImage (Linux)
~/.cache/lm-studio/models/ Linux Cache Install — Default model storage directory on Linux — contains GGUF blobs by Hugging Face repo path
~/Library/Application Support/LM Studio/models/ macOS Cache Install — Default model storage directory on macOS
C:\Users\*\.cache\lm-studio\models\ Windows Cache Install — Default model storage directory on Windows
~/.config/LM Studio/ Linux Config Activation — Application configuration directory (Linux)
~/Library/Application Support/LM Studio/ macOS Config Activation — Application data directory including config and logs (macOS)

Model Storage

~/.cache/lm-studio/models/**/*.gguf (Linux) — GGUF model blobs downloaded from Hugging Face (Linux/macOS) (Install)

Format Magic Bytes (hex) Offset
GGUF 47 47 55 46 0

C:\Users\*\.cache\lm-studio\models\**\*.gguf (Windows) — GGUF model blobs (Windows) (Install)

Format Magic Bytes (hex) Offset
GGUF 47 47 55 46 0

Process Artifacts

LM Studio (Use)

Main Electron application process

Expected parent: launchd

CLI Pattern Phase Trust Description
LM Studio Use — Main application process

lms (Use)

LM Studio CLI companion binary for server management

Expected parent: bash

CLI Pattern Phase Trust Description
lms\s+server\s+start Activation — Starting the local inference API server via CLI
lms\s+load\s+ Use — Loading a model via CLI

Network Artifacts

Description Protocol Ports Bind Address Domains Phase Trust
Local OpenAI-compatible inference API server TCP 1234 127.0.0.1 — Use —
Hugging Face model downloads TCP 443 — huggingface.co, cdn-lfs.huggingface.co, cdn-lfs-us-1.huggingface.co Install —

Persistence Mechanisms

OS Type Path Phase Trust Description
macOS LaunchAgent ~/Library/LaunchAgents/ai.lmstudio.plist Activation — Optional LaunchAgent for LM Studio auto-start
Windows Registry HKCU\Software\Microsoft\Windows\CurrentVersion\Run\LM Studio Activation — Auto-start registry key written by Windows installer

Windows Event Log

Event ID Provider Log File Phase Trust Description
4688 Microsoft-Security-Auditing Security.evtx Use — Process creation for LM Studio.exe

Registry Artifacts

Path Phase Trust Description
HKCU\Software\Microsoft\Windows\CurrentVersion\Run\LM Studio Activation — Auto-start persistence key

Detection Rules

YARA

  • detections/yara/gguf_magic_bytes.yar (Install; trust: —) — Matches GGUF model files in LM Studio cache

References

  • https://lmstudio.ai

  • https://lmstudio.ai/docs/local-server