RL Blog

Topics

All Blog PostsAppSec & Supply Chain SecurityDev & DevSecOpsProducts & TechnologySecurity OperationsThreat Research
Why RL Built Spectra Assure Community

Why RL Built Spectra Assure Community

We set out to help dev and AppSec teams secure the village: OSS dependencies, malware, more. Learn how.

Read More about Why RL Built Spectra Assure Community
Why RL Built Spectra Assure Community

Follow us

XX / TwitterLinkedInLinkedInFacebookFacebookInstagramInstagramYouTubeYouTubeblueskyBluesky

Subscribe

Get the best of RL Blog delivered to your in-box weekly. Stay up to date on key trends, analysis and best practices across threat intelligence and software supply chain security.

ReversingLabs: The More Powerful, Cost-Effective Alternative to VirusTotalSee Why
Skip to main content
Contact UsSupportBlogCommunity
reversinglabsReversingLabs: Home
Solutions
Secure Software OnboardingSecure Build & ReleaseProtect Virtual MachinesIntegrate Safe Open SourceGo Beyond the SBOM
Increase Email Threat ResilienceDetect Malware in File Shares & StorageAdvanced Malware Analysis SuiteICAP Enabled Solutions
Scalable File AnalysisHigh-Fidelity Threat IntelligenceCurated Ransomware FeedAutomate Malware Analysis Workflows
Products & Technology
Spectra Assure®Software Supply Chain SecuritySpectra DetectHigh-Speed, High-Volume, Large File AnalysisSpectra AnalyzeIn-Depth Malware Analysis & Hunting for the SOCSpectra IntelligenceAuthoritative Reputation Data & Intelligence
Spectra CoreIntegrations
Industry
Energy & UtilitiesFinanceHealthcareHigh TechPublic Sector
Partners
Become a PartnerValue-Added PartnersTechnology PartnersMarketplacesOEM Partners
Alliances
Resources
BlogContent LibraryCybersecurity GlossaryConversingLabs PodcastEvents & WebinarsLearning with ReversingLabsWeekly Insights Newsletter
Customer StoriesDemo VideosDocumentationOpenSource YARA Rules
Company
About UsLeadershipCareersSeries B Investment
Events
Press ReleasesIn the News
Pricing
Software Supply Chain SecurityMalware Analysis and Threat Hunting
Request a demo
Menu
Threat ResearchNovember 14, 2022

From the Labs: YARA Rule for Detecting GwisinLocker

ReversingLabs’ YARA detection rule for GwisinLocker can help you find this ransomware in your environment.

FacebookFacebookXX / TwitterLinkedInLinkedInblueskyBlueskyEmail Us
From the Labs: YARA Rule for Detecting GwisinLocker

ReversingLabs threat analysts are constantly working to respond to new threats and provide our customers with information and tools to defend their systems from attacks. Written by our threat analysts, our high-quality, open source YARA rules help threat hunters, incident responders, security analysts, and other defenders detect malicious behavior in their environment.

In this series, we break down some of the threats behind our YARA detection rules that can help your organization to detect them within your environment.

GwisinLocker: A Tool for Attacking Critical Infrastructure

Threat actors have been using ransomware to attack critical infrastructure organizations globally for some time. Attacks on critical infrastructure sectors, such as healthcare, finance, transportation and more, not only impact the victim organizations themselves, but also national security and societal stability. The discovery of GwisinLocker, a ransomware family, is just one of the more recent examples of a strain that cybercriminals are using to take advantage of organizations that are vital to a society’s infrastructure.

ReversingLabs researchers discovered GwisinLocker on July 19, 2022 while carrying out a threat hunting operation. It appeared as an undetected Linux ransomware sample with the markers of the Gwisin campaign. (Gwisin is a Korean word that means “ghost” or “spirit.”)

Gwisin Group Targets Industrial, Pharma Firms

The Gwisin ransomware group targeted several South Korean industrial and pharmaceutical companies, both serving critical infrastructure sectors in the country. Gwisin has been around since 2021, but has kept a relatively low profile until its more recent attacks in South Korea.

The Gwisin ransomware group uses the GwisinLocker ransomware to encrypt a victim’s files, while hiding the decryption key to prevent victims from using it to restore their files. Compromised endpoints on the victim’s system are then renamed “GWISIN Ghost.”

Attacks Show Familiarity with South Korean Society

Based on the way Gwisin targeted its victims, it is believed that the group has a strong grasp on South Korean society. The attacks on pharmaceutical companies took place on public holidays and in early morning hours on typical work days. These time frames are also the least monitored and staffed, giving the attacker a more lax environment that they can take advantage of.

Victims of GwisinLocker were given ransom notes after being attacked that included sensitive information taken from their environments. The ransom notes were also written in English, but had references to Korean-specific terms and warned victims of going to South Korean law enforcement agencies about the attack. The file extensions of victims’ encrypted files were also changed to the victim’s company name, making it clear that their files were compromised by cybercriminals.

GwisinLocker Attacker Techniques

As with other ransomware families, GwisinLocker locates and encrypts a victim’s files in order to take control of the environment. It combines AES symmetric-key encryption with SHA256 hashing, generating a unique decryption key for each file. Once a file is encrypted, it is given the “.mcrgnx” extension.

The extension is represented as two stack strings that can be seen in the picture below. The first stack string is 0x72636d2e, and it represents the first part of the extension in the reverse byte order (rcm.). The second stack string is 0x786967, and it represents the second part of the extension (xig). This is a method of obfuscation which serves the purpose of confusing the reverser and making the reversing process slower.

code block

The decryption key is stored in an accompanying file with the extension .mcrgnx0, encrypted with an embedded RSA public key. Note: these extensions are campaign-specific, but Gwisin tactics were consistent across several incidents.

One notable behavior is the shutting down of the VMWare ESXi machines before the encryption. The part of code which implements this behavior can be seen in the picture below.

The usage of stack strings can be seen here as well. The command they obfuscate is:

esxcli vm process kill --type=force --world-id="[ESXi] Shutting down - %s"

code block 2

Victims are then asked by the Gwisin group to log into a private portal that allows the two parties to communicate with one another, with the purpose of paying a ransom in hopes that the victim’s files will be decrypted. Because the communication channels are private, little is known about how payments are made and what cryptocurrency wallets are attached to the operation.

In finding and analyzing the GwisinLocker sample, ReversingLabs researchers were able to establish a list of Indicators of Compromise (IoCs) and Filesystems that are associated with the ransomware group’s operations.

Detecting GwisinLocker

Even though the Gwisin ransomware group has targeted a select number of victims in South Korea, the group could still target critical infrastructure organizations both inside and outside of the country. This is why it is crucial to detect GwisinLocker infections before these threat actors have a chance to execute the malware.

ReversingLabs’ GwisinLocker YARA rule is designed to detect this ransomware within your environment with high fidelity and almost no false-positives.

Download the GwisinLocker YARA rule from ReversingLabs' GitHub page here:

Linux.Ransomware.GwisinLocker.yara

To learn more about the prerequisites for using ReversingLabs’ YARA rules, consult our Github page.

The Work Doesn’t Stop Here

ReversingLabs’ team of analysts are constantly surveying the threat landscape in an effort to better serve our customers and the greater security community. Don’t hesitate to contact us if you’d like to learn more about how we help organizations combat threats like malicious wipers and ransomware or to schedule a demonstration.

Keep learning

  • Get up to speed on the Agentic Development Security tools landscape in this June 18 webinar with Forrester Sr. Analyst Janet Worthington.
  • Learn why binary analysis is a must-have control in the Gartner® CISO Playbook for Commercial Software Supply Chain Security.
  • Take a deep dive on the state of software security with RL's Software Supply Chain Security Report 2026. Plus: See the the webinar discussing the findings.

Explore RL's Spectra suite: Spectra Assure for software supply chain security, Spectra Detect for scalable file analysis, Spectra Analyze for malware analysis and threat hunting, and Spectra Intelligence for reputation data and intelligence.

Tags:Threat Research

More Blog Posts

Device code phishing

Device code phishing bypasses password stealing

The Microsoft 365 phishing campaign persuades victims to complete a real authentication process that authorizes an attacker-controlled device.

Learn More about Device code phishing bypasses password stealing
Device code phishing bypasses password stealing
Cloud security ITScape

How to defend ARM64 cloud infrastructure from ITScape

RL has documented CVE-2026-46316, and developed two YARA rules to help detect exploits of the multi-tenant cloud vulnerability.

Learn More about How to defend ARM64 cloud infrastructure from ITScape
How to defend ARM64 cloud infrastructure from ITScape
Social Engineering Attacks Target One Tutorial at a Time

Phishing attacks leverage TikTok, Instagram Reels

RL has discovered two social engineering attack techniques targeting users via short-form videos. Here’s how they work.

Learn More about Phishing attacks leverage TikTok, Instagram Reels
Phishing attacks leverage TikTok, Instagram Reels
Thousands of developer projects compromised in npm hack

How 56 npm packages used binding.gyp to steal secrets

The attack is notable for its breadth, flooding npm with malicious package versions.

Learn More about How 56 npm packages used binding.gyp to steal secrets
How 56 npm packages used binding.gyp to steal secrets

Spectra Assure Free Trial

Get your 14-day free trial of Spectra Assure for Software Supply Chain Security

Get Free TrialMore about Spectra Assure Free Trial
Blog
Events
About Us
Webinars
In the News
Careers
Demo Videos
Cybersecurity Glossary
Contact Us
reversinglabsReversingLabs: Home
Privacy PolicyCookiesImpressum
All rights reserved ReversingLabs © 2026
XX / TwitterLinkedInLinkedInFacebookFacebookInstagramInstagramYouTubeYouTubeblueskyBlueskyRSSRSS
Back to Top